feat: Mimic host bios
This commit is contained in:
parent
4e3a84a748
commit
1fc9244743
1 changed files with 3 additions and 0 deletions
|
@ -14,7 +14,10 @@ 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+=" -uuid $UUID"
|
[ -n "$UUID" ] && MAC_OPTS+=" -uuid $UUID"
|
||||||
|
[ -s "$SM_BIOS" ] && MAC_OPTS+=" -smbios file=$SM_BIOS"
|
||||||
|
|
||||||
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