workaround for slow shared folders in Virtualbox 3.x

Happy 2010 fair readers !  I hope that all is well with you and yours.  Let’s get right to business : Virtualbox has a feature that allows you to access the host OS’s file system from the guest OS (shared folders), which is super useful, but not exactly perfectly implemented.  In particular, there are known, documented performance issues in certain scenarios, such as when accessing a Linux host via a Windows guest (which, as you might imagine, is a pretty regular sort of activity).

One common (?) workaround is to install and configure Samba on the Linux host, then access it from the Windows guest like one would access any network server.  The problem here is that it requires that Samba be installed and configured, which can be a pain in the, well, you know.  Furthermore, the connection will be treated like any other, and the traffic will travel up and down the network stack, which is fundamentally unnecessary since the data is, physically speaking, stored locally.

Instead, here’s another workaround, one that keeps things simple, and solves the performance problem : just map the shared folder to a local drive in the host OS.  It’s that easy.  For those of us who aren’t too familiar with the Windows explorer interface (me included, heh), there are tonnes of step by step instructions available.  For whatever reason (i suspect Netbios insanity), accessing the network share via a mapped drive manages to avoid whatever condition creates the lag problems, resulting in a rapid, efficient access to the underlying filesystem.

Hope that helps – enjoy !

Author: phrawzty

I have a computer.

3 thoughts on “workaround for slow shared folders in Virtualbox 3.x”

  1. I’m using shared folder mounted as network drive as I’ve switched from vmware player to vbox, it’s been 1,5 years ago.

    Now in 3.1.4 version is acces to shared folders 10 times slower as it was in 3.1.2. IT SI UNUSABLE! Wrrrrr!

    Milan
    linux 2.6.33rc8

    Like

  2. Dan- thanks very much. I’ve been running iTunes 10 in a virtualbox 3.2 install and it was unusable via the shared folders. Changed to a network drive via samba and it’s great. For anyone else suffering the same problem I have of iTunes hangs while “determining gapless” this is the solution you need. You are a star!!!

    Like

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s