Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Use of libvirt_cloudinit_disk is no longer possible with a Q35 machine that must boot in UEFI mode. #1137

Open
antanof opened this issue Dec 11, 2024 · 0 comments

Comments

@antanof
Copy link

antanof commented Dec 11, 2024

System Information

Linux distribution

fedora41

Opentofu version

OpenTofu v1.8.6
on linux_amd64

Provider and libvirt versions

+ provider registry.opentofu.org/dmacvicar/libvirt v0.8.1
+ provider registry.opentofu.org/hashicorp/random v3.6.3

Checklist

  • The use of libvirt_cloudinit_disk is no longer possible with a Q35 machine that must boot in UEFI mode.

Description of Issue/Question

Setup

Hello everyone,

I’m using a Q35 machine to run AlmaLinux 9.5 and the resource libvirt_cloudinit_disk named commoninit.

However, I’m encountering the following error:

Error: error defining libvirt domain: unsupported configuration: IDE controllers are not supported for this QEMU binary or machine type

│ with module.machine["hme-al9-01v"].libvirt_domain.vm,
│ on .terraform/modules/machine/main.tf line 63, in resource "libvirt_domain" "vm":
│ 63: resource "libvirt_domain" "vm" {

It seems that IDE controllers are not allowed for Q35 machines, which causes issues when trying to mount a CloudInit ISO, for example.

Does anyone have a solution or workaround for this limitation?

Thank you in advance for your help!

Steps to Reproduce Issue

  1. prepare the hcl code for terraform or opentofu
  2. Boot an AlmaLinux 9.5 VM using the official QCOW2 image.
  3. Configure the VM to use UEFI with OVMF firmware.
  4. Attempt to inject cloud-init configuration into the VM.

Additional information:

Is it possible to provide a choice of driver for mounting an ISO drive in the cloudinit block?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant