Use cpu cores instead of sockets for kvm guests

This commit is contained in:
Timo Makinen 2020-08-26 20:20:04 +03:00
parent 6bf4815503
commit 54b5a74f54

View file

@ -65,8 +65,9 @@
--name {{ inventory_hostname }} \
--graphics none --boot useserial=on --noautoconsole \
--serial pty,log.file={{ console_log }} \
--controller usb,model=none --sound none --memory {{ mem_size }} \
--vcpus {{ num_cpus }} --cpu host-passthrough \
--controller usb,model=none --sound none \
--vcpus "sockets=1,cores={{ num_cpus }},threads=1,placement=auto" \
--memory {{ mem_size }} --cpu host-passthrough \
--disk /srv/libvirt/ssd/{{ inventory_hostname }}.a.img,cache=none,format=raw,bus=virtio,size={{ dsk_size }} \
{{ extra_disks }} --initrd-inject {{ tmpdir.path }}/include.ks \
{{ virt_install_network }} \