[ ] Is it a bug or something that does not work as expected? Please make sure you fill the version information below:
Description of Issue/Question
terraform-provider-libvirt uses SPICE by default for its libvirtxml.DomainGraphic, but this has been deprecated/removed in RHEL9/CentOS9 Stream, see https://github.com/openshift/installer/pull/5622
[DEBUG] libvirt_domain.bootstrap: apply errored, but we're indicating that via the Error pointer rather than returning it: Error defining libvirt domain: virError(Code=67, Domain=10, Message='unsupported configuration: spice graphics are not supported with this QEMU')
terraform-libvirt-provider could parse the equivalent of virsh domcapabilities to make a better decision regarding which graphics element to add by default:
System Information
Linux distribution
Centos9 Stream/ RHEL 9
Provider and libvirt versions
Checklist
Description of Issue/Question
terraform-provider-libvirt uses SPICE by default for its
libvirtxml.DomainGraphic
, but this has been deprecated/removed in RHEL9/CentOS9 Stream, see https://github.com/openshift/installer/pull/5622terraform-libvirt-provider could parse the equivalent of
virsh domcapabilities
to make a better decision regarding which graphics element to add by default:Or it could switch to VNC by default instead of SPICE.