From 3414f063a12f0a8c8e1d7d4ab6333484cc7166cf Mon Sep 17 00:00:00 2001 From: "ITmail.dk v/ Martin Andersen" Date: Sat, 10 Feb 2024 20:18:40 +0100 Subject: [PATCH] ADD Proxmox - Debian-Cloud-Image VM Template --- README.md | 0 enable-bluetooth.sh | 0 install-alacritty-debian.sh | 0 install-alacritty-themes-debian.sh | 0 install-discord.sh | 0 install-flatpak-and-hub.sh | 0 install-hugo-extended-debian.sh | 0 install-steam-debian.sh | 0 install-steam-flatpak.sh | 0 install-steamlink-flatpak.sh | 0 install-teamviewer-debian.sh | 0 install-vscode-debian.sh | 0 install-zsh-shell-debian.sh | 0 proxmox_debian-cloud-image-vm-template.sh | 26 +++++++++++++++++++++++ test_scripts/test.sh | 0 15 files changed, 26 insertions(+) mode change 100755 => 100644 README.md mode change 100755 => 100644 enable-bluetooth.sh mode change 100755 => 100644 install-alacritty-debian.sh mode change 100755 => 100644 install-alacritty-themes-debian.sh mode change 100755 => 100644 install-discord.sh mode change 100755 => 100644 install-flatpak-and-hub.sh mode change 100755 => 100644 install-hugo-extended-debian.sh mode change 100755 => 100644 install-steam-debian.sh mode change 100755 => 100644 install-steam-flatpak.sh mode change 100755 => 100644 install-steamlink-flatpak.sh mode change 100755 => 100644 install-teamviewer-debian.sh mode change 100755 => 100644 install-vscode-debian.sh mode change 100755 => 100644 install-zsh-shell-debian.sh create mode 100644 proxmox_debian-cloud-image-vm-template.sh mode change 100755 => 100644 test_scripts/test.sh diff --git a/README.md b/README.md old mode 100755 new mode 100644 diff --git a/enable-bluetooth.sh b/enable-bluetooth.sh old mode 100755 new mode 100644 diff --git a/install-alacritty-debian.sh b/install-alacritty-debian.sh old mode 100755 new mode 100644 diff --git a/install-alacritty-themes-debian.sh b/install-alacritty-themes-debian.sh old mode 100755 new mode 100644 diff --git a/install-discord.sh b/install-discord.sh old mode 100755 new mode 100644 diff --git a/install-flatpak-and-hub.sh b/install-flatpak-and-hub.sh old mode 100755 new mode 100644 diff --git a/install-hugo-extended-debian.sh b/install-hugo-extended-debian.sh old mode 100755 new mode 100644 diff --git a/install-steam-debian.sh b/install-steam-debian.sh old mode 100755 new mode 100644 diff --git a/install-steam-flatpak.sh b/install-steam-flatpak.sh old mode 100755 new mode 100644 diff --git a/install-steamlink-flatpak.sh b/install-steamlink-flatpak.sh old mode 100755 new mode 100644 diff --git a/install-teamviewer-debian.sh b/install-teamviewer-debian.sh old mode 100755 new mode 100644 diff --git a/install-vscode-debian.sh b/install-vscode-debian.sh old mode 100755 new mode 100644 diff --git a/install-zsh-shell-debian.sh b/install-zsh-shell-debian.sh old mode 100755 new mode 100644 diff --git a/proxmox_debian-cloud-image-vm-template.sh b/proxmox_debian-cloud-image-vm-template.sh new file mode 100644 index 0000000..51988c8 --- /dev/null +++ b/proxmox_debian-cloud-image-vm-template.sh @@ -0,0 +1,26 @@ +#!/bin/sh +#Proxmox - Debian-Cloud-Image VM Template +URLIMG="https://cloud.debian.org/images/cloud/bookworm/latest" +IMGFILENAME="debian-12-generic-amd64.qcow2" +VMID="9000" +VMNAME="Debian-12-Cloud-Image" +VMUSER="user" +VMPASSWORD="Code24" +VMSTORAGE="local-lvm" + +echo "Start of NEW VM Debian-Cloud-VM" +echo "Check if the config file is there and if it is, then we delete the machine and the config files and prepare to make >if [ -f /etc/pve/qemu-server/$VMID.conf ]; then + qm destroy $VMID +else + echo "The $VMID.conf file is not there, ok" +fi +echo "Switches to temporary folder" +cd /tmp + +if [ -f $IMGFILENAME ]; then + rm $IMGFILENAME +else + echo "The file is not there, prepare to download" +fi +wget $URLIMG/$IMGFILENAME && qm create $VMID --name $VMNAME --agent 1 --ostype l26 --cores 4 --sockets 1 --cpu x86-64-v2-A>cd /root +echo "THE NEW $VMNAME VM IS TEMPLATE DONE" \ No newline at end of file diff --git a/test_scripts/test.sh b/test_scripts/test.sh old mode 100755 new mode 100644