Getting this error during vagrant up --provider=vmware_fusion
:
[default] Waiting for HGFS kernel module to load...
The HGFS kernel module was not found on the running virtual machine.
This must be installed for shared folders to work properly. Please
install the VMware tools within the guest and try again. Note that
the VMware tools installation will succeed even if HGFS fails
to properly install. Carefully read the output of the VMware tools
installation to verify the HGFS kernel modules were installed properly.
Googling, I see that this is related to the problem
$ lsmod | grep -i '^vmhgfs'
$
but I'm not clear what the solution is.
I've installed VMWare tools in my base vmx that is being built by packer:
$ vmware-
vmware-checkvm vmware-uninstall-tools.pl
vmware-config-tools.pl vmware-user
vmware-hgfsclient vmware-vmblock-fuse
vmware-rpctool vmware-xdg-detect-de
vmware-toolbox-cmd vmware-xferlogs
I also enabled Shared Folders in the VMWare settings
Any ideas what I can do?
- Some packer setting to enable HGFS?
- Something to change in the base vmx?
Answered by @mitchellh on twitter
VMWare tools installation is silently failing during install because of missing gcc and linux headers. I didn't see the error because I was running
sudo ./vmware-install.pl -d
which doesn't stop on failure.To fix the problem install prerequisites:
Then reinstall VMWare tools (without the
-d
flag to make sure everything works properly)