Tuesday, June 22, 2010

Sharing files between Guest and Host machines in Virtual Box.

 

If you are using VMware as your virtualization software you will be able to copy files directly from the host to the guest OS, and vice versa. But unfortunately this feature does not exist in Virtual Box. Not yet at least.

However, there is a very easy way you can share files between the host and guest when using Virtual Box – using Shared Folders.

First you have to create folder in your Windows host. For example, create a folder on your desktop called “myshared“.

Then start your Ubuntu VM. After you get to the desktop, press the right-Ctrl button so that your mouse pointer can move outside the Ubuntu desktop. From the menubar, go to Devices-> Shared Folders. After that click the Add New Shared Folder button and then browse to the folder you created earlier (myshared). Make sure you tick the “Make Permanent” checkbox.

shared folder

 

After you have added the folder, click OK and return back to your Ubuntu desktop. Then create a folder in Ubuntu which will be used as the shared folder on the guest OS. For example, create a folder called “SharedItems” on your desktop.

Then open a new Terminal window (Applications -> Accessories -> Terminal) and execute the following command:

sudo mount -t vboxsf myshared Desktop/SharedItems

The text in red is the name of the shared folder in the Windows host and the text in blue is the directory path of the shared folder on the Ubuntu guest.

Once you’ve done that, you can now share files between the two OSs by simply placing files in the folders.

 

EnJoy..!!!!!!!!!!!!!!!!

 
Things You Should Know About Linux !!!