qemu: use cpu host passthrough

This commit is contained in:
surtur 2021-05-14 07:30:08 +02:00
parent f1df309923
commit 2616b08ce2
Signed by: wanderer
GPG Key ID: 19CE1EC1D9E0486D

@ -98,6 +98,9 @@ resource "libvirt_cloudinit_disk" "commoninit" {
resource "libvirt_domain" "net-lab" { resource "libvirt_domain" "net-lab" {
for_each = var.hosts for_each = var.hosts
name = each.value.name name = each.value.name
cpu = {
mode = "host-passthrough"
}
vcpu = each.value.vcpu vcpu = each.value.vcpu
memory = each.value.memory memory = each.value.memory