You are not logged in.

#1 2017-03-12 23:04:16

DomR
Member
Registered: 2017-02-18
Posts: 6

[SOLVED] VirtualBox shared folders stopped showing content

After a system upgrade on my Arch installation that runs as a VirtualBox guest, I can no longer see the contents of folders shared by the host system. The folders still appear as /media/sf_shared_n, but ls (and sudo ls) shows nothing inside them.

That system upgrade installed a new kernel (4.10.1), so I reverted to the previous one (4.9.11) hoping to get the folders accessible again, but they still show empty. Same when booting with the LTS (4.9.14) kernel. Headers for each of those kernels are installed.

VirtualBox on the host and virtualbox-guest-utils on the guest are both version 5.1.16.

I am not sure what else could have changed that would be relevant. Can anyone help?

Last edited by DomR (2017-03-14 22:42:57)

Offline

#2 2017-03-13 21:02:44

DomR
Member
Registered: 2017-02-18
Posts: 6

Re: [SOLVED] VirtualBox shared folders stopped showing content

I switched back to the latest kernel and tried to find logs that might give a clue about what is going wrong. Found nothing that stands out to me though.

systemctl status vboxservice.service:

● vboxservice.service - VirtualBox Guest Service
   Loaded: loaded (/usr/lib/systemd/system/vboxservice.service; enabled; vendor preset: disabled)
   Active: active (running) since Mon 2017-03-13 21:47:30 CET; 1min 44s ago
  Process: 309 ExecStartPre=/usr/bin/modprobe vboxsf (code=exited, status=0/SUCCESS)
  Process: 306 ExecStartPre=/usr/bin/modprobe vboxvideo (code=exited, status=0/SUCCESS)
  Process: 288 ExecStartPre=/usr/bin/modprobe vboxguest (code=exited, status=0/SUCCESS)
 Main PID: 313 (VBoxService)
    Tasks: 8 (limit: 4915)
   CGroup: /system.slice/vboxservice.service
           └─313 /usr/bin/VBoxService -f

Mar 13 21:47:30 archbox VBoxService[313]: 00:00:00.000113 main     OS Product: Linux
Mar 13 21:47:30 archbox VBoxService[313]: 00:00:00.000132 main     OS Release: 4.10.1-1-ARCH
Mar 13 21:47:30 archbox VBoxService[313]: 00:00:00.000146 main     OS Version: #1 SMP PREEMPT Sun Feb 26 21:08:53 UTC 2017
Mar 13 21:47:30 archbox VBoxService[313]: 00:00:00.000159 main     Executable: /usr/bin/VBoxService
Mar 13 21:47:30 archbox VBoxService[313]: 00:00:00.000160 main     Process ID: 313
Mar 13 21:47:30 archbox VBoxService[313]: 00:00:00.000161 main     Package type: LINUX_64BITS_GENERIC (OSE)
Mar 13 21:47:30 archbox VBoxService[313]: 00:00:00.001187 main     5.1.16 r113841 started. Verbose level = 0
Mar 13 21:47:30 archbox VBoxService[313]: 00:00:00.007298 automount vbsvcAutoMountWorker: Shared folder 'shared_1' already is mounted!
Mar 13 21:47:30 archbox VBoxService[313]: 00:00:00.008592 automount vbsvcAutoMountWorker: Shared folder 'shared_2' already is mounted!
Mar 13 21:47:30 archbox VBoxService[313]: 00:00:00.009255 automount vbsvcAutoMountWorker: Shared folder 'shared_3' already is mounted!

Offline

#3 2017-03-14 21:50:48

DomR
Member
Registered: 2017-02-18
Posts: 6

Re: [SOLVED] VirtualBox shared folders stopped showing content

I found the solution through this thread where someone had the same problem on Debian. Nothing to do with the kernel but apparently with the latest version of VirtualBox.

The problem was that my shared folders were symlinks on the host, which VirtualBox doesn't resolve anymore. Sharing the real folders instead lets me see their contents on the guest system.

Offline

Board footer

Powered by FluxBB