Open jpresley23 opened 8 years ago
I have a similar error
I have my custom boot2docker from the latest release (v1.12.1) That release includes VirtualBox Guest Additions v5.1.2
vagrant: 1.8.4 VirtualBox: 5.1.4 Windows 7 Using Docker as provider Vagrant plugin vagrant-winnfsd
When I start the docker-host everything mounts well, but when I start a service vagrant up myservice
I have this error:
Bringing machine 'author' up with 'docker' provider...
==> author: Docker host is required. One will be created if necessary...
author: Docker host VM is already ready.
==> author: Syncing folders to the host VM...
dockerhost: Mounting shared folders...
dockerhost: /var/lib/docker/docker_1472059381_57325 => C:/Users/ehernandez/D
esktop/mycompany/mycompany
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 docker`,gid=`getent group docker | cut -d: -f3` 98
4f505632 /var/lib/docker/docker_1472059381_57325
mount -t vboxsf -o uid=`id -u docker`,gid=`id -g docker` 984f505632 /var/lib/doc
ker/docker_1472059381_57325
The error output from the command was:
mount: mounting 984f505632 on /var/lib/docker/docker_1472059381_57325 failed: Pr
otocol error
Any idea?
Thank you
The reason is missing getent command. Don't have ideas yet.
Temporally I moved to Vagrant 1.8.4 and VB 5.0.x
See this comment for an explanation and a temporary fix (until vagrant 1.8.6 is released): https://github.com/blinkreaction/boot2docker-vagrant/issues/83#issuecomment-243599131
Another way is to install getent
on tinycore boot2docker iso by building your own. The missing tiny core package is glibc-apps
. Installing it shloud provide getent command and let virtualbox work with vagrant even if version is 1.8.5.
Regards.
I have a vagrant project that uses shared folders. The build breaks because I upgraded to VirtualBox 5.1 and the Guest Additions on boot2docker is still on 5.0. Below is the output of a vagrant up.