Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to copy a file from VirtualBox to the host OS?

I am using VirtualBox and my guest OS is Ubuntu. I have already install the Guest additions and created a share folder. My host OS is Windows 7.

I have a file inside the Ubuntu OS at Documents/myfolder and I want to copy this file to any partition in Win 7. Can any one give me the steps?

like image 506
user1460593 Avatar asked Jun 23 '12 18:06

user1460593


People also ask

Can I copy files from VirtualBox to host?

Dragging and Dropping Files in VirtualBoxOn the top bar of the running guest machine, click on Devices > Drag and Drop and make sure that Bidirectional is selected. This means that you will be able to drag files from the host to the guest and from the guest to the host.

Can I copy files from virtual machine to host?

The simplest option to transfer files between your host PC and a virtual machine is to set up a shared clipboard and/or drag and drop. This will allow you to use a common clipboard, meaning you will be free to copy/paste text/images and files between the virtual machine and your host PC.

How do I copy and paste from a VM to a host?

Highlight the text in the VM, and then press Ctrl+C two times to copy the text. On your local computer, click where you want to paste the text. Press Ctrl+V or right-click and select Paste.


1 Answers

With the VM stopped, under settings shared folders create something like this. Folder Path is your host path and Mount point is in the VM. enter image description here

Then start the VM, open a terminal (this is an Ubuntu VM) and run sudo mount -t vboxsf vbox_share /mnt with vbox_share matching the Folder Name field in the picture above.

like image 62
gary69 Avatar answered Oct 21 '22 14:10

gary69