Description of problem: Video type for linux guests defaults to qxl on rhel9 host, although it is not supported. Version-Release number of selected component (if applicable): libvirt-daemon-7.3.0-1.el9.x86_64 qemu-kvm-6.0.0-3.el9.x86_64 virt-install-3.2.0-4.el9.noarch How reproducible: Always Steps to Reproduce: 1. virt-install --connect qemu:///system --name subVmTest1 --os-variant cirros0.4.0 --boot hd,network --vcpus 1 --memory 128 --import --disk /var/lib/libvirt/images/subVmTest1-2.img --graphics spice,listen=127.0.0.1 --console file,target.type=serial,source.path=/var/log/libvirt/console-subVmTest1.log --print-step 1 > /tmp/xml 2. virsh define /tmp/xml Actual results: # virsh define /tmp/xml error: Failed to define domain from /tmp/xml error: unsupported configuration: domain configuration does not support video model 'qxl' Expected results: # virsh define /tmp/xml Domain 'subVmTest1' defined from /tmp/xml Additional info: qxl is missing from video capabilities on the RHEL.9.0 host: # virsh domcapabilities | grep -A9 '<video' <video supported='yes'> <enum name='modelType'> <value>vga</value> <value>cirrus</value> <value>virtio</value> <value>none</value> <value>bochs</value> <value>ramfb</value> </enum> </video>
Alright, this was a red herring, I specified in the virt-install options to add spice graphics, but the host does not have spice-server. However when specifying to graphics at all, virt-install will still default to spice graphics. So: virt-install --connect qemu:///system --name subVmTest1 --os-variant cirros0.4.0 --boot hd,network --vcpus 1 --memory 128 --import --disk /var/lib/libvirt/images/subVmTest1-2.img --console file,target.type=serial,source.path=/var/log/libvirt/console-subVmTest1.log --print-step 1 Will still create a: ``` <graphics type="spice" port="-1" tlsPort="-1" autoport="yes"> <image compression="off"/> </graphics> <sound model="ich6"/> <video> <model type="qxl"/> </video> ``` Which will make the VM defining to fail like before.
*** This bug has been marked as a duplicate of bug 1946939 ***