Note: This bug is displayed in read-only format because the product is no longer active in Red Hat Bugzilla.
RHEL Engineering is moving the tracking of its product development work on RHEL 6 through RHEL 9 to Red Hat Jira (issues.redhat.com). If you're a Red Hat customer, please continue to file support cases via the Red Hat customer portal. If you're not, please head to the "RHEL project" in Red Hat Jira and file new tickets here. Individual Bugzilla bugs in the statuses "NEW", "ASSIGNED", and "POST" are being migrated throughout September 2023. Bugs of Red Hat partners with an assigned Engineering Partner Manager (EPM) are migrated in late September as per pre-agreed dates. Bugs against components "kernel", "kernel-rt", and "kpatch" are only migrated if still in "NEW" or "ASSIGNED". If you cannot log in to RH Jira, please consult article #7032570. That failing, please send an e-mail to the RH Jira admins at rh-issues@redhat.com to troubleshoot your issue as a user management inquiry. The email creates a ServiceNow ticket with Red Hat. Individual Bugzilla bugs that are migrated will be moved to status "CLOSED", resolution "MIGRATED", and set with "MigratedToJIRA" in "Keywords". The link to the successor Jira issue will be found under "Links", have a little "two-footprint" icon next to it, and direct you to the "RHEL project" in Red Hat Jira (issue links are of type "https://issues.redhat.com/browse/RHEL-XXXX", where "X" is a digit). This same link will be available in a blue banner at the top of the page informing you that that bug has been migrated.

Bug 1969952

Summary: [virt-install] creates a graphics spice device when not specified although spice is not supported
Product: Red Hat Enterprise Linux 9 Reporter: Katerina Koukiou <kkoukiou>
Component: virt-managerAssignee: Virtualization Maintenance <virt-maint>
Status: CLOSED DUPLICATE QA Contact: Virtualization Bugs <virt-bugs>
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: 9.0CC: phrdina, virt-maint
Target Milestone: betaFlags: pm-rhel: mirror+
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2021-06-09 14:53:34 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:

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 ***