Why imported RHEV VM started with the wrong display type ?

Solution Unverified - Updated -

Environment

  • Red Hat Enterprise Virtualization 3.1

Issue

  • When imported a windows Xp VM [having spice display] from RHEL3.0 to RHEV3.1, the qemu processes for the imported VM was started with option -vga cirrus instead of starting with -vga qxl.

Resolution

  • To get the fix need to upgrade to rhevm-3.1.0-50.el6ev.noarch.rpm version of rhevm.

Root Cause

  • This is due to a bug. Here is the Bz-891622

Diagnostic Steps

  • With the following steps this issue can be reproduced:
1. Exported a WinXP desktop VM from  3.0.7_0001-2.el6_3, with spice as the display type.

2. Imported this VM to  3.1.0-32.el6ev

3. Checked and confirmed the console type is Spice. Started the VM,

The display is showed as cirrus instead of qxl.
# ps aux | grep --color cirrus
qemu     23847  4.9  0.6 948580 31268 ?        Sl   12:50   0:10 /usr/libexec/qemu-kvm -S -M rhel6.3.0 -cpu Nehalem -enable-kvm -m 512 -smp 1,sockets=1,cores=1,threads=1 -name winxp -uuid 92a09ab5-4c36-40c4-8113-70790afbcb88 -smbios type=1,manufacturer=Red Hat,product=RHEV Hypervisor,version=6.3-20121121.0.el6_3,serial=71CF83AE-D085-695F-C49D-8FBB75272ACA_52:54:00:05:0A:A0,uuid=92a09ab5-4c36-40c4-8113-70790afbcb88 -nodefconfig -nodefaults -chardev socket,id=charmonitor,path=/var/lib/libvirt/qemu/winxp.monitor,server,nowait -mon chardev=charmonitor,id=monitor,mode=control -rtc base=2012-12-21T12:50:59,driftfix=slew -no-shutdown -device piix3-usb-uhci,id=usb,bus=pci.0,addr=0x1.0x2 -device virtio-serial-pci,id=virtio-serial0,bus=pci.0,addr=0x4 -drive file=/var/run/vdsm/payload/92a09ab5-4c36-40c4-8113-70790afbcb88.ab0200c0615e165170b9aa85d4f643fd.img,if=none,id=drive-fdc0-0-0,readonly=on,format=raw,serial= -global isa-fdc.driveA=drive-fdc0-0-0 -drive if=none,media=cdrom,id=drive-ide0-1-0,readonly=on,format=raw,serial= -device ide-drive,bus=ide.1,unit=0,drive=drive-ide0-1-0,id=ide0-1-0 -drive file=/rhev/data-center/5ef90dee-42bc-11e2-bf27-525400b40e87/b6b54bff-6367-449e-bb35-90499564576e/images/ff5b8cb1-4d4a-49e9-8972-2cfbedbf1b19/fde932e8-7a0f-4b9b-af87-f62e72867098,if=none,id=drive-virtio-disk0,format=qcow2,serial=ff5b8cb1-4d4a-49e9-8972-2cfbedbf1b19,cache=none,werror=stop,rerror=stop,aio=native -device virtio-blk-pci,scsi=off,bus=pci.0,addr=0x5,drive=drive-virtio-disk0,id=virtio-disk0,bootindex=1 -netdev tap,fd=26,id=hostnet0,vhost=on,vhostfd=27 -device virtio-net-pci,netdev=hostnet0,id=net0,mac=00:1a:4a:41:d1:03,bus=pci.0,addr=0x3 -chardev socket,id=charchannel0,path=/var/lib/libvirt/qemu/channels/winxp.com.redhat.rhevm.vdsm,server,nowait -device virtserialport,bus=virtio-serial0.0,nr=1,chardev=charchannel0,id=channel0,name=com.redhat.rhevm.vdsm -chardev socket,id=charchannel1,path=/var/lib/libvirt/qemu/channels/winxp.org.qemu.guest_agent.0,server,nowait -device virtserialport,bus=virtio-serial0.0,nr=2,chardev=charchannel1,id=channel1,name=org.qemu.guest_agent.0 -chardev spicevmc,id=charchannel2,name=vdagent -device virtserialport,bus=virtio-serial0.0,nr=3,chardev=charchannel2,id=channel2,name=com.redhat.spice.0 -spice port=5900,tls-port=5901,addr=0,x509-dir=/etc/pki/vdsm/libvirt-spice,tls-channel=main,tls-channel=display,tls-channel=inputs,tls-channel=cursor,tls-channel=playback,tls-channel=record,tls-channel=smartcard,tls-channel=usbredir -k en-us -vga cirrus    

4. Stopped the VM and changed console to VNC and then changed back to spice.

5. Started the VM. It showed display as qxl.

# ps aux | grep --color qxl
qemu     25403 68.4  0.6 1065308 30536 ?       Sl   12:59   0:03 /usr/libexec/qemu-kvm -S -M rhel6.3.0 -cpu Nehalem -enable-kvm -m 512 -smp 1,sockets=1,cores=1,threads=1 -name winxp -uuid 92a09ab5-4c36-40c4-8113-70790afbcb88 -smbios type=1,manufacturer=Red Hat,product=RHEV Hypervisor,version=6.3-20121121.0.el6_3,serial=71CF83AE-D085-695F-C49D-8FBB75272ACA_52:54:00:05:0A:A0,uuid=92a09ab5-4c36-40c4-8113-70790afbcb88 -nodefconfig -nodefaults -chardev socket,id=charmonitor,path=/var/lib/libvirt/qemu/winxp.monitor,server,nowait -mon chardev=charmonitor,id=monitor,mode=control -rtc base=2012-12-21T12:59:23,driftfix=slew -no-shutdown -device piix3-usb-uhci,id=usb,bus=pci.0,addr=0x1.0x2 -device virtio-serial-pci,id=virtio-serial0,bus=pci.0,addr=0x4 -drive if=none,media=cdrom,id=drive-ide0-1-0,readonly=on,format=raw,serial= -device ide-drive,bus=ide.1,unit=0,drive=drive-ide0-1-0,id=ide0-1-0 -drive file=/rhev/data-center/5ef90dee-42bc-11e2-bf27-525400b40e87/b6b54bff-6367-449e-bb35-90499564576e/images/ff5b8cb1-4d4a-49e9-8972-2cfbedbf1b19/fde932e8-7a0f-4b9b-af87-f62e72867098,if=none,id=drive-virtio-disk0,format=qcow2,serial=ff5b8cb1-4d4a-49e9-8972-2cfbedbf1b19,cache=none,werror=stop,rerror=stop,aio=native -device virtio-blk-pci,scsi=off,bus=pci.0,addr=0x5,drive=drive-virtio-disk0,id=virtio-disk0,bootindex=1 -netdev tap,fd=26,id=hostnet0,vhost=on,vhostfd=27 -device virtio-net-pci,netdev=hostnet0,id=net0,mac=00:1a:4a:41:d1:03,bus=pci.0,addr=0x3 -chardev socket,id=charchannel0,path=/var/lib/libvirt/qemu/channels/winxp.com.redhat.rhevm.vdsm,server,nowait -device virtserialport,bus=virtio-serial0.0,nr=1,chardev=charchannel0,id=channel0,name=com.redhat.rhevm.vdsm -chardev socket,id=charchannel1,path=/var/lib/libvirt/qemu/channels/winxp.org.qemu.guest_agent.0,server,nowait -device virtserialport,bus=virtio-serial0.0,nr=2,chardev=charchannel1,id=channel1,name=org.qemu.guest_agent.0 -chardev spicevmc,id=charchannel2,name=vdagent -device virtserialport,bus=virtio-serial0.0,nr=3,chardev=charchannel2,id=channel2,name=com.redhat.spice.0 -spice port=5900,tls-port=5901,addr=0,x509-dir=/etc/pki/vdsm/libvirt-spice,tls-channel=main,tls-channel=display,tls-channel=inputs,tls-channel=cursor,tls-channel=playback,tls-channel=record,tls-channel

This solution is part of Red Hat’s fast-track publication program, providing a huge library of solutions that Red Hat engineers have created while supporting our customers. To give you the knowledge you need the instant it becomes available, these articles may be presented in a raw and unedited form.