southsidedean / cka-d-cluster-builder-lab

Terraform code to build preprovisioned infrastructure for building Open Source K8s clusters with kubeadm for CKA practice
6 stars 4 forks source link

Unable to provision on RHEL 9 due to SPICE support being dropped. #1

Open paisley opened 5 months ago

paisley commented 5 months ago

I'm unable to provision a cluster on Libvirt/QEMU due to SPICE graphics support being dropped from RHEL9 and there being no way to override/change the default graphics. This is due to using the MonolithProjects/vm/libvirt provider which sets the graphics to use SPICE by default, as can be seen here.

Steps to reproduce

terraform init
terraform plan
terraform apply -auto-approve

Expected Result

Resources are provisioned and hostnames/IPs are printed to terminal.

Actual Result

│ Error: error defining libvirt domain: unsupported configuration: spice graphics are not supported with this QEMU
│ 
│   with module.controlplane.libvirt_domain.virt-machine[0],
│   on .terraform/modules/controlplane/main.tf line 11, in resource "libvirt_domain" "virt-machine":
│   11: resource "libvirt_domain" "virt-machine" {
│ 
╵

System Information

cat /etc/*elease
NAME="Rocky Linux"
VERSION="9.3 (Blue Onyx)"
ID="rocky"
ID_LIKE="rhel centos fedora"
VERSION_ID="9.3"
PLATFORM_ID="platform:el9"
PRETTY_NAME="Rocky Linux 9.3 (Blue Onyx)"
ANSI_COLOR="0;32"
LOGO="fedora-logo-icon"
CPE_NAME="cpe:/o:rocky:rocky:9::baseos"
HOME_URL="https://rockylinux.org/"
BUG_REPORT_URL="https://bugs.rockylinux.org/"
SUPPORT_END="2032-05-31"
ROCKY_SUPPORT_PRODUCT="Rocky-Linux-9"
ROCKY_SUPPORT_PRODUCT_VERSION="9.3"
REDHAT_SUPPORT_PRODUCT="Rocky Linux"
REDHAT_SUPPORT_PRODUCT_VERSION="9.3"
Rocky Linux release 9.3 (Blue Onyx)
Rocky Linux release 9.3 (Blue Onyx)
Rocky Linux release 9.3 (Blue Onyx)
paisley commented 5 months ago

I created an issue and PR to change this in the upstream repo for the MonolithProjects/vm/libvirt provider.