18 lines
409 B
Bash
Executable File
18 lines
409 B
Bash
Executable File
#!/bin/bash -e
|
|
cd "$(dirname "$0")"
|
|
. ../lib.sh
|
|
|
|
hda='https://cloud.debian.org/images/cloud/bookworm/latest/debian-12-nocloud-amd64.qcow2'
|
|
|
|
if ! [ -f hda.qcow2 ]; then
|
|
ask_yn "hda does not exist. Download?" \
|
|
&& curl -LC- -o hda.qcow2 "$hda" \
|
|
|| exit 1
|
|
fi
|
|
|
|
echo "User: ${BOLD}${RED}root:${NORMAL}"
|
|
read -rp 'Continue? '
|
|
|
|
qemu "$@" \
|
|
#-device usb-host,vendorid=0xffff,productid=0xffff
|