Closed kohanyirobert closed 9 months ago
IIRC, the module for the shared filesystem (vboxsf
) is recently loaded on demand and might not be in the early stages where vbguest runs.
Try to limit the check for which modules should be loaded like this:
Vagrant.configure("2") do |config|
config.vbguest.installer_options = { running_kernel_modules: ["vboxguest"] }
end
See https://github.com/dotless-de/vagrant-vbguest#installer-specific-options-installer_options for possible quirks in multi VM setups
IIRC, the module for the shared filesystem (
vboxsf
) is recently loaded on demand and might not be in the early stages where vbguest runs.
If you check the log I've attached to my first post and search for KMODS
you can see that the plugin can't see any of the VirtualBox related modules, so I don't think this to be the problem. Also, even if vbguest
reports that guest additions are not running shared folder functionality works always - I'm not an expert at kernel module loading, but if once a module has been loaded I wouldn't think it gets paged out or something.
Try to limit the check for which modules should be loaded
Already doing that as a workaround, forgot to mention that.
I have a multi-machine setup (not sure if this is relevant or not) and when I run
vagrant up
the plugin always rebuilds kernel modules, etc., not sure why but it takes a tremendous amount of time with 3 VMs. Everything else is a-okay with the VMs, just the fact that at every boot GuestAdditions are rebuilt. I tried to reload them, to no change. The following is what I have found out.I just run these two commands, after each other, the first execution was successful, the second not.
Note:
a
is my machine's name.I've tracked down that
linux.rb
decides whether things are running or not by checking for modules in/proc/modules
. So I ran thisRan it a few times but the modules are always there ... so I've hacked this two lines into
linux.rb
before the regex test... and sure enough, when I run
vagrant vbguest a --status
sometimes thekmods
doesn't contain the lines for required modules.Any idea why this can be happening? :O
I have my whole setup in this repo (link points to the particular commit where I noticed the problem). (**If anyone plans to run it, generate an SSH key in the repo's root called
id_rsa
-ssh-keygen -f id_rsa
.)One though: I'm using
linked_clones
, not sure if this matters - my first thought was maybe the plugin connects to the wrong VM or something, but this doesn't seem to be the case.Just for good measure I'm thrown in a log file from running
vagrant vbguest a --do install --debug 2>&1 | tee vbguest.log
. And here's another running--status
instead. Note: this last log contain (as far as I remember my hack introduced intolinux.rb
, theKMODS
prints and hereby I solemnly swear I didn't hack anything else).I see a few errors like this in the logs:
Not sure if this is relevant, because
cat /proc/modules
always "successful", however sometimes the required modules are missing :S