Converting SLES VMs from VMWare to Hyper-V

Well after many trials and tribulations, I finally figured out a procedure to prep the SLES 12 VMs before the migration. Here is what I’ve found that works:

  1. Install the Hyper-V support modules: zypper in hyper-v

  2. Enable the Hyper-V support modules:

systemctl enable hv_vss_daemon.service
systemctl enable hv_fcopy_daemon.service
systemctl enable hv_kvp_daemon.service

  1. Edit /etc/dracut.conf and change the add_drivers line to this:

add_drivers+=“hv_vmbus hv_netvsc hv_storvsc”

  1. Run the following command to rebuild initramfs:

dracut -f -v

I have been installing all current patches and making sure the VM still boots under VMware before the migration as well. You also have to permit root login over SSH so the Microsoft converter can login.

So far, if I do all that the conversions seem to work fine. I took a lot of this from RedHat info as I could find absolutely nothing talking about SuSE on Hyper-V.

Hope this helps someone!

Matt