We have just completed a RHEL 5.11 P2V migration using VMware Converter. We now need to run vmware-tools to install the required drivers and generate a new ramdisk so that the host will boot correctly on current kernel. However as the rescue CD is at a lower level of Kernel version than the host we are getting an error: could not open directory /lib/modules/2.6.18-398.el5 which is correct as the current kernel version is 2.6.18-416.0.0.0.1.el5 and /lib/modules/2.6.18-398.el5 does not exist.
Is there a way to tell vmware-tools to update a specific kernel version in /lib/modules rather than it doing a uname -r on the rescue disk version? I read that there is a -k option but could not get that to work.
Steps:
- P2V physical to virtual using VMware Converter
- Boot new VM using Linux ISO and select Linux rescue mode
- chroot /mnt/sysimage
- vmware tools is already located in /tmp
- uname -r - rescue kernel version is 2.6.18-398.el5
- ls /lib/modules - working kernel version is 2.6.18-416.0.0.0.1.el5
- /tmp/vmware-tools-distrib/vmware-install.pl
- Fails as it cannot open directory /lib/modules/2.6.18-398.el5