Skip to content
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

Fix issue with VMWare builds: "Waiting for HGFS kernel module to load..." #4

Closed
2 tasks done
geerlingguy opened this issue Jun 23, 2015 · 5 comments
Closed
2 tasks done

Comments

@geerlingguy
Copy link
Owner

Whenever I bring up machines using the default share (e.g. the one that is used for the /vagrant mount by default, which could be switched to NFS/rsync/SMB, or disabled, but still...), I get the following error after a while:

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.

I'd like to not have to update all my Vagrantfiles to disable the default share or switch it to NFS, so I'd like to fix this, maybe using a technique like the one here: https://bascht.com/tech/2013/10/07/building-a-vagrant-box-with-centos-64-and-vmware/

TODO

@geerlingguy
Copy link
Owner Author

Also, I can confirm that this is happening with at least CentOS 6.6; I haven't tested thoroughly on CentOS 7.x yet.

@geerlingguy
Copy link
Owner Author

Fix is in code, now I just need to rebuild some packer boxes and put them up on Atlas/Vagrant Cloud.

@geerlingguy
Copy link
Owner Author

For CentOS 7, there is no simple installation via RPM, it seems. So far I can get HGFS working if I manually install gcc + kernel headers (with uname -r so kernel-devel-[kernel]), then go through the gauntlet:

# After mounting the ISO on `/dev/cdrom` with 'Reinstall VMware tools' menu item.
mkdir /mnt/cdrom
mount /dev/cdrom /mnt/cdrom
cd /tmp
tar zxpf /mnt/cdrom/VMwareTools-xxxxxxx.tar.gz
umount /dev/cdrom
cd vmware-tools-distrib
# Watch the output of this command very closely. No decent error detection :P.
./vmware-install.pl --default

After doing that and a vagrant reload, the HGFS mounts work properly. Ugh.

Working on rebuilding the Packer box a few more times before I pull out more of my hair.

References:

@geerlingguy
Copy link
Owner Author

Might have to do something like:

Supposedly (according to everything I've read), just installing open-vm-tools should be enough for CentOS 7/RHEL7, but this seems not to be the case from what I've been experiencing :(

@geerlingguy
Copy link
Owner Author

Fixed.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant