Failed to mount folders in Linux guest. #117
Comments
Seems to be a VirtualBox 4.3.10 issue. Workaround:
Tested: https://gist.github.com/felixrabe/1c8a43c87aeb229bf635 Origin of workaround:
|
Thanks. This worked for me with the same setup on OS X 10.8.5. |
According to https://www.virtualbox.org/ticket/12879 this will be fixed in VBoxGuestAdditions 4.3.11. I suggest to close this issue, because it is not a vagrant bug, there is a workaround for guest additions 4.3.10 and it will most likely be fixed in next guest additions release (4.3.11). |
@felixrabe That worked for me too in OS X 10.9.2. Thanks! |
@felixrabe this worked for me too on OS X and Virtualbox 4.3.10, thx! |
Might it be worth adding a special case into vbguest to download the guest additions for 4.3.11-93070 rather than 4.3.10 to prevent confusion until the new virtualbox version is released? |
A little late to the party, but I'm getting around this issue (since 4.3.11 is taking its sweet time), by using a custom installer (part of vbguest already): class HackyGuestAdditionsInstaller < VagrantVbguest::Installers::Ubuntu
def install(opts=nil, &block)
super
super_garbage_hack = <<-EOF
if [ ! -e /usr/lib/VBoxGuestAdditions ]; then
sudo ln -s /opt/VBoxGuestAdditions-4.3.10/lib/VBoxGuestAdditions \
/usr/lib/VBoxGuestAdditions || true
fi
EOF
communicate.sudo(super_garbage_hack)
end
end
Vagrant.configure("2") do |config|
# ...
config.vbguest.installer = HackyGuestAdditionsInstaller
# ...
end Obviously, if your guest is something other than Ubuntu, you'd need to derive from the correct base class for your OS. HTH! |
@t3hpr1m3 for some reason it's not working for me :/. I'm trying to provision an ubuntu 14.04 box. I have the vbguest plugin installed as well. |
@ldenman It would help us to know what is not working for you exactly, and how? As for me, before applying @t3hpr1m3 's hack, I had the following appear in red at the end of running
After applying the hack, the difference after I |
@felixrabe Howdy. So, the failure case is the "failed to mount folders in Linux guest message" in red, exactly what you were seeing. Versions: ArchLinux When I run this code on the command line via vagrant ssh, the problem goes away:
My bash session looks like this:
And my Vagrant file is this: # -*- mode: ruby -*-
# vi: set ft=ruby :
class HackyGuestAdditionsInstaller < VagrantVbguest::Installers::Ubuntu
def install(opts=nil, &block)
super
super_garbage_hack = <<-EOF
if [ ! -e /usr/lib/VBoxGuestAdditions ]; then
sudo ln -s /opt/VBoxGuestAdditions-4.3.10/lib/VBoxGuestAdditions \
/usr/lib/VBoxGuestAdditions || true
fi
EOF
communicate.sudo(super_garbage_hack)
end
end
# Vagrantfile API/syntax version. Don't touch unless you know what you're doing!
VAGRANTFILE_API_VERSION = "2"
Vagrant.configure(VAGRANTFILE_API_VERSION) do |config|
config.vbguest.installer = HackyGuestAdditionsInstaller
config.omnibus.chef_version = :latest
config.vm.box = "~/src/bento/builds/virtualbox/opscode_ubuntu-14.04_chef-provisionerless.box"
config.vm.network "forwarded_port", guest: 80, host: 8000
config.ssh.private_key_path = [ '~/.vagrant.d/insecure_private_key' ]
config.vm.provider "virtualbox" do |vb|
# # Use VBoxManage to customize the VM. For example to change memory:
vb.customize ["modifyvm", :id, "--memory", "2048"]
end
end |
Thanks @felixrabe! Your workaround rescued my VVV setup on my Windows machine. |
I also have this issue with the latest Vagrant, VB and GuestAdditions as well as with Vagrant 1.6.2, VB 4.2.10 and GuestAdditions 4.2.10. Creating the symlink didn't work for me; neither did installing the vagrant-vbguest plugin. Any ideas why this is happening? |
Sorry, I’ve only tested this with Ubuntu guests. On 22 May 2014, at 11:25, Alexander Hofstede notifications@github.com wrote:
|
hashicorp/vagrant#3341 (comment) solved it for me. |
I'm still seeing this with VirtualBox 4.3.18, Vagrant 1.6.3, OS X 10.9.5, Guest OS Ubuntu 14.04. The link solution doesn't seem to work for me, and manually trying to mount inside the VM sometimes works and sometimes results in a |
@hamiltont I also have the same issues with VirtualBox 4.3.18/4.3.16 (the other stuff is Vagrant 1.6.5, Ubuntu 12.04). So I've checked my dmesg I have found the following error:
Quick search in the Web and I've found this: https://www.virtualbox.org/ticket/928#comment:20 - VirtualBox fails to mount shared folders if their name is not in lowercase. I've renamed the shared folder name in VirtualBox settings and the mounting is working. At least when I execute the commands manually. |
@zloster it works! Thanks a lot :-) As an aside, I did not change the folder on my host system. It's called "FooBar", and running
fails, while this works
If other people have this issue, I'd propose that Vagrant attempts the mount in this manner after trying the current two approaches |
I have this issue also but only for suse...for ubuntu and debian everything is good. mount -t vboxsf -o uid= Building the shared folder support module failed |
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions. |
I've just run
vagrant plugin install vagrant-vbguest
and now/vagrant
does not get mounted anymore. Error message:Failed to mount folders in Linux guest.
See https://gist.github.com/felixrabe/fcedbd02c1570252cc14 for the full reproduction with a fresh setup.
Versions:
The text was updated successfully, but these errors were encountered: