Ubuntu – VirtualBox shared folder hangs on read in guest OS

shared-foldersUbuntuvirtualbox

I'm running VirtualBox 4.2.18 with a Windows 7 host and Ubuntu 13.10 guest. I'm trying to set up a shared folder, but attempting to read the folder from the Ubuntu VM appears to hang indefinitely. Writing to the shared folder, however, works fine.

On the Windows host, the shared folder is set up to point to C:\ubuntu_share. It's configured in VirtualBox as permanent, but not auto-mount.

In the Ubuntu VM, I can mount the shared folder successfully:

$ mkdir ubuntu_share
$ sudo mount -t vboxsf -o "rw,uid=1000,gid=1000,dmode=0755" ubuntu_share ubuntu_share
$ ls -l
drwxr-xr-x  1 nreed nreed    0 Oct 28 16:37 ubuntu_share/

However, attempting to look at the contents of the mounted folder using ls simply presents a blinking cursor until I kill it with Ctrl+C. Similarly if I try to view the folder in Nautilus I just get the wait cursor forever.

On the other hand, writing to the mounted folder works:

$ cat > ubuntu_share/test.txt
hello world
^D

and then I can see the test.txt file show up in Windows just fine.

I've tried rebooting the VM, reinstalling the guest additions, deleting and recreating the shared folder, mounting it as root instead of my UID, all to no avail. Anyone have any ideas what's going on, or how I can diagnose this?

Best Answer

In my case the following has helped:

  • update to Virtual Box 4.3.8 r92456,
  • reinstallation of VirtualBox Guest Additions from virtual CD (not from apt repository),
  • reboot of virtual machine.

System information:

  • Host: Windows 7 Home Premium 64-bit,
  • Guest: Linux Mint 16 Petra 32-bit.
Related Question