JamesKindon / jkindon.github.io

https://jameskindon.github.io/jkindon.github.io/
Other
0 stars 1 forks source link

Migrate XenServer VMs to HyperV #10

Open utterances-bot opened 2 years ago

utterances-bot commented 2 years ago

Migrate XenServer VMs to HyperV

Getting out of Citrix XenServer and over to Microsoft HyperV

https://jkindon.com/migrate-xenserver-vms-to-hyperv/

japerlman commented 2 years ago

An alternative to removing the tools prior to migration to avoid poor disk and network I/O performance is the migrate the VMDX to hyperv without removing the tools and then cleanup the VMDX after the fact with the below steps.

  1. Boot the VM into the Windows PE based Recovery Environment. (Will automatically boot to this after failing to start Windows after two attempts)
  2. Open a command prompt by going to Tools > Command Shell
  3. Load the Windows System registry hive from the boot volume. reg load HKLM\restore :\Windows\System32\config\SYSTEM
  4. Run regedit.exe from the command prompt.
  5. Browse to following registry locations. There may be multiple keys with that name. Look through them to find UpperFilters keys with the value XENFLT or XENFILT Examples: HKEY_LOCAL_MACHINE\restore\ControlSet001\Control\Class{4d36e96a-e325-11ce-bfc1-08002be10318} HKEY_LOCAL_MACHINE\restore\ControlSet001\Control\Class{4d36e97d-e325-11ce-bfc1-08002be10318}
  6. Right-click the UpperFilters key with the XENFLT or XENFILT entry and click Delete.
  7. For the remainder of the keys, search the registry (Ctrl+F) and search for XENFLT or XENFILT.
  8. Remove any keys mentioning XenFLT or XENFILT. Use F3 to search for the next instance.
  9. Close Registry Editor and unload the hive: reg unload HKLM\restore
  10. del :\windows\system32\xen*
  11. del :windows\system32\drivers\xen*
  12. Reboot
japerlman commented 2 years ago

After that you can boot Windows normally and finish removing the ghost devices and Delete all ’Xen’ services from HKLM\SYSTEM\CurrentControlSet\Services\

Sorry, unable to edit my previous post.

ghost commented 2 years ago

I do the the migration a bit different...I use VMware converter standalone tool. Yes I use vmtool to convert VMs between hyper v and xen (and back to xen required). You can create the VM local or over the network, I don't even bother to removing the xen tools. Then I just import the vhdx files into hyper v, mount and boot.