faster access to shared folders on VirtualBox

November 1st, 2007
VirtualBox offers the option to access folders of your host from within your guest system, what is called shared folders. Although it is working most of the time, it has caused me several problems like: slow transfer rate, occasional delays and "freezing" and several I/O errors while copying files.

An alternative way to access shared folders between guest and host systems, is to completely by pass the built-in shared folders facility of VirtualBox, and use SMB/CIFS directly over a private network connection between the host and guest system. In my previous post I explain how to set up a private network connection between host and guest. Having done so you can go ahead on this article.

In my example I will describe my own configuration which consists of an Ubuntu host and Windows XP guest. I usually create a folder named xfer in my $HOME directory which I use for file sharing between systems. You can read an older article of mine on how to set up a writeable shared folder with samba on ubuntu.

When your shared folder is all done you can switch to your Windows XP and access it. Go to Start → Run and type \\10.0.1.1\xfer and click Ok:

windows xp run command dialog


Your shared folder should open with no serious delays and browsing should be quite responsive:

browsing network folder


If you'd like to, you could also map a drive letter and assign it to the network path and access the shared folder by only typing the driver letter. I use X: for this purpose:

map network drive

6 Responses to “faster access to shared folders on VirtualBox”

  1. Alex Says:
    Thank you so much for the tutorial. I find this method so much nicer than the built in shared folder.
  2. Kip Says:
    This is really nice. It really helped me out and was easy to follow your instructions. Thanks a lot. My access is so much faster now.
  3. Tuan Says:
    Thank you so much for this very useful information.
  4. Keith Says:
    thanks dude, shared folders is just toooooooo slow!! its crazy..
  5. Nick Says:
    I used this to set up my network folder, and everything worked well but after restarting my system (guest and host), it has stopped working. When I try to access the network drive I set up as described, Windows says that there is a problem with the connection. If I try to access the host through run \\10.0.1.1\foldername, Windows says it can't find the folder. Is there anything I would have to repeat after restarting to make this continue to work?
  6. Ittay Says:
    Gold.
    I was worried about security with the Samba, and your tap trick saved the day.

Leave a Reply