Configure VM provisioning with ZFS mirror disks and virtual TPM 2.0 module

This commit is contained in:
2026-06-22 13:19:01 -04:00
parent 70c71161f3
commit 68d1d0ee7c
7 changed files with 101 additions and 16 deletions
+7 -3
View File
@@ -38,10 +38,14 @@ if ! command -v proxmox-auto-install-assistant &>/dev/null; then
echo " -> Installing proxmox-auto-install-assistant from Proxmox repos..."
# Add Proxmox repository for the assistant tool
if [ ! -f /etc/apt/sources.list.d/proxmox.list ]; then
echo "deb [arch=amd64] http://download.proxmox.com/debian/pve trixie pve-no-subscription" \
CODENAME=$(grep VERSION_CODENAME /etc/os-release | cut -d= -f2 | tr -d '"')
if [ -z "$CODENAME" ]; then
CODENAME="bookworm"
fi
echo "deb [arch=amd64] http://download.proxmox.com/debian/pve $CODENAME pve-no-subscription" \
> /etc/apt/sources.list.d/proxmox.list
wget -qO /etc/apt/trusted.gpg.d/proxmox-release-trixie.gpg \
http://download.proxmox.com/debian/proxmox-release-trixie.gpg 2>/dev/null || true
wget -qO "/etc/apt/trusted.gpg.d/proxmox-release-$CODENAME.gpg" \
"http://download.proxmox.com/debian/proxmox-release-$CODENAME.gpg" 2>/dev/null || true
apt-get update -qq
fi
apt-get install -y -qq proxmox-auto-install-assistant 2>/dev/null || {