-
Notifications
You must be signed in to change notification settings - Fork 40
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
Kernel_upgrade Exec[vmware_config_tools] runs every time on Ubuntu 12.04 LTS #9
Comments
Hi Adam, sorry for the delay in replying to this! Are you running 32bit or 64bit Ubuntu? |
Hey Craig, no worries. It's 64-bit, here's a uname -a just in case: |
This happens with Ubuntu 13.04 as well:
I've tried serveral reboots to see if it's something to do with the new modules not yet loaded because the new kernel isn't live (or some other wacky sync problem with old kernel, old modules, new kernel and new modules) but this fails to resolve the issue. |
Could you both search for the location of the vmci.ko module file on your systems? The exec will always run unless that file is present (on my 12.04 installs it's in /lib/modules). |
vmci.ko isn't present on my system at all. |
|
Ok, looking at line https://github.com/craigwatson/puppet-vmwaretools/blob/master/manifests/kernel_upgrade.pp#L28 The whole [root@gold:/lib/modules] # ls
3.8.0-19-generic 3.8.0-22-generic 3.8.0-23-generic
[root@gold:/lib/modules] # cd 3.8.0-23-generic/
[root@gold:/lib/ ⦠/modules/3.8.0-23-generic] # ls
build modules.alias.bin modules.dep.bin modules.symbols
initrd modules.builtin modules.devname modules.symbols.bin
kernel modules.builtin.bin modules.order
modules.alias modules.dep modules.softdep |
I've just checked, vCentre reports that the VMWare Tools are installed and the correct version. |
Perhaps -d doesn't install VMCI on this distro by default? |
I figured it out. It's because build-essential isn't installed. So I did this on 12.04.2:
So, I guess to fix this we just need to add an install for build-essential. I'm new to puppet, but if I get a spare minute I'll fork it and try to toss it in. -Adam |
Strange, |
Pulled newest master, uninstalled VMware Tools, gcc, and build-essential. Yay! Thanks guys. |
Hmm, this is not resolved for me. I might the same uninstall and purge provess as described by @whiteadam and see if |
Give it a whirl. It works for me without error now. Just run vmware-uninstall.pl (or something like that) |
I've found that checking for vmci.ko to determine if vmware tools is already installed isn't really reliable. On Ubuntu 12.04 64bit I don't get a vmci.ko regardless of the presence of build-essential and the kernel headers. Also, http://kb.vmware.com/selfservice/microsites/search.do?language=en_US&cmd=displayKC&externalId=1025260 suggests vmci.ko isn't necessary (and even useless if VMCI is disabled, which seems to be the default). I switched the check in kernel_upgrade.pp to 'creates => "/lib/modules/${::kernelrelease}/kernel/drivers/scsi/vmw_pvscsi.ko",', but maybe there's another, better candidate as well. |
This is also a problem on RHEL/CentOS 5.9 (x86_64). The updated check for vmw_pvscsi isn't reliable:
I can't seem to find a module that is reliably built cross-platform, so this may require a case statement or something to assign a target to validate based on platform? Just spit-balling here. |
It looks like 'vmxnet3.ko' exists across every platform I have available: CentOS 6
CentOS 5
Ubuntu 12.10
Ubuntu 12.04.02
I'm working on a quick case statement that will set the appropriate path based on which OS is being run. I should hopefully have a pull request this afternoon. |
Pull request submitted! Tests welcome! |
Thanks for the pull request Ryan! One thing, however - can you confirm that |
Ah crap. You're right. This is a physical box:
Drawing board... time to go back to it. |
I'm closing this request for now as it hasn't seen any recent activity. If anyone is still seeing this bug, please either comment or submit a new ticket. |
I stil have this issue on Ubuntu 12.04 systems. vmwaretools is installed and working however |
OK, if I update to the latest version of vmwaretools, its fine. sorry about that. |
Hey Craig,
First off, awesome script, thanks!
I'm having an issue on Ubuntu where this outputs every time the script is run. This does not happen on Cent or RHEL:
Notice: /Stage[main]/Vmwaretools::Kernel_upgrade/Exec[vmware_config_tools]/returns: executed successfully
It's probably something I've done. Any ideas?
Thanks,
-Adam
The text was updated successfully, but these errors were encountered: