-
-
Notifications
You must be signed in to change notification settings - Fork 642
Guest additions sometimes fail to be detected #175
Comments
I resolved this with the following command:
I can't explain why it was working for so long, and why it randomly occurred or why it temporarily went away if i vagrant destroyed and re-provisioned. I'll leave this open in case it comes back otherwise we can prob close in a few days. |
That plugin is the shotgun approach to fixing the issue, but it works, so we may want to note it in documentation somewhere. Since I'm on VMWare Fusion, I don't see that issue anymore, but I do remember hitting it every now and then on VirtualBox. I would have to restart my computer entirely for virtualbox to start functioning properly again. The only other possibility is that the version of VirtualBox you're running is much different than 4.3.28 (or .26... whatever was latest before 5.0.0). What version do you have installed? It has to be close for Vagrant and VirtualBox to get along properly. |
Also, one other thing to check: make sure you have the latest version of the base box (e.g. Run |
I'm on version 4.3.28r100309 for VirtualBox and ubuntu1404 box as you suggest. Can you explain what's "shotgun" about that approach? Mainly just so I know if it's going to get me into trouble down the line? |
It's not shotgun in a negative way—just in a way that covers up any errors in the actual Vagrant box itself. If you have an older version of one of my boxes, then it probably didn't have the guest additions installed correctly. And if you're using some other box, it might not include the guest additions at all. The plugin makes sure they're present and working, which is good, but it masks the problem of an outdated base box a little, and it also makes the process of building a new VM take a little longer (usually only a few seconds, but still, every second counts!). |
I've struggled with this issue a lot as well. And the plugins solution is troublesome as it causes some of my vagrants to hang when I'm provisioning them. Does anyone know of a canonical solution to this problem? |
In using this VM between half a dozen projects I've found that after some time a project that I halted with "vagrant halt" can no longer start, the error is while mounting the shared folders.
I did some Googling and that's related to the VM guest additions. I can confirm right above, that when it fails it also no longer detects the guest additions.
Any thoughts?
Relevant output:
The text was updated successfully, but these errors were encountered: