Bug 1946938

Summary: [RHEL-9] Disable SPICE options in libvirt
Product: Red Hat Enterprise Linux 9 Reporter: Uri Lublin <uril>
Component: libvirtAssignee: Virtualization Maintenance <virt-maint>
Status: CLOSED NOTABUG QA Contact: Virtualization Bugs <virt-bugs>
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: 9.0CC: pkrempa, virt-maint
Target Milestone: beta   
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-04-07 10:47:09 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 Uri Lublin 2021-04-07 09:52:45 UTC
Description of problem:
SPICE has been deprecated in RHEL-8.3 and is to be removed from RHEL-9.

Please:
- Disable support for SPICE components (graphics, smart-card, USB, etc)
- Remove SPICE components from the default configuration (if one exists)

Comment 1 Uri Lublin 2021-04-07 09:55:13 UTC
I built (rhel-9.0 code on a Fedora 33) qemu-kvm without SPICE and without QXL,
and tested “virsh define f33.xml” (with SPICE or QXL) and it fails with errors.
"error: unsupported configuration: spice graphics are not supported with this QEMU"

So possibly it's enough to change the default configuration (if exists) such that it
does not fail for users.

$ rpm -q qemu-kvm libvirt-daemon libvirt-client
qemu-kvm-5.2.0-7.el9.0.1.uri3.x86_64
libvirt-daemon-6.6.0-5.fc33.x86_64
libvirt-client-6.6.0-5.fc33.x86_64

Comment 2 Peter Krempa 2021-04-07 10:37:08 UTC
Does your 'f33.xml' define use of spice explicitly?

According to the parser code the 'type' attribute to '<graphics' is mandatory, so you have to pick an explicit type, in such case the error message reported is correct since it's an explicit configuration and libvirt does not pick any default for you so there isn't anything to change.

Comment 3 Uri Lublin 2021-04-07 10:43:47 UTC
(In reply to Peter Krempa from comment #2)
> Does your 'f33.xml' define use of spice explicitly?

Yes

    <graphics type="spice" port="-1" tlsPort="-1" autoport="yes">
      <image compression="off"/>
    </graphics>

Comment 4 Peter Krempa 2021-04-07 10:47:09 UTC
We can't simply do something which the user didn't request in this case. As noted libvirt doesn't pick a default graphics type and forces the user to specify it. We can't do anything here.