How To Share Files In VirtualBox With Vista Guest And Ubuntu Host

microsoft_vista-logoFor some of you who have setup Windows Vista as the guest VM in your Ubuntu Virtualbox, you might have some difficulties in getting the Vista guest to access the shared folder in your Ubuntu host. If you are having this problem, here is the way to mount the shared folder on your Vista guest.

First of all, make sure you have already installed both VirtualBox and Windows Vista guest. If you have not, here is the complete installation guide.

Secondly, make sure you have updated your VirtualBox to the latest version (2.0.4). There are some issues in the earlier version which will cause the mounting to fail.

In your Ubuntu machine, open up Virtualbox (Applications -> System Tools -> virtualBox).

Highlight the Vista VM entry (make sure that it is in Powered off state) and click on the Settings icon at the top.

Virtualbox Vista Settings

On the left, click on the Network. On the right, make sure that the Enable Network Adaptor and Cable Connected are checked.

Virtualbox Network setting

On the left, click on the Shared Folders. Then, click on the virtualbox add share folder icon on the far right.

Select the folder that you want to use as a share point. Give it a name.

Virtualbox add share path

Virtualbox share folder

Click OK to close the Settings window.

Boot up your Vista VM.

Install the guest addition. (Skip this step if you have already done so)

virtualbox-guest-addition

Restart the Vista VM.

Open your Windows Explorer, click on the Map Network Drive

vista-map-network

In the Folder input text, enter

\\vboxsvr\sharename

where sharename is the name of the share folder that you add just now. Make sure that the Reconnect at logon is checked. Click Finish

vista-map-drive

You should now see the shared folder mounted as a network drive.

vista-windows-explorer

That’s it.

Slow computer? Try Auslogics BoostSpeed!

Damien Oh is the owner and chief editor of Make Tech Easier

Tags: , , ,

 

Enjoyed the article? Subscribe to Make Tech Easier today to get your daily updates of technology tutorials, tips and tricks.

Enter your email:

3 pingbacks/trackbacks (Click to open)

39 Responses

  • pathaniya says:

    Please tell me same above mention process but with Windows Xp sp2 or 3

    Regards

    Reply

  • Damien says:

    @pathaniya: The step is exactly the same for Windows XP except that the “Map Network Drive” is found at the menubar under Tools section (Tools -> Map Network Drive)

    Reply

  • pathaniya says:

    Thanks! Damien!

    Reply

  • Damien says:

    @pathaniya: You are welcome!

    Reply

  • Hello,

    But how to do it when you have a Windows Vista host and an Ubuntu 8.10 guest (under Virtualbox)? I want to share a Vista folder with my Ubuntu 8.10 on virtualbox.

    Reply

    Damien Reply:

    Assuming the name of the share folder is “Share”.

    First create a folder in your Home directory and name it “Share”.

    Run the following command in the terminal to mount the share folder

    sudo mount -t vboxsf Share ~/Share.

    You should be able to access the share folder via your Home directory.

    Reply

  • ck says:

    Hi,

    I tried the above procedures but after mapping the network drive, I couldn’t access My Computer anymore. I tried removing it and My Computer worked perfectly fine. How can I resolve this problem?

    Also, I couldn’t get my usb ports to work.

    I would appreciate any help.

    Thanks

    Reply

  • cameron says:

    These steps also easily worked for Windows 7 guest on ubuntu.
    Many thanks!

    Reply

  • Chaanakya says:

    THANKS!!!!!! I was wondering how to do this. Thanks!!!!!

    Reply

  • jim says:

    Thanks a ton, just made my task super easy. Much appreciated.

    Reply

  • Nuwan says:

    Thank you!
    This is 100% worked.

    Reply

  • Davide says:

    I love this site, i can find a solution to all my problems! :D:D:D:D:D

    Reply

  • Pierre says:

    Running Vista in a VB. It complains not available network or network cable unplugged. :(

    Cable Connected = TRUE

    Reply

    Damien Reply:

    is your host connected to the Internet?

    Reply

  • Chaanakya says:

    Does the Internet work in the Vista guest?

    Reply

    Damien Reply:

    If you set NAT as the connection option in the Settings page, the Internet should work out of the box (if your host is connected to the Web). I have not tried the other options yet.

    Reply

  • Abraxas says:

    Your solution worked fine, quality advice really.
    Yet I have another question and it is regarding USB devices. Is an Ubuntu host and XP SP3 guest. The options to connect an USB device are greyed out…except the printer. I have set them up in the VB settings checked the filters but no way to access the USB drives or pen drive connected to PC even though they are recognized and mounted by Ubuntu.
    Thank you
    Gustavo

    Reply

    Damien Reply:

    Few things you need to do to get your USB drive working:

    1) Make sure you are not using the OSE version.

    2) Upgrade your Virtualbox to the latest version 2.2

    3) Set up the USB filter in the Settings page. Make sure that the boxes “enable USB controller” and “enable USB 2.0(EHCI) controller” are checked.

    4) Install Guest addition

    5) Mount your USB drive in your computer before starting Virtualbox.

    6) In your VM, go to Devices -> USB Devices and select the respective USB devices.

    Reply

  • Javi Pirate says:

    This tutorial is amazing i love it thanks for share :)

    Reply

  • Cleiton Souza says:

    Thanks by tutorial! this help me very much! The way to share folder to gues PC in Virtual Box is very diferent then Microsoft Virtual PC.

    Reply

  • Gustavo says:

    Hello,

    Running Ubuntu 8.10 as a host and XP as guest. The version of the xVM Box is 2.1.4 . USB drives do not mount on the guest.
    I am a noob for Ubuntu, but following some intructions here I managed to get the USB drives as shared folders since they mount ok under the host.
    I read to update the xVM and using the option in the xVM menu tells me that is already uptodate 2.1.4….Then I downloaded version 2.2 but the installer tells me that there is already a xVM installed. I feel I should uninstall version 2.1.4 but what will happen with the XP guest virtual disk that I have already created with the guest?
    I think the installer for version 2.2 should have the option to update the older version, or clean install altogether. May be someone here could help me update xVM without uninstalling it?

    Thank you,
    Gustavo

    Reply

    Damien Reply:

    You have to remove the version 2.1.4 before you can install 2.2. Rest assure that your virtual disk and all settings are not removed. After you have installed version 2.2, you should find all your settings still intact.

    I have tested the USB support in version 2.2. It works!

    Reply

  • Seshadri Baral says:

    thanx. i was really searching for this.
    its a nice one.

    Reply

  • Gustavo says:

    Hi Damien,

    Well thank you for the tip on uninstalling xVM and installing xVM2.2….I did not loose the image …uuupi !
    But. there is always something…I did not fix the issue with the USB devices appearing to guest windws as USB. My workaround has been accessing them as sharefolders.
    Still I want, to learn basically, those USB not greyed out in the menu of xVM and be able to access them as what they are, USB disks.
    Somewhee I read that it could be an issue with Intrepid (8.10) and the way they are installed by the system…remember I am still a noob, do you think you could help me ?
    thanks,

    gustavo

    Reply

  • Mohamoud says:

    Thanks for the tutorial. Saved me a lot of time.

    Reply

  • jeroen says:

    I did connect the shared folders on a ubuntu 8.10 host with a Windows 7 guest build 7100. It works, though I cannot read or write to these drives from other programs than the windows explorer. Does anyone have any idea? it works fine with a Windows XP guest or even a Windows 98 guest.

    Reply

    Damien Reply:

    This is more of a Windows 7 limitation. I will update once I find out the workaround.

    Reply

  • aman gupta says:

    thanks i really worked….

    Reply

  • jeroen says:

    Now I tried again and using \\vboxsvr\sharename after I connected this share in the Virtualbox settings and it worked.

    I’m happy!

    Reply

  • David says:

    Perfect….thanks alot. Your efforts are appreciated !

    Reply

  • Johnny says:

    This worked as a charm! Thanks allot, I’ve been working for ages trying to figure this one out.

    Reply

  • Kevin says:

    Hi everyone, I did this once and it worked perfectly running Ubuntu 9.04 as my host, and windows xp through VirtualBox. Since then I’ve formated my computer and now I’m trying to set it up again, but it won’t work. It keeps “folder not found” when I type in \\vboxsvr\nameof my folder

    Can anyone give me some tips? I’ve read over everything multiple times, the only thing I’m thinking is maybe my router is blocking the sharing fuction? I dunno! o_O

    Reply

  • jo31 says:

    Doesn’t work at all with VB 2.2.4, Ubuntu 9.04 as host and XP SP3 as ghost

    Reply

    Damien Reply:

    @jo31: It works. I am using VB 2.2.4, Ubuntu 9.04 and XP SP3 and I have no problems accessing the shared folder. Perhaps you want to check your configuration again.

    Reply

  • u-man says:

    Thanks!! I am running Jaunty 9.04 and Vista in-the-box, and this is what I was needing. Thanks for making it so clear….now if there is something regarding the xorg.config…as my screen is off center……but that is future project. Thanks again! Ubuntu can be amazing, frustrating, but a good solid system.

    Reply

  • sima says:

    I need help
    I have a MAC and I installed Parallel and on this VM I installed Ubunto and Vista. now I want to use USB but it doesn\t work in ubunto. i want to share some files and i don\t know what should do. pls. advise me.\
    many thanks\
    sima

    Reply

  • Harbhag says:

    Thanks , It helped alot

    Reply

  • Dani says:

    Hi i am beginner and working on ubuntu environment.

    I have installed ubuntu 9.04 on my machine (host) , virtual box 3.0.8 for virtual machine which is also ubuntu 9.04.

    I am facing a problem during networking between host machine and virtual machine installed on vBox. when i send a ping command from virtual machine to host its works, while host to virtual machine it doesn’t work. thanks for advanced.

    Reply

  • Ravi Shankar says:

    Thank you Vey much mate.

    It worked perfectly on my Host Ubuntu and Guest XP.

    Thanks once again.

    Reply

Leave a Comment




 

Sign in with Twitter

Comment

Please Note: Comments maybe under moderation after you submit your comments so there is no need to resubmit your comment again