I recently got a Xen server running on CentOS 5.5 with GPLPV drivers but now I would like to migrate to KVM and would rather not have to rebuild the guest OS. My image works great when using the Xen. I used a similar procedure to move a CentOS guest and that guest came up with no problems at all. It's just the Windows guest that is causing me grief.
I removed the GPLPV drivers and disabled Windows Test Mode then shutdown the guest. After I convert the image to qcow2 and create the QEMU guest windows boots to the Boot Menu but I cant get much further. Safe Mode and other selections dont seem to help. No mater what I select it boots Windows Server 2008 to System Recovery Options GUI. It then will give a DRIVER_IRQ_NOT_LESS_OR_EQUAL blue screen at some random point in the recovery gui.
Host info is:
CentOS 5.5 Linux 2.6.18-194.17.4.el5 #1 SMP x86_64
kvm-tools-83-164.el5_5.21
kvm-83-164.el5_5.21
kvm-qemu-img-83-164.el5_5.21
libvirt-0.6.3-33.el5_5.3
libvirt-0.6.3-33.el5_5.3
libvirt-python-0.6.3-33.el5_5.3
virt-manager-0.6.1-12.el5
virt-viewer-0.0.2-3.el5
The guest is Windows Server Enterprise 2008 x64 with all current windows updates applied.
Command used to convert the raw image to qcow2.
# qemu-img convert /var/lib/xen/images/ws4.img -O qcow2 /var/lib/libvirt/images/ws4.img
Command used to create the guest.
# virt-install qemu:///system -n ws4 -r 1024 --vcpus=2 --os-type=windows --os-variant=win2k8 --disk path=/var/lib/libvirt/imag
es/ws4.img --import
My /etc/libvirt/qemu/ws4.xml to after adding a display.
Code:
<domain type='qemu'>
<name>ws4</name>
<uuid>b01bde5c-969d-95ad-4383-321c17abcc33</uuid>
<memory>1048576</memory>
<currentMemory>1048576</currentMemory>
<vcpu>2</vcpu>
<os>
<type arch='x86_64' machine='rhel5.4.0'>hvm</type>
<boot dev='hd'/>
</os>
<features>
<acpi/>
<apic/>
<pae/>
</features>
<clock offset='localtime'/>
<on_poweroff>destroy</on_poweroff>
<on_reboot>restart</on_reboot>
<on_crash>restart</on_crash>
<devices>
<emulator>/usr/libexec/qemu-kvm</emulator>
<disk type='file' device='disk'>
<driver name='qemu' cache='none'/>
<source file='/var/lib/libvirt/images/ws4.img'/>
<target dev='hda' bus='ide'/>
</disk>
<interface type='network'>
<mac address='54:52:00:67:b2:84'/>
<source network='default'/>
</interface>
<serial type='pty'>
<source path='/dev/pts/5'/>
<target port='0'/>
</serial>
<console type='pty' tty='/dev/pts/5'>
<source path='/dev/pts/5'/>
<target port='0'/>
</console>
<input type='tablet' bus='usb'/>
<input type='mouse' bus='ps2'/>
<graphics type='sdl' display=':1.0' xauth='/root/.Xauthority'/>
</devices>
</domain>
Any suggestions would be greatly appreciated. Thanks