Configure VM provisioning with ZFS mirror disks and virtual TPM 2.0 module
This commit is contained in:
@@ -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 || {
|
||||
|
||||
Reference in New Issue
Block a user