VMs/win2k22/run.sh
2024-02-28 12:09:58 +01:00

19 lines
364 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
# USB passthrough, might need root privileges
#-device usb-host,vendorid=0xffff,productid=0xffff
)
"${CMD[@]}"