mirror of
https://github.com/vdsm/virtual-dsm.git
synced 2025-02-24 05:20:02 +08:00
Arguments
This commit is contained in:
parent
e29ef6cc96
commit
698ab6fefa
@ -61,9 +61,13 @@ CPU_OPTS="-smp ${CPU_CORES},sockets=1,cores=${CPU_CORES},threads=1"
|
||||
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}"
|
||||
|
||||
SPLIT=$(echo "$ARGS" | sed "s| -|\n-|g")
|
||||
SPLIT=$(echo -e"${ARGS// -/\\n-}")
|
||||
readarray -t ARG <<<"$SPLIT"
|
||||
|
||||
for a in "${ARG[@]}"; do
|
||||
echo "> '$a'"
|
||||
done
|
||||
|
||||
set -m
|
||||
(
|
||||
qemu-system-x86_64 "${ARG[@]}" & echo $! > "${_QEMU_PID}"
|
||||
|
Loading…
x
Reference in New Issue
Block a user