VMs/android-x86/run.sh
2024-02-29 16:21:40 +01:00

20 lines
377 B
Bash
Executable File

#!/bin/bash -e
cd "$(dirname "$0")"
. ../lib.sh
if ! [ -f hda.qcow2 ]; then
ask_yn "hda.qcow2 not found, create?" \
&& bash ./create.sh \
|| exit 1
fi
CMD=(
"${CMD[@]}"
-nic user,model=virtio-net-pci
-vga std
# USB passthrough, might need root privileges
#-device usb-host,vendorid=0xffff,productid=0xffff
)
"${CMD[@]}"