example how to add bullseye
authorDobrica Pavlinusic <dpavlin@rot13.org>
Wed, 13 Oct 2021 09:45:44 +0000 (11:45 +0200)
committerDobrica Pavlinusic <dpavlin@rot13.org>
Wed, 13 Oct 2021 09:45:44 +0000 (11:45 +0200)
gnt-instance-add-bullseye.sh [new file with mode: 0755]

diff --git a/gnt-instance-add-bullseye.sh b/gnt-instance-add-bullseye.sh
new file mode 100755 (executable)
index 0000000..2625b50
--- /dev/null
@@ -0,0 +1,12 @@
+#!/bin/sh -xe
+mem=2G
+disk=10G
+cpu=2
+instance=$1
+
+test -z "$instance" && echo "Usage: $0 instance-name" && exit 1
+
+gnt-instance add -B maxmem=$mem,vcpus=$cpu -t drbd -n r1u32:r1u28 -o debootstrap+bullseye -s $disk --no-name-check --no-ip-check --no-start $instance
+gnt-instance modify -H initrd_path=,kernel_path= $instance
+gnt-instance start $instance
+