host-passthrough cpu mode and scsi for the storage

This commit is contained in:
Lukas Greve
2025-09-07 20:10:00 +02:00
parent 778711fdfb
commit b1b7a6e311

View File

@@ -5,11 +5,12 @@ resource "libvirt_domain" "domain" {
vcpu = var.vcpu vcpu = var.vcpu
cloudinit = libvirt_cloudinit_disk.commoninit.id cloudinit = libvirt_cloudinit_disk.commoninit.id
cpu { cpu {
mode = "host-model" mode = "host-passthrough"
} }
disk { disk {
volume_id = element(libvirt_volume.vm_disk.*.id, count.index) volume_id = element(libvirt_volume.vm_disk.*.id, count.index)
scsi = "true"
} }
console { console {