|
Virtualization -
VMware
|
|
Written by Allen Sanabria
|
|
Monday, 06 July 2009 10:06 |
|
The other day I was installing kernel updates on a few of my Red Hat servers and I ran into a minor nuisance. After each reboot, I no longer had network connectivity on the hosts, that has the updated kernel. I then realized, that vmware-tools was not running on all of those hosts. So after a few manual instance of me running "vmware-tools-config.pl -d" and "/etc/init.d/network restart"....I decided to automate that, by adding the below into "/etc/rc.local"
rkernel=`uname -r` if [ -e /etc/vmware-tools/not_configured ]; then echo "vmware-tools not configured for running kernel $rkernel" echo "running vmware-config-tools.pl" /usr/bin/vmware-config-tools.pl -d echo "vmware-tools now compiled for running kernel $rkernel" echo "restarting networking" /etc/init.d/network restart echo "network restarted" exit 0 fi
After each host rebooted, I now had network connectivity and vmware-tools was running. I hope the above will save you some time.
|
|
Last Updated on Tuesday, 07 July 2009 07:54 |