q35 chipset by default
This commit is contained in:
@@ -3,6 +3,17 @@ resource "libvirt_domain" "domain" {
|
||||
name = "${var.vm_name}-${count.index}"
|
||||
memory = var.memory
|
||||
vcpu = var.vcpu
|
||||
machine = "q35"
|
||||
|
||||
# The chipset q35, which does not support the IDE bus, does not work with the terraform-provider-libvirt cloud-init implementation,
|
||||
# which creates an ISO attached to an IDE bus by default. Workaround is implemented
|
||||
# https://github.com/dmacvicar/terraform-provider-libvirt/issues/1137#issuecomment-2592329846
|
||||
# A cleaner solution might be the following :
|
||||
# https://github.com/dmacvicar/terraform-provider-libvirt/pull/895#issuecomment-1911167872
|
||||
|
||||
xml {
|
||||
xslt = file("${path.module}/q35-workaround.xslt")
|
||||
}
|
||||
|
||||
# Only include cloudinit if enabled
|
||||
cloudinit = var.enable_cloudinit ? libvirt_cloudinit_disk.commoninit[count.index].id : null
|
||||
|
||||
Reference in New Issue
Block a user