Bug 1969952 - [virt-install] creates a graphics spice device when not specified although spice is not supported
Summary: [virt-install] creates a graphics spice device when not specified although sp...
Keywords:
Status: CLOSED DUPLICATE of bug 1946939
Alias: None
Product: Red Hat Enterprise Linux 9
Classification: Red Hat
Component: virt-manager
Version: 9.0
Hardware: Unspecified
OS: Unspecified
unspecified
unspecified
Target Milestone: beta
: ---
Assignee: Virtualization Maintenance
QA Contact: Virtualization Bugs
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2021-06-09 14:10 UTC by Katerina Koukiou
Modified: 2021-06-09 14:53 UTC (History)
2 users (show)

Fixed In Version:
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
Environment:
Last Closed: 2021-06-09 14:53:34 UTC
Type: Bug
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)

Description Katerina Koukiou 2021-06-09 14:10:53 UTC
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>

Comment 1 Katerina Koukiou 2021-06-09 14:31:32 UTC
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.

Comment 2 Pavel Hrdina 2021-06-09 14:53:34 UTC

*** This bug has been marked as a duplicate of bug 1946939 ***


Note You need to log in before you can comment on or make changes to this bug.