Vagrant was unable to mount VirtualBox shared folders

2,022 views
Skip to first unread message

Christian Bourque

unread,
Aug 25, 2016, 3:24:21 PM8/25/16
to Vagrant
Hello,

I'm having a problem with Vagrant (1.8.5) and VirtualBox (5.1.4):

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 attemped was:

set -e
mount
-t vboxsf -o uid=`id -u vagrant`,gid=`getent group vagrant | cut -d: -f3` vagrant /vagrant
mount
-t vboxsf -o uid=`id -u vagrant`,gid=`id -g vagrant` vagrant /vagrant

The error output from the command was:

mount
: failed to parse mount options: No such file or directory


As I understand from the error message, it doesn't seem to be a Vagrant bug (more of a problem with the box itself)! This is the box that I use: https://atlas.hashicorp.com/webhippie/boxes/opensuse-13.2

Is there a way to contact the maintainer to inform him about the issue? There's no contact information whatsoever on the HashCorp web site...

Thanks,

Christian

Alvaro Miranda Aguilera

unread,
Aug 26, 2016, 3:18:37 AM8/26/16
to vagra...@googlegroups.com
Hello

The error message is telling you lots of information.

I will suggest try with a different box first, like hashicorp/precise64

most probable cause of the issue, is some people don't include virtualbox guest additions to the boxes.

Thanks
Alvaro

--
This mailing list is governed under the HashiCorp Community Guidelines - https://www.hashicorp.com/community-guidelines.html. Behavior in violation of those guidelines may result in your removal from this mailing list.
 
GitHub Issues: https://github.com/mitchellh/vagrant/issues
IRC: #vagrant on Freenode
---
You received this message because you are subscribed to the Google Groups "Vagrant" group.
To unsubscribe from this group and stop receiving emails from it, send an email to vagrant-up+unsubscribe@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/vagrant-up/a1ce3732-297b-4d5c-8c17-f167533da3e9%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.



--

George Katsanos

unread,
Aug 26, 2016, 1:26:16 PM8/26/16
to Vagrant
I think I know what the problem is. I just had the same. Try this: 

@vagrant people: please fix this:(

Christian Bourque

unread,
Aug 26, 2016, 1:53:34 PM8/26/16
to Vagrant
That was it!

Thanks a lot George :)

Alvaro Miranda Aguilera

unread,
Aug 26, 2016, 5:15:37 PM8/26/16
to vagra...@googlegroups.com
hello

having guest additions is a requirement to use shared folders

not vagrant fault when a box doesnt have it installed

you can always use a different box, or build your own box.

just to set the expectations that Vagrant wont fix a vm that doesnt have guest additions properly installed.

vbguest-plugin is a nice add on for that

Alvaro

--
This mailing list is governed under the HashiCorp Community Guidelines - https://www.hashicorp.com/community-guidelines.html. Behavior in violation of those guidelines may result in your removal from this mailing list.
 
GitHub Issues: https://github.com/mitchellh/vagrant/issues
IRC: #vagrant on Freenode
---
You received this message because you are subscribed to the Google Groups "Vagrant" group.
To unsubscribe from this group and stop receiving emails from it, send an email to vagrant-up+unsubscribe@googlegroups.com.

For more options, visit https://groups.google.com/d/optout.



--

Christian Bourque

unread,
Aug 26, 2016, 5:25:26 PM8/26/16
to Vagrant
Hey Alvaro,

The box already have the guest additions and I'm already using the vbguest plugin so that's not the problem!

The error that Vagrant reports is misleading because there's a real bug that was introduced in Vagrant 1.8.5!

I've implemented one of the workaround suggested in the bug report and now it works as expected...

Thanks,

Christian


On Friday, August 26, 2016 at 5:15:37 PM UTC-4, Alvaro Miranda Aguilera wrote:
hello

having guest additions is a requirement to use shared folders

not vagrant fault when a box doesnt have it installed

you can always use a different box, or build your own box.

just to set the expectations that Vagrant wont fix a vm that doesnt have guest additions properly installed.

vbguest-plugin is a nice add on for that

Alvaro
On Fri, Aug 26, 2016 at 7:26 PM, George Katsanos <gkat...@gmail.com> wrote:
I think I know what the problem is. I just had the same. Try this: 

@vagrant people: please fix this:(

--
This mailing list is governed under the HashiCorp Community Guidelines - https://www.hashicorp.com/community-guidelines.html. Behavior in violation of those guidelines may result in your removal from this mailing list.
 
GitHub Issues: https://github.com/mitchellh/vagrant/issues
IRC: #vagrant on Freenode
---
You received this message because you are subscribed to the Google Groups "Vagrant" group.
To unsubscribe from this group and stop receiving emails from it, send an email to vagrant-up+...@googlegroups.com.



--
Reply all
Reply to author
Forward
0 new messages