number of cores

master
fanta 2 weeks ago
parent 0486935498
commit c9c174f014

@ -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 {

Loading…
Cancel
Save