Skip to content

Instantly share code, notes, and snippets.

@hieu-v
Created May 22, 2020 07:11
Show Gist options
  • Save hieu-v/7e8ff940df0a74eaf46bef46e562be15 to your computer and use it in GitHub Desktop.
Save hieu-v/7e8ff940df0a74eaf46bef46e562be15 to your computer and use it in GitHub Desktop.
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 faul…

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 vagrant /vagrant

The error output from the command was:

/sbin/mount.vboxsf: mounting failed with the error: No such device

vagrant up
vagrant ssh
cd /opt/VBoxGuestAdditions-*/init  
sudo ./vboxadd setup

vagrant halt
vagrant up
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment