qemu: use cpu host passthrough
This commit is contained in:
parent
f1df309923
commit
2616b08ce2
@ -98,8 +98,11 @@ 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
|
||||||
vcpu = each.value.vcpu
|
cpu = {
|
||||||
memory = each.value.memory
|
mode = "host-passthrough"
|
||||||
|
}
|
||||||
|
vcpu = each.value.vcpu
|
||||||
|
memory = each.value.memory
|
||||||
|
|
||||||
network_interface {
|
network_interface {
|
||||||
network_name = var.networkname
|
network_name = var.networkname
|
||||||
|
Loading…
Reference in New Issue
Block a user