summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorPaulo Alcantara <paulo@paulo.ac>2018-05-21 16:07:54 -0300
committerPaulo Alcantara <paulo@paulo.ac>2018-05-21 16:07:54 -0300
commit7b9fe4b24a3ac98edda6fe98b0251596c7b76fce (patch)
tree47d9e4d867265e4e58b742c935c378ca4efb4f4a
parentaebe6e95560cd6fa66d29f10b61446bb88224842 (diff)
downloadvmhtool-7b9fe4b24a3ac98edda6fe98b0251596c7b76fce.tar.gz
vmhtool-7b9fe4b24a3ac98edda6fe98b0251596c7b76fce.tar.xz
vmhtool-7b9fe4b24a3ac98edda6fe98b0251596c7b76fce.zip
Increase number of vCPUs for all vms.
Signed-off-by: Paulo Alcantara <paulo@paulo.ac>
-rwxr-xr-xvmhelper4
1 files changed, 2 insertions, 2 deletions
diff --git a/vmhelper b/vmhelper
index a0d0857..2d1fab8 100755
--- a/vmhelper
+++ b/vmhelper
@@ -291,7 +291,7 @@ sub destroy_vm_net {
my %qemu_linux_opts = (
mach => "-machine q35",
- cpu => "-enable-kvm -cpu host",
+ cpu => "-enable-kvm -cpu host -smp sockets=1,cores=2,threads=2",
mem => "-m 2048",
bus => "-device qemu-xhci,id=xhci -device virtio-scsi-pci,id=scsi",
hdd => " -device scsi-hd,drive=hd -drive if=none,file=%s,cache=writeback,id=hd,format=raw,unit=0",
@@ -307,7 +307,7 @@ my %qemu_linux_opts = (
my %qemu_win_opts = (
mach => "-machine q35",
- cpu => "-enable-kvm -cpu host",
+ cpu => "-enable-kvm -cpu host -smp sockets=1,cores=2,threads=2",
mem => "-m 4096",
bus => "-device ich9-ahci,id=ahci -device virtio-scsi-pci,id=scsi -device qemu-xhci,id=xhci",
hdd => "-device scsi-hd,drive=hd,bootindex=0 -drive if=none,file=%s,cache=writeback,id=hd,format=raw,unit=0",