Closed Meuk closed 8 years ago
Does anyone have a solution yet? Even if it's just a temporary solution/workaround?
@Meuk, @gnoesiboe what are your VirtualBox and Vagrant versions, also your OS (Mac or Windows)? There are issues with newer version incompatibilities between VirtualBox, Vagrant and boot2docker.iso.
The following combination should work:
Try this for downgrading on Windows via choco:
choco upgrade virtualbox --version 5.0.24.108355 -y
choco upgrade vagrant --version 1.8.4 -y
Unfortunately on Mac cask does not support version selection, so you will have to uninstall prerequisites first:
brew cask uninstall virtualbox
brew cask uninstall vagrant
After that manually install version mentioned above. DO NOT re-run the prerequisites installation script, since this will install the latest versions via brew cask again.
@lmakarov I was running the latest versions of Vagrant (1.8.5) and VirtualBox (5.1.2), combined with the 'develop'-branch state of your vagrant.yml
and VagrantFile
, on mac.
Last night I downgraded to:
vagrant.yml
and VagrantFile
of v1.6.2
And got it to work again for now. Hope this helps you to reproduce the problem :)
Vagrant 1.8.5 should be compatible with the latest VirtualBox 5.1.2 release, however VirtualBox Guest Additions version we currently have is 5.0.20 and the latest boot2docker release is at 5.0.24. Both will most likely have issues with VirtualBox 5.1.2.
So for now avoid VirtualBox 5.1.x and stick with:
We can get versions locked for Windows users in dsh install prerequisites, however not for Mac users, as cask does not (and looks like won't) support this...
I tested this with:
Everything works again as expected. Thanks for the help.
It still doesn't work with the new blinkreaction/boot2docker 1.12.1 image
@tdroenner what OS are you on and what's the error that you are getting?
Windows 10. It's the same error as the first post: ==> boot2docker: Mounting shared folders... boot2docker: /.ssh => /Users/gnoesiboe/.ssh 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 .ssh /.ssh mount -t vboxsf -o uid=id -u docker,gid=id -g docker .ssh /.ssh
I'v tried VBox 5.1.4 with Vagrant 1.8.5 and the 1.12.1 Boot2docker Image used in the Vagrantfile.
Yeah, I just finished testing on Windows 10 and Mac - same error:
The error output from the command was:
mount: mounting .ssh on /.ssh failed: Protocol error
Even if all custom mounts are removed (.ssh
and .home
) it would still choke on the default one (vagrant
):
The error output from the command was:
mount: mounting vagrant on /vagrant failed: Protocol error
This issue is unrelated to the Guest Additions version and I was not able to find too many mentions of this issue online (quite surprised).
So looks like sticking with the older versions or vagrant and virtualbox is still the best option (https://github.com/blinkreaction/boot2docker-vagrant/issues/83#issuecomment-237628524).
I have finally figured out what the problem was.
Vagrant v1.8.5 is to be blamed for this. In particular this commit and line - https://github.com/mitchellh/vagrant/commit/7e88266999e0eaf86299421e99a4fb038b4f2b1c#diff-97d643b35101562477f4b556a379415fR14
Looks like they refactored it once again in master - https://github.com/mitchellh/vagrant/commit/dd6ad2fbf3bc935dbb127bf5552dcc5990b8e3e6 The fix should be out in v1.8.6 (currently due by September 1, 2016).
I rolled out a hotfix release v1.7.1 of blinkreaction/boot2docker-vagrant that should address this issue via a temporary workaround.
For those interested in the technical details, here's what the workaround looks like - https://github.com/blinkreaction/boot2docker-vagrant/commit/a072a84df6f8dbcad239d9b992c4fc30285146a4
Hi,
We've recently updates our docker machines here, and we're running into the issue that the .ssh folder cannot be mounted, thus stopping the whole vagrant up proces. The error is
when running the commands
in the guest, we're getting the following error