diff --git a/start_qemu/start.sh b/start_qemu/start.sh index aa050c2..7129bd8 100644 --- a/start_qemu/start.sh +++ b/start_qemu/start.sh @@ -2,6 +2,7 @@ hda="disco.qcow2" mem="8G" diskSize="40G" +nCores="4" pwd="$(pwd)";path=${BASH_SOURCE[0]} dir="$(echo "$pwd/$path"| rev | cut -d "/" -f2-100|rev)" cd $dir @@ -17,11 +18,11 @@ function createQcow2 { function checkQcow2 { if [ ! -f "$dir/$hda" ]; then createQcow2; fi } function bootCD { - qemu-system-x86_64 -enable-kvm -m $mem -cpu host -machine type=pc,accel=kvm -boot d -cdrom $iso -hda $hda + qemu-system-x86_64 -enable-kvm -m $mem -cpu host -smp $nCores -machine type=pc,accel=kvm -boot d -cdrom $iso -hda $hda } function bootHD { - qemu-system-x86_64 -enable-kvm -m $mem -cpu host -machine type=pc,accel=kvm -net nic,model=e1000 -hda $hda -net user + qemu-system-x86_64 -enable-kvm -m $mem -cpu host -smp $nCores -machine type=pc,accel=kvm -net nic,model=e1000 -hda $hda -net user } function showHelp {