Hyper-V to ESX Linux VM Conversion
October 24, 2016
CentOS6, Hyper-V, Red Hat Enterprise Linux 6, Red Hat Enterprise Linux 7, VMware, VMware ESXi 5, Windows Server 2012 R2
0 Comments
[ad#ad-post]
- Power Off the server
- Create a new VM on ESX without a Harddrive.
- Convert the hard drive using StarWind V2V Image Converter
- Copy the Hyper-V harddrive into the ESX directory of the VM created above
- Convert the Hyper-V file to ESX.
- Delete the Hyper-V hard drive copy
- Modify the new ESX VM and add the hard drives that you just converted (in mounting order)
- Start the VM and open the console
- Choose Rescue mode
- Rebuild the Kernel Image:
- Choose the latest already installed kernel image and then use the latest, matching kernel modules under /etc/modules
- eg: mkinitrd -v -f /boot/initramfs-3.10.0-327.22.2.el7.x86_64.img 3.10.0-327.22.2.el7.x86_64
- https://kb.vmware.com/selfservice/microsites/search.do?language=en_US&cmd=displayKC&externalId=1002402\
- Reboot the VM
- Check network connectivity
- ip addr
- See if network adapter has IP. if not, note the name of the adapter
- If adapter is different (eth0 vs. eno823786239), do the following
- cd /etc/sysconfig/network-scripts/
- mv ifcfg-$OLD_ADAPTER_NAME ifcfg-$CURRENT_NAME (substitute the vaiables for the real old and new names.
- vi ifcfg-$CURRENT_NAME
- remove the line starting with uuid
- modify the name and device to match the new name (eth0 vs. eno823786239)
- Reboot and verify that you have network connectivity
- Install open-vm-tools
- yum install open-vm-tools
[ad#ad-post]