From 630e67bce33687120e2a7cbf282a03b6ab9efd03 Mon Sep 17 00:00:00 2001 From: wdog Date: Thu, 4 May 2023 10:51:18 +0200 Subject: [PATCH] add debian 12 --- kvm-install-vm | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) diff --git a/kvm-install-vm b/kvm-install-vm index 2504b89..d65a16b 100755 --- a/kvm-install-vm +++ b/kvm-install-vm @@ -77,6 +77,7 @@ function usage_subcommand () printf " centos6 CentOS 6 centos\n" printf " debian9 Debian 9 (Stretch) debian\n" printf " debian10 Debian 10 (Buster) debian\n" + printf " debian12 Debian 12 (Bookworm) debian\n" printf " fedora29 Fedora 29 fedora\n" printf " fedora29-atomic Fedora 29 Atomic Host fedora\n" printf " fedora30 Fedora 30 fedora\n" @@ -360,6 +361,14 @@ function fetch_images () DISK_FORMAT=qcow2 LOGIN_USER=debian ;; + debian12) + QCOW=debian-12-genericcloud-amd64-daily.qcow2 + OS_TYPE="linux" + OS_VARIANT="debian11" + IMAGE_URL=https://cloud.debian.org/images/cloud/bookworm/daily/latest + DISK_FORMAT=qcow2 + LOGIN_USER=debian + ;; fedora29) QCOW=Fedora-Cloud-Base-29-1.2.x86_64.qcow2 OS_TYPE="linux" @@ -680,7 +689,7 @@ _EOF_ # See https://bugzilla.redhat.com/show_bug.cgi?id=1472039 # Ubuntu will automatically grow the partition to the new size on its first boot case "$DISTRO" in - ubuntu*|amazon2) + ubuntu*|amazon2|debian12) qemu-img resize $DISK $DISK_SIZE &>> ${VMNAME}.log \ && ok \ || die "Could not resize disk."