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

Ubuntu 14.04 box vboxvfs broken? #207

Closed
fadenb opened this issue Apr 20, 2014 · 4 comments
Closed

Ubuntu 14.04 box vboxvfs broken? #207

fadenb opened this issue Apr 20, 2014 · 4 comments

Comments

@fadenb
Copy link
Contributor

fadenb commented Apr 20, 2014

Hey,

I just build a fresh box with the ubuntu-14.04-amd64.json template.
Once it was finished I tried using it with vagrant:

 INFO interface: error: Failed to mount folders in Linux guest. This is usually because
the "vboxsf" file system is not available. Please verify that
the guest additions are properly installed in the guest and
can work properly. The command attempted was:

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
Failed to mount folders in Linux guest. This is usually because
the "vboxsf" file system is not available. Please verify that
the guest additions are properly installed in the guest and
can work properly. The command attempted was:

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
 INFO interface: Machine: error-exit ["Vagrant::Errors::LinuxMountFailed", "Failed to mount folders in Linux guest. This is usually because\nthe \"vboxsf\" file system is not available. Please verify that\nthe guest additions are properly installed in the guest and\ncan work properly. The command attempted was:\n\nmount -t vboxsf -o uid=`id -u vagrant`,gid=`getent group vagrant | cut -d: -f3` /vagrant /vagrant\nmount -t vboxsf -o uid=`id -u vagrant`,gid=`id -g vagrant` /vagrant /vagrant"]

Executing the command manually via ssh on the box:

root@localhost:~# mount -t vboxsf -o uid=`id -u vagrant`,gid=`getent group vagrant | cut -d: -f3` /vagrant /vagrant
mount: Protocol error

Seems like the guest addition install is not working as expected:

root@localhost:~# ls -al /sbin/mount.vboxsf
lrwxrwxrwx 1 root root 40 Apr 20 11:45 /sbin/mount.vboxsf -> /usr/lib/VBoxGuestAdditions/mount.vboxsf
root@localhost:~# ls -al /usr/lib/VBoxGuestAdditions/mount.vboxsf
ls: cannot access /usr/lib/VBoxGuestAdditions/mount.vboxsf: No such file or directory
root@localhost:~# ls -al /usr/lib/VBoxGuestAdditions/
ls: cannot access /usr/lib/VBoxGuestAdditions/: No such file or directory

Packer output seemed ok: https://gist.github.com/fadenb/11112530

@juliandunn
Copy link
Contributor

Apparently there are some problems with VirtualBox Guest Additions 4.3.10 and Ubuntu:

misheska/basebox-packer@1c238e9

I haven't done enough research to determine why this is needed.

@juliandunn
Copy link
Contributor

I talked to @misheska and it's a regression with VirtualBox 4.3.10. Instead of putting in place a hack to fix this, I'll just wait for VirtualBox 4.3.12 and rebuild the box then.

If you use these boxes with test-kitchen, there is no shared folder support required, so this isn't a problem.

@Maks3w
Copy link
Contributor

Maks3w commented Apr 24, 2014

There is a workorund hashicorp/vagrant#3341 (comment)

Anyway this is not an bento issue or related with any chef product

@fadenb
Copy link
Contributor Author

fadenb commented May 3, 2014

WIll probably be fixed with the next maintenance release of virtualbox ( https://www.virtualbox.org/ticket/12879 )

@Maks3w is right. Not a bento issue so i will close this issue.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants