-
Notifications
You must be signed in to change notification settings - Fork 4.4k
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
Vagrant can't mount shared folder in VirtualBox 4.3.10 #3341
Comments
Some additional info: In dmesg you'll see a lot of I don't see any mention of this on Virtualbox's Trac, that might be a good place to start. |
Try giving gem install vagrant-vbguest and then do an up command to see if your problem goes away |
@babumuralidharan I tried installing that just to be sure, and it didn't make a difference. As @jbernard mentioned, it seems like it's a bug in VirtualBox rather than in Vagrant. I created vagrant boxes with Ubuntu 12.04, 13.10, and 14.04 and all of them worked fine when v4.3.8 of guest additions were installed, and all failed when v4.3.10 of guest additions were installed. All were running under VirtualBox 4.3.10 on a Linux host. I submitted a bug report to VirtualBox's trac since there wasn't already one there. |
@pcfens guess you did vagrant destroy and then installed this gem and did vagrant up right? it's an issue with virtual box as it needed some guest additions. |
Quick fix is to do the following in the guest: sudo ln -s /opt/VBoxGuestAdditions-4.3.10/lib/VBoxGuestAdditions /usr/lib/VBoxGuestAdditions This solution was provided in https://www.virtualbox.org/ticket/12879 so it's not a vagrant bug |
Thanks @boekkooi - that helped. |
Thanks @boekkooi - Now it´s working |
@babumuralidharan what do you mean with Thanks @boekkooi for found this fix in the VB issues and report it here. I'm closing this issue since it's a problem with VB. I'm glad that this has led to a solution anyway. |
major feature not working ... awesome |
Thanks @boekkooi - Now it´s working |
Fix Step by step:If you not have vbguest plugin, install it:
Run VagrantIt is show a error.
Login on VM
Fix!In the guest (VM logged).
Back on the host, reload Vagrant
|
For commodity all in a single command line:
|
What about 64 bit guests? For me, I needed:
|
@dmourati are you sure that you needed that one? ...I have a precise 64 guest and I didn't need the lib64 path. Also note that the bug report for virtualbox at https://www.virtualbox.org/ticket/12879 is about a saucy 64 guest system with a non-lib64 path in the workaround. For me @renanvaz step-by-step workaround worked like a charm. |
@christofferholmstedt, yes. VirtualBox 4.3.10 broke all my existing Ubuntu 12.04 64 bit VMs. I was already running the vagrant-vbguest. Destroy'ing the vms seems to put the guest additions in the right place. Also seeing this error:
|
@dmourati the key part is if you needed the "lib64" path or only the "lib" path. As the "lib" path was enough for me. |
64 was needed for my existing vms |
Thanks @boekkooi! Super helpful. |
@dmourati @christofferholmstedt i did not need to use lib64 for my precise64 vm but I also don't X11 |
Thanks @boekkooi - the fix you posted worked for me as well |
Here's an alternative approach to the one liner symlink fix. This is based on the fixed VBoxGuestAdditions ISO as outlined in https://www.virtualbox.org/ticket/12879 Essentially boils down to copying the fixed ISO to the VirtualBox folder and letting vbguest plugin do its usual magic.
voila. works for all ubuntu vms. |
vbguest plugin here are not happy with version mistmatch between host (4.3.10) and guest additions (4.3.11) and by doing like so, I mean, copying the new guest additions over the old one, everytime you Maybe, for now, or until a new version of VirtualBox comes out, the best and simple way to handle this is symlinking the directory. |
If you continue to get this message on Windows after fixing up your guest additions, it may be related to missing NFS support. Using vagrant-winnfsd currently doesn't work (at least for me) with Vagrant 1.5.1, but may with Vagrant 1.4.3. |
Using and
on separate runs, but I'm still getting the following when running
|
@kman007us what is the box you are using? |
See hashicorp/vagrant#3341 This should fix a known issue of VirtualBox 4.3.10 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
I'm experiencing this today with Vagrant 1.8.1 and Virtualbox 5.0.14, right out of the blue. No solution listed here has helped so far. |
hey found out that the issue for me was the number of shared folders I was working at a setup with over 70 mounted folders - this will trigger that error with VirtualBox 4 or 5 if you use vboxsf - I switched to NFS and the problem solved it was hard to pin down since the error wasn't pointing in this direction |
The important lines that consistently work for us...
In the shell provisioning script
Back to the Vagrantfile As mentioned ☝️ having the kernel development headers installed before anything else is the trick. Installing the guest additions and syncing folders after has been working on CentOS 6.6 - 7.1. |
In my case it was exactly the number of folders being synced. Thanks @unfulvio! |
Encountered this problem with Windows 7, Vagrant 1.8.1 and Virtualbox 5.0.14 and launching Ubuntu/Trusty64 Fixed when updating to Virtualbox 5.0.16 |
I'm getting this, tried so many solutions. Ubuntu 15.10 / Vagrant 1.8.1 / Virtualbox 5.0.16
vagrant vbguest --status
In vagrant ssh I did
I replaced VBoxGuestAdditions.iso in tmp Copy iso file Still unsolved. |
Tried all the fixes and none of them worked. This is what has worked for me finally CentOS release 6.7 box
logout and Hope this helps |
@voltol +1 |
@voltol same on VirtualBox-5.0.18 and vagrant_1.8.1, ` PASSWORDHIDDENmPASSWORDHIDDENoPASSWORDHIDDENuPASSWORDHIDDENnPASSWORDHIDDENtPASSWORDHIDDEN PASSWORDHIDDEN-PASSWORDHIDDENtPASSWORDHIDDEN PASSWORDHIDDENcPASSWORDH......... The error output from the last command was: stdin: is not a tty
on guest VM: |
I had issues mounting the Host system: Ubuntu |
My setup is roughly LAMP stack with centos 6.4 from puphpet.com; I can give more details if it is desired. My error was similar to the initial post @wsouto made although it revolved around the user not existing. Here is my error message:
I changed the user to vagrant and the group to vagrant as I knew those would exist and was able to pass this issue. (Under synced_folder in config.yaml if you are using puphpet.com's setup) |
Thanks hjianhao . Your solution worked out for me |
very good |
I had the same problem in VirtualBox 5.1.16
|
Same problem on VirtualBox 5.1.10 Interestingly, I have a pre-existing Vagrant in another folder, for which symlinking seems to work just fine. The only difference I can easily see is that the box is different. In my case, changing a configuration file or two (unrelated to any of this) and re-linking seems to have fixed it. |
Happened to me with version |
The Linux guest additions in VirtualBox 5.1.20 are indeed broken, see https://www.virtualbox.org/ticket/16670. I reverted to 5.1.18 to get work done. |
Had the same issue with VirtualBox 5.1.20. Now issue is fixed in VirtualBox 5.1.22 release. |
As mentioned above, I got the issue resolved by installing vagrant-vbguest ($ vagrant plugin install vagrant-vbguest). Thanks a lot for sharing the solution. FYI - I didn't face this issue until I had to use multiple vagrant boxes with a shared directory. Never faced it till I was using one virtual box at a time. |
The uninstall of vagrant does not delete %HOME_DIR%.vagrant.d but before install other version it is important you do it manually. |
Me on Windows running VirtualBox 5.2.6 and Vagrant 2.0.1 When trying to sync a folder, got the vboxsf error message. After performing "vagrant plugin install vagrant-vbguest" on the host the "vagrant up" command caused the VMs to boot nicely. They seem to be able to use the guest additions, building a VirtualBox Guest Additions kernel module. |
Still happen on VirtualBox 6.0.8 on Linux Ubuntu 18.04. Downgrade the VBoxGuestAdditions to 5.2.18 in my Ubuntu 18.04 VM works against my VirtualBox 6.0.8 host. Followed this gist for downgrade https://gist.github.com/claudiobizzotto/67dfcf66ebffca58b1075123c2e898f8. |
I'm going to lock this issue because it has been closed for 30 days ⏳. This helps our maintainers find and focus on the active issues. If you have found a problem that seems similar to this, please open a new issue and complete the issue template so we can capture all the details necessary to investigate further. |
I got VirtualBox updated to 4.3.10 via ppa last night (which I'll downgrade to 4.3.8 and disable this PPA so I can manually control upgrades) and Vagrant is failing to mount shared folder with this new version. The guest additions was upgraded too in an already working VM, I also tried to install it in a new VM with no previous guest additions installed but no success...
It is a problem with VB 4.3.10 for sure, but I'm reporting here to others can know about this issue.
The text was updated successfully, but these errors were encountered: