How to share folder between VirtualBox Host and Virutal Machines(Guests)

This post was written by admin on September 30, 2009
Posted Under: Internet

This tutorial shows how to share folder between virtualbox Ubuntu host and Windows guest,or Windows host and Ubuntu guest.
First of all,make sure you have installed guest additions(from virtual machine windows,click to Machines->Install guest additions).
Ubuntu host and Windows/Vista guest:
1.First,create the shared folder in ubuntu host,assuming the folder is /home/user_name/vbshare:

mkdir ~/vbshare

2.Boot up Windows guest and go to Devices->Shared Folders
virtualbox_share
Click the button at right to create a share.
In Folder Path navigate to the folder you created in step one and select it.Check “Make Permanent”.
virtualbox_share2
3.For Windows guest,navigate to Start->Run and type:

cmd

In dos console,use this command:

net use t: \\vboxsvr\vbshare

For Vista guest,open your Windows Explorer, click on the Map Network Drive.Type following in Folder area and check “Reconnect at logon”.

\\vboxsvr\vbshare

4.Open My computer,you will see the shared folder:
virtualbox_share3

Windows Host and Ubuntu guest:
1.Create an folder,assuming it is:

c:/vbshare

2.Same to the step 2 above.
3.In ubuntu guest,open terminal(Applications->Accessories->Terminal).Using following command mount the folder:

sudo mkdir /media/vb_share
sudo mount -t vboxsf vbshare /media/vb_share

Related posts:

  1. Enable VirtualBox virtual machines(Guests) USB support
  2. ssh to remote host without password
  3. Virtualbox 4 on Ext4 error – host I/O cache will now be enabled
  4. Enable VirtualBox ubuntu guest 3D Acceleration
  5. Manage your VirtualBox Guest OS with VBoxManage

    Reader Comments

    thnk u soo much it was great help…. i waspresicsely looking for it and it worked fine thnx …

    [Reply]

    #1 
    Written By hadi khan on June 28th, 2011 @ 4:58 am

    a very big thank at long last i have my folder shared. ahhh!

    [Reply]

    #2 
    Written By jonas on July 24th, 2011 @ 10:26 am

    Google should really filter all the million results to this one website relating to this matter! I’ve had trouble with this and i guess only left one thing out at every attempt! Thank you :)

    [Reply]

    #3 
    Written By mash on August 17th, 2011 @ 5:59 am

    Trackbacks

    1. VirtualBox « irakasle ibiltaria  on October 2nd, 2009 @ 1:00 am

    Add a Comment

    required, use real name
    required, will not be published
    optional, your blog address