From 2616b08ce2984d3f1e317cb28fcab039c6c5a8ec Mon Sep 17 00:00:00 2001 From: surtur Date: Fri, 14 May 2021 07:30:08 +0200 Subject: [PATCH] qemu: use cpu host passthrough --- vms/main.tf | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/vms/main.tf b/vms/main.tf index cccdfca..a88a56d 100644 --- a/vms/main.tf +++ b/vms/main.tf @@ -98,8 +98,11 @@ resource "libvirt_cloudinit_disk" "commoninit" { resource "libvirt_domain" "net-lab" { for_each = var.hosts name = each.value.name - vcpu = each.value.vcpu - memory = each.value.memory + cpu = { + mode = "host-passthrough" + } + vcpu = each.value.vcpu + memory = each.value.memory network_interface { network_name = var.networkname