The key to migrating a VM from KVM to Xen is to replace the original kernel without Xen patches, and then select the appropriate grub (older versions of Xen do not support grub2 ). After completing the preceding two steps, make the image of the KVM virtual machine into an Xen image, and then use the configuration file of the Xen Virtual Machine to convert the KVM virtual machine to a virtual machine under the Xen. Install Xe
The key to migrating a VM from KVM to Xen is to replace the original kernel without Xen patches, and then select the appropriate grub (older versions of Xen do not support grub2 ). After completing the preceding two steps, make the image of the KVM virtual machine into an Xen image, and then use the configuration file of the Xen Virtual Machine to convert the KVM virtual machine to a virtual machine under the Xen.
Install the kernel of the Xen patch (debian 6.0 is used as an example)
Install the xen Kernel
# Apt-get install linux-image-2.6.32-5-xen-amd64 xen-linux-system-2.6.32-5-xen-amd64