CentOS: Adjusting Xen VM to run on KVM

 

Add the guest agent

yum install qemu-guest-agent

add the serial config for accessing the guest agent

<channel type='unix'>
   <source mode='bind' path='/var/lib/libvirt/qemu/f16x86_64.agent'/>
   <target type='virtio' name='org.qemu.guest_agent.0'/>
</channel>

 

(via http://wiki.libvirt.org/page/Qemu_guest_agent)

Adjust boot arguments

change the console entry from console=hvc0 to console=tty0 and add "single" to boot to single user mode.

It does NOT work to remove the entry instead!

 

Update bootloader configuration

change console=hvc0 to console=tty0 in /boot/grub/menu.lst

 

In OpenNebula etc

Switch driver model to vd

 

Finish

Check that all disks are properly configured to use "vd" devices (mount, pvs)

I think You're done!