20 lines
377 B
Bash
Executable File
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[@]}"
|