fix: Increase number of USB ports (#228)
This commit is contained in:
parent
29adf083b7
commit
8f70833e1f
1 changed files with 2 additions and 2 deletions
|
@ -3,7 +3,7 @@ set -Eeuo pipefail
|
||||||
|
|
||||||
: "${UUID:=""}"
|
: "${UUID:=""}"
|
||||||
: "${SERIAL:="mon:stdio"}"
|
: "${SERIAL:="mon:stdio"}"
|
||||||
: "${USB:="qemu-xhci,id=xhci"}"
|
: "${USB:="qemu-xhci,id=xhci,p2=7,p3=7"}"
|
||||||
: "${MONITOR:="telnet:localhost:7100,server,nowait,nodelay"}"
|
: "${MONITOR:="telnet:localhost:7100,server,nowait,nodelay"}"
|
||||||
: "${SMP:="$CPU_CORES,sockets=1,dies=1,cores=$CPU_CORES,threads=1"}"
|
: "${SMP:="$CPU_CORES,sockets=1,dies=1,cores=$CPU_CORES,threads=1"}"
|
||||||
|
|
||||||
|
@ -14,7 +14,7 @@ RAM_OPTS=$(echo "-m ${RAM_SIZE^^}" | sed 's/MB/M/g;s/GB/G/g;s/TB/T/g')
|
||||||
MON_OPTS="-monitor $MONITOR -name $PROCESS,process=$PROCESS,debug-threads=on"
|
MON_OPTS="-monitor $MONITOR -name $PROCESS,process=$PROCESS,debug-threads=on"
|
||||||
[ -n "$USB" ] && [[ "${USB,,}" != "no"* ]] && USB_OPTS="-device $USB -device usb-kbd -device usb-tablet"
|
[ -n "$USB" ] && [[ "${USB,,}" != "no"* ]] && USB_OPTS="-device $USB -device usb-kbd -device usb-tablet"
|
||||||
MAC_OPTS="-machine type=${MACHINE},secure=${SECURE},dump-guest-core=off${KVM_OPTS}"
|
MAC_OPTS="-machine type=${MACHINE},secure=${SECURE},dump-guest-core=off${KVM_OPTS}"
|
||||||
[ -n "$UUID" ] && MAC_OPTS="$MAC_OPTS -uuid $UUID"
|
[ -n "$UUID" ] && MAC_OPTS+=" -uuid $UUID"
|
||||||
DEV_OPTS="-object rng-random,id=objrng0,filename=/dev/urandom"
|
DEV_OPTS="-object rng-random,id=objrng0,filename=/dev/urandom"
|
||||||
DEV_OPTS+=" -device virtio-rng-pci,rng=objrng0,id=rng0,bus=pcie.0"
|
DEV_OPTS+=" -device virtio-rng-pci,rng=objrng0,id=rng0,bus=pcie.0"
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue