Skip to content

Commit 9053af7

Browse files
committed
vPTX: Vagrant/libvirt changes needed to support release 24.1+
1 parent 2a7a7d4 commit 9053af7

File tree

1 file changed

+9
-11
lines changed

1 file changed

+9
-11
lines changed

netsim/templates/provider/libvirt/vptx-domain.j2

Lines changed: 9 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -12,14 +12,16 @@
1212
domain.driver = "kvm"
1313
domain.nic_model_type = "virtio"
1414
domain.graphics_type = "none"
15+
domain.video_type = "none"
1516
domain.nested = true
16-
domain.cpu_mode = "custom"
17-
domain.cpu_model = "qemu64"
18-
{% if 'amd' in defaults.processor %}
19-
domain.cpu_feature :name => 'svm', :policy => 'require'
20-
{% else %}
21-
domain.cpu_feature :name => 'vmx', :policy => 'require'
22-
{% endif %}
17+
18+
{#
19+
domain.loader = "/usr/share/OVMF/OVMF_CODE_4M.fd"
20+
domain.nvram = "/var/lib/libvirt/qemu/nvram/{{ name }}.fd"
21+
#}
22+
domain.machine_type = "q35"
23+
domain.cpu_mode = "host-passthrough"
24+
2325
domain.sysinfo = {
2426
"bios": {
2527
"vendor": "Bochs",
@@ -34,8 +36,4 @@
3436
"manufacturer": "Bochs"
3537
}
3638
}
37-
38-
{% if "amd" in defaults.processor|lower %}
39-
domain.cpu_mode = "custom"
40-
{% endif %}
4139
end

0 commit comments

Comments
 (0)