VMware Cloud Community
iainh667
Enthusiast
Enthusiast

RHEL 5.11 P2V - VMware tools + Kernel version

 

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:

  1. P2V physical to virtual using VMware Converter
  2. Boot new VM using Linux ISO  and select Linux rescue mode
  3. chroot /mnt/sysimage 
  4. vmware tools is already located in /tmp
  5. uname -r   - rescue kernel version is 2.6.18-398.el5 
  6. ls /lib/modules   - working kernel version is 2.6.18-416.0.0.0.1.el5
  7. /tmp/vmware-tools-distrib/vmware-install.pl
  8. Fails as it cannot open directory /lib/modules/2.6.18-398.el5 

 

0 Kudos
0 Replies