Page 1 of 1

Unable to mount shared folder

Posted: 13. May 2019, 10:00
by Gutchi
Hello,
I'm on Debian 10 with VirtualBox 6, and i running another Debian as a VM, and since i'm on virtualbox 6.0, i'm not able to mount the shared folder

Code: Select all

apt-cache policy virtualbox-6.0 
virtualbox-6.0:
  Installé : 6.0.6-130049~Ubuntu~bionic
  Candidat : 6.0.6-130049~Ubuntu~bionic
 Table de version :
 *** 6.0.6-130049~Ubuntu~bionic 500
        500 http://download.virtualbox.org/virtualbox/debian bionic/contrib amd64 Packages
        100 /var/lib/dpkg/status

Code: Select all

mount -t vboxsf -o uid=1000,gid=1000 Shared /media/sf_Shared
/sbin/mount.vboxsf: mounting failed with the error: Protocol error
Any idea?

Thanks you

Re: Unable to mount shared folder

Posted: 13. May 2019, 11:51
by towo2099
And you have installed the guest additions in your vm?

Re: Unable to mount shared folder

Posted: 13. May 2019, 12:05
by Gutchi
Yes of course :)

Re: Unable to mount shared folder

Posted: 16. May 2019, 02:33
by bc3au
I am also unable to mount any shared folders since upgrading to 6.0 ( currently on 6.0.8 ).

Windows 10 host, Debian 9 guest, virtualbox, extensions pack & guest additions all upgraded to 6.0.8

Linux bruce-debian 3.16.0-7-amd64 #1 SMP Debian 3.16.59-1 (2018-10-03) x86_64 GNU/Linux

Seeing this in the logs at startup (Xorg messages removed for brevity):

Code: Select all

May 15 08:24:50 bruce-debian kernel: vboxguest: misc device minor 59, IRQ 20, I/O port d020, MMIO at 00000000f0400000 (size 0x400000)

May 15 08:24:54 bruce-debian vboxadd[562]: VirtualBox Guest Additions: Starting.
May 15 08:24:54 bruce-debian vboxadd[562]: VirtualBox Guest Additions: Building the VirtualBox Guest Additions kernel
May 15 08:24:54 bruce-debian vboxadd[562]: modules.  This may take a while.
May 15 08:24:54 bruce-debian vboxadd[562]: VirtualBox Guest Additions: To build modules for other installed kernels, run
May 15 08:24:54 bruce-debian vboxadd[562]: VirtualBox Guest Additions:   /sbin/rcvboxadd quicksetup <version>
May 15 08:24:54 bruce-debian vboxadd[562]: VirtualBox Guest Additions: or
May 15 08:24:54 bruce-debian vboxadd[562]: VirtualBox Guest Additions:   /sbin/rcvboxadd quicksetup all

May 15 08:24:56 bruce-debian useradd[1283]: failed adding user 'vboxadd', data deleted
May 15 08:24:56 bruce-debian useradd[1293]: failed adding user 'vboxadd', data deleted
May 15 08:24:56 bruce-debian vboxadd[562]: VirtualBox Guest Additions: Running kernel modules will not be replaced until
May 15 08:24:56 bruce-debian vboxadd[562]: the system is restarted
May 15 08:24:56 bruce-debian systemd[1]: Started vboxadd.service.
May 15 08:24:56 bruce-debian systemd[1]: Starting GNOME Display Manager...
May 15 08:24:56 bruce-debian systemd[1]: Starting vboxadd-service.service...
May 15 08:24:56 bruce-debian vboxadd-service[1372]: vboxadd-service.sh: Starting VirtualBox Guest Addition service.
May 15 08:24:56 bruce-debian vboxadd-service.sh[1380]: Starting VirtualBox Guest Addition service.

May 15 08:24:56 bruce-debian kernel: 00:24:56.792130 main     VBoxService 6.0.8 r130520 (verbosity: 0) linux.amd64 (May 13 2019 15:50:07) release log
                                     00:24:56.792134 main     Log opened 2019-05-15T00:24:56.791695000Z
May 15 08:24:56 bruce-debian kernel: 00:24:56.792197 main     OS Product: Linux
May 15 08:24:56 bruce-debian kernel: 00:24:56.792223 main     OS Release: 3.16.0-7-amd64
May 15 08:24:56 bruce-debian kernel: 00:24:56.792241 main     OS Version: #1 SMP Debian 3.16.59-1 (2018-10-03)
May 15 08:24:56 bruce-debian kernel: 00:24:56.792259 main     Executable: /opt/VBoxGuestAdditions-6.0.8/sbin/VBoxService
                                     00:24:56.792260 main     Process ID: 1386
                                     00:24:56.792260 main     Package type: LINUX_64BITS_GENERIC
May 15 08:24:56 bruce-debian kernel: 00:24:56.793686 main     6.0.8 r130520 started. Verbose level = 0
May 15 08:24:56 bruce-debian vboxadd-service.sh[1397]: VirtualBox Guest Addition service started.
May 15 08:24:56 bruce-debian systemd[1]: Started vboxadd-service.service.

May 15 08:24:56 bruce-debian kernel: 00:24:56.807176 automount Error: vbsvcAutomounterMountIt: Failed to mount 'bcook' on '/media/sf_win-bcook': No such device (-1,19)
May 15 08:24:56 bruce-debian kernel: 00:24:56.807801 automount Error: vbsvcAutomounterMountIt: Failed to mount 'bcook' on '/media/sf_win-bcook': No such device (-1,19)

May 15 08:24:57 bruce-debian kernel: 00:24:57.813289 automount Error: vbsvcAutomounterMountIt: Failed to mount 'bcook' on '/media/sf_win-bcook': No such device (-1,19)
May 15 08:24:57 bruce-debian kernel: 00:24:57.815878 automount Error: vbsvcAutomounterMountIt: Failed to mount 'bcook' on '/media/sf_win-bcook': No such device (-1,19)
The mountpoint does exist, however as it's not mounted I don't see any contents

Code: Select all

drwxrwx---  2 root vboxsf 4096 Feb 11  2016 sf_win-bcook

bcook@bruce-debian:~$ ls -la /media/sf_win-bcook/
total 8
drwxrwx--- 2 root vboxsf 4096 Feb 11  2016 .
drwxr-xr-x 5 root root   4096 May 15 08:13 ..
Taking a cue from the log saying the guest additions are rebuilding and will require a reboot, I rebooted a third time, unfortunately no change.

Re: Unable to mount shared folder

Posted: 24. May 2019, 00:45
by socratis
bc3au wrote:The mountpoint does exist, however as it's not mounted I don't see any contents
Did you add yourself to the 'vboxsf' group and have you rebooted the guest after that?

Re: Unable to mount shared folder

Posted: 5. Jun 2019, 10:10
by Gutchi
I steal have the same issue with virtualbox 6.0.8 r130520 (i tried to mount the share folder with root) and i get the same message. In dmesg i have this error:

Code: Select all

[  839.271122] vboxsf: SHFL_FN_MAP_FOLDER failed for 'shared': -22420
[  839.271124] vbsf_read_super_aux err=-71

Re: Unable to mount shared folder

Posted: 5. Jun 2019, 11:25
by socratis
@Gutchi
We need to see a complete VBox.log, from a complete VM run, where the problem occurs:
  • Start the VM from cold-boot (not from a paused or saved state) / Observe problem / Shutdown the VM (force close it if you have to).
  • With the VM completely shut down (not paused or saved), right-click on the VM in the VirtualBox Manager and select "Show Log".
  • Save only the first "VBox.log", ZIP it and attach it to your response. See the "Upload attachment" tab below the reply form.
Image