mirror of
https://github.com/vdsm/virtual-dsm.git
synced 2025-02-24 13:30:02 +08:00
DEF_OPTS
This commit is contained in:
parent
f1d3fd561b
commit
5ef4ea1ad3
@ -54,10 +54,10 @@ if [ -z "${KVM_OPTS}" ]; then
|
||||
[ "$DEBUG" != "Y" ] && exit 88
|
||||
fi
|
||||
|
||||
DEF_OPTS="-nographic -nodefaults"
|
||||
KVM_OPTS="-machine type=q35,usb=off${KVM_OPTS}"
|
||||
RAM_OPTS=$(echo "-m ${RAM_SIZE}" | sed 's/MB/M/g;s/GB/G/g;s/TB/T/g')
|
||||
CPU_OPTS="-smp ${CPU_CORES},sockets=1,cores=${CPU_CORES},threads=1"
|
||||
DEF_OPTS="-nographic -nodefaults -overcommit mem-lock=off"
|
||||
EXTRA_OPTS="-device virtio-balloon-pci,id=balloon0 -object rng-random,id=rng0,filename=/dev/urandom -device virtio-rng-pci,rng=rng0"
|
||||
ARGS="${DEF_OPTS} ${CPU_OPTS} ${RAM_OPTS} ${KVM_OPTS} ${MON_OPTS} ${SERIAL_OPTS} ${NET_OPTS} ${DISK_OPTS} ${EXTRA_OPTS}"
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user