Add host-model to CPU config in VMs

This commit is contained in:
Joshua Boniface 2022-10-07 09:36:22 -04:00
parent 45c9909428
commit 71297e0179
1 changed files with 1 additions and 1 deletions

View File

@ -33,7 +33,7 @@ libvirt_header = """<domain type='kvm'>
<description>{vm_description}</description> <description>{vm_description}</description>
<memory unit='MiB'>{vm_memory}</memory> <memory unit='MiB'>{vm_memory}</memory>
<vcpu>{vm_vcpus}</vcpu> <vcpu>{vm_vcpus}</vcpu>
<cpu> <cpu mode='host-model'>
<topology sockets='1' cores='{vm_vcpus}' threads='1'/> <topology sockets='1' cores='{vm_vcpus}' threads='1'/>
</cpu> </cpu>
<os> <os>