+vCPU count detection
This commit is contained in:
parent
3c882f8913
commit
bed32dcf23
1 changed files with 3 additions and 2 deletions
5
runme.sh
5
runme.sh
|
@ -3,10 +3,11 @@ appdir=$(cd `dirname $0` && pwd)
|
|||
apptmp='/tmp'
|
||||
vmsize='8G'
|
||||
vmmem='2G'
|
||||
k8sdsk="${apptmp}/k8s.raw"
|
||||
vcpu=`cat /proc/cpuinfo|grep proc|tail -1|awk '{print $NF}'`
|
||||
k8sdsk="${apptmp}/k8s-demo.raw"
|
||||
httpboot='http://ftp.debian.org/debian/dists/stretch/main/installer-amd64/current/images/netboot/debian-installer/amd64'
|
||||
seed='https://git.ix.gs/public/coins-demo/raw/branch/master/contrib/k8s-seed.txt'
|
||||
qemu="${appdir}/contrib/qemu-system-x86_64 -L ${appdir}/contrib/share/qemu -net nic -net user -m ${vmmem} -localtime -enable-kvm -cpu host,+nx -M pc -smp 2 -vga std -usbdevice tablet -k en-us -hda ${k8sdsk} -boot once=d -nographic"
|
||||
qemu="${appdir}/contrib/qemu-system-x86_64 -L ${appdir}/contrib/share/qemu -net nic -net user -m ${vmmem} -smp ${vcpu} -localtime -enable-kvm -cpu host,+nx -M pc -vga std -usbdevice tablet -k en-us -hda ${k8sdsk} -boot once=d -nographic"
|
||||
###
|
||||
installvm() {
|
||||
fallocate -l ${vmsize} ${k8sdsk}
|
||||
|
|
Loading…
Reference in a new issue