From 2b543fbff6ae7367d6864805794c4c46e4a3e245 Mon Sep 17 00:00:00 2001 From: ange Date: Wed, 28 Feb 2024 12:10:23 +0100 Subject: [PATCH] feat: debian12 --- debian12/run.sh | 20 ++++++++++++++++++++ 1 file changed, 20 insertions(+) create mode 100755 debian12/run.sh diff --git a/debian12/run.sh b/debian12/run.sh new file mode 100755 index 0000000..6cbe965 --- /dev/null +++ b/debian12/run.sh @@ -0,0 +1,20 @@ +#!/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 + +CMD=( + "${CMD[@]}" + -nic user,model=virtio-net-pci + # USB passthrough, might need root privileges + #-device usb-host,vendorid=0xffff,productid=0xffff +) + +"${CMD[@]}"