Use cpu cores instead of sockets for kvm guests
This commit is contained in:
parent
6bf4815503
commit
54b5a74f54
1 changed files with 3 additions and 2 deletions
|
@ -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 }} \
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue