mkinitrd -f --with=virtio_blk --with=virtio_pci --builtin=xenblk /boot/initrd-kernel_ver.img kernel_ver
Edit /etc/inittab
Shutdown the guest on Xen host
Create a KVM config file for the new guest
On Xen host, virsh dumpxml guest_name>guest_name.xml
Copy this XML file to the KVM host, into /root or /tmp
On KVM host, edit KVM config file to match values from Xen config*
Change domain type
to kvm
Remove bootloader
line
Change type arch='x86_64' machine='xenpv'linux/type
to type arch='x86_64' machine='pc'hvm/type
Add this line under devices emulator/usr/libexec/qemu-kvm/emulator
Change driver name='phy'/
to driver name='qemu' type='raw'/
Change target dev='xvda' bus='xen'/
to target dev='vda' bus='virtio'/
Change mouse
bus to ps2
Define the domain on KVM host
Start guest on KVM host
Clean-up tasks