Unable to mount shared folder

Discussions about using Linux guests in VirtualBox.

Unable to mount shared folder

Postby Gutchi » 13. May 2019, 10:00

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   Expand viewCollapse view
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   Expand viewCollapse view
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
Gutchi
 
Posts: 19
Joined: 4. Apr 2016, 14:50

Re: Unable to mount shared folder

Postby towo2099 » 13. May 2019, 11:51

And you have installed the guest additions in your vm?
towo2099
Volunteer
 
Posts: 232
Joined: 18. Aug 2014, 21:53
Primary OS: Debian Sid
VBox Version: PUEL
Guest OSses: Android, Linux

Re: Unable to mount shared folder

Postby Gutchi » 13. May 2019, 12:05

Yes of course :)
Gutchi
 
Posts: 19
Joined: 4. Apr 2016, 14:50

Re: Unable to mount shared folder

Postby bc3au » 16. May 2019, 02:33

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   Expand viewCollapse view
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   Expand viewCollapse view
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.
bc3au
 
Posts: 1
Joined: 16. May 2019, 02:11

Re: Unable to mount shared folder

Postby socratis » 24. May 2019, 00:45

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?
If you obfuscate any information requested, I will obfuscate my response. These are virtual UUIDs, not real ones.
Do NOT reply with the "QUOTE" button, please use the "POST REPLY", at the bottom of the form.
socratis
Site Moderator
 
Posts: 25934
Joined: 22. Oct 2010, 11:03
Location: Greece
Primary OS: Mac OS X other
VBox Version: PUEL
Guest OSses: Win(*>98), Linux*, OSX>10.5

Re: Unable to mount shared folder

Postby Gutchi » 5. Jun 2019, 10:10

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   Expand viewCollapse view
[  839.271122] vboxsf: SHFL_FN_MAP_FOLDER failed for 'shared': -22420
[  839.271124] vbsf_read_super_aux err=-71
Gutchi
 
Posts: 19
Joined: 4. Apr 2016, 14:50

Re: Unable to mount shared folder

Postby socratis » 5. Jun 2019, 11:25

@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
If you obfuscate any information requested, I will obfuscate my response. These are virtual UUIDs, not real ones.
Do NOT reply with the "QUOTE" button, please use the "POST REPLY", at the bottom of the form.
socratis
Site Moderator
 
Posts: 25934
Joined: 22. Oct 2010, 11:03
Location: Greece
Primary OS: Mac OS X other
VBox Version: PUEL
Guest OSses: Win(*>98), Linux*, OSX>10.5


Return to Linux Guests

Who is online

Users browsing this forum: No registered users and 20 guests