Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Virtualbox 5.1.20 regression - vboxsf failure - Vagrant was unable to mount VirtualBox shared folders #8502

Closed
philippe-granet opened this issue Apr 20, 2017 · 9 comments

Comments

@philippe-granet
Copy link

philippe-granet commented Apr 20, 2017

Vagrant version

1.9.3

Host operating system

Win7

Guest operating system

RHEL 6.6

Debug output

Vagrant was unable to mount VirtualBox shared folders. This is usually
because the filesystem "vboxsf" is not available. This filesystem is
made available via the VirtualBox Guest Additions and kernel module.
Please verify that these guest additions are properly installed in the
guest. This is not a bug in Vagrant and is usually caused by a faulty
Vagrant box. For context, the command attempted was:

mount -t vboxsf -o uid=4105,gid=4103 vagrant /vagrant

The error output from the command was:

mount: Protocol error

References

It's a Virtualbox 5.1.20 regression:

Workaround

ln -sf /opt/VBoxGuestAdditions-5.1.20/lib/VBoxGuestAdditions/mount.vboxsf /sbin/mount.vboxsf

@philippe-granet philippe-granet changed the title Virtualbox 5.1.20 - vboxsf failure - Vagrant was unable to mount VirtualBox shared folders Virtualbox 5.1.20 regression - vboxsf failure - Vagrant was unable to mount VirtualBox shared folders Apr 20, 2017
@njappboy
Copy link

njappboy commented Apr 20, 2017

Just updated and I'm seeing similar issue with 5.1.20 using:

Vagrant version

1.9.2

Host operating system

macOS Sierra

Guest operating system

CentOS 7.3

Debug output

Vagrant was unable to mount VirtualBox shared folders. This is usually
because the filesystem "vboxsf" is not available. This filesystem is
made available via the VirtualBox Guest Additions and kernel module.
Please verify that these guest additions are properly installed in the
guest. This is not a bug in Vagrant and is usually caused by a faulty
Vagrant box. For context, the command attempted was:

mount -t vboxsf -o uid=1000,gid=1000 home_vagrant_.m2 /home/vagrant/.m2

The error output from the command was:

mount: wrong fs type, bad option, bad superblock on home_vagrant_.m2

@chrisroberts
Copy link
Member

This is an upstream issue as identified in the virtuabox ticket linked in this issues description. It also looks like the latest guest additions fixes the problem: https://www.virtualbox.org/ticket/16670#comment:4

Cheers!

@tiferrei
Copy link

There's a fix for most debian-based OSs:

ln -sf /usr/lib/x86_64-linux-gnu/VBoxGuestAdditions/mount.vboxsf /sbin/mount.vboxsf

@parsemaestro63
Copy link

I tried the suggestion from https://www.virtualbox.org/ticket/16670#comment:3, installing the latest test build. Then, I rebuilt the Vagrant box (ubuntu/xenial64), but getting the same mount error.

@nachopants
Copy link

Can confirm the command

ln -sf /opt/VBoxGuestAdditions-5.1.20/lib/VBoxGuestAdditions/mount.vboxsf /sbin/mount.vboxsf

Also fixed CentOS/7 VM on Vagrant 1.9.4, Virtualbox 5.1.20.

Installing the latest GuestAdditions did not resolve the issue. The symlink did.

tersmitten referenced this issue in Oefenweb/ansible-packer-template Apr 25, 2017
@ghost
Copy link

ghost commented Apr 25, 2017

Can confirm for Ubuntu 16.04, VirtualBox 5.1.20, Vagrant 1.9.4: symlink has resolved the issue.

@jasonwilliams
Copy link

@anashamdaoui
Copy link

you just need to install vagrant-vbguest plugin:
vagrant plugin install vagrant-vbguest

@ghost
Copy link

ghost commented Mar 30, 2020

I'm going to lock this issue because it has been closed for 30 days ⏳. This helps our maintainers find and focus on the active issues.

If you have found a problem that seems similar to this, please open a new issue and complete the issue template so we can capture all the details necessary to investigate further.

@ghost ghost locked and limited conversation to collaborators Mar 30, 2020
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

8 participants