-
Notifications
You must be signed in to change notification settings - Fork 456
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
new domain errors with "unsupported configuration: IDE controllers are unsupported for this QEMU binary or machine type" #885
Comments
Was finally able to determine the issue is with <disk type="file" device="cdrom">
<driver name="qemu" type="raw"></driver>
<source file="/var/lib/libvirt/images/commoninit.iso"></source>
<target dev="hdd" bus="ide"></target>
</disk> Changing the bus type to "sata" and running it against Will update issue description accordingly |
I think @wsidl created a domain of As a workaround, I have been able to live-patch the resulting XML with XSLT: cdrom-model.xsl
and in main.tf:
|
Great solution! It helped me much. |
Sorry to dig this issue, however i would love for someone to assist me getting this to work. I am trying to get a q35 machine to boot and use cloudinit on it, but i haven't been successful, everything works correctly if i use the default i440FX. this is my Domain.tf
and this is my xslt:
it is what @cbricart posted above ( i also found another xslt that attempts to do the same, change the bus type from ide to sata, but it doesn't seem to work) Whenever I try to run domain.tf with xslt i am never able to launch cloudinit, if i check virt manager, the machine is the q35 type and the cdrom has the bus as sata as requeired however cloudinit never starts. Does anyone know what the issue may be? Best regards, |
System Information
Linux distribution
Manjaro Linux x86/64 kernel 5.10.63
Terraform version
v1.0.6
Provider and libvirt versions
Provider v.0.6.11
libvirt 7.7.0
Checklist
Is your issue/contribution related with enabling some setting/option exposed by libvirt that the plugin does not yet support, or requires changing/extending the provider terraform schema?
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
Not able to create a single VM using this provider due to the generated domain contains incorrect/invalid values for defining the disks on the instance.
When comparing the results of the generated domain (via
TF_LOG=DEBUG terraform apply
), I get the error "unsupported configuration: IDE controllers are unsupported for this QEMU binary or machine type". After trying various changes by modifying the Domain XML from the verbose log, was able to discover the issue was in the CDROM disk block.This domain uses a cloudinit ISO which is loaded as a CDROM. The block generated looks like:
When modifying the line
<target dev="hdd" bus="ide"></target>
to use the attributebus="sata"
, thevirsh create generated.xml
command was able to successfully create the domain.Setup
main.tf contents
Steps to Reproduce Issue
Run configuration with variables set for
disk_pool_name
,disk_pool_path
,ssh_public_key
:terraform plan && terraform apply
Additional information:
Do you have SELinux or Apparmor/Firewall enabled? Some special configuration?
Have you tried to reproduce the issue without them enabled?
The text was updated successfully, but these errors were encountered: