From f4e806079b5e6f4760cf04d8eb73b067e277b442 Mon Sep 17 00:00:00 2001 From: Erik Thiele Date: Wed, 1 Jul 2026 20:00:26 +0200 Subject: [PATCH] Fix: use filesystem path instead of volume path for pct create --- proxmox-setup.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/proxmox-setup.sh b/proxmox-setup.sh index 411c34b..c3027ed 100755 --- a/proxmox-setup.sh +++ b/proxmox-setup.sh @@ -19,7 +19,7 @@ ROOT_PASS="$(openssl rand -base64 24)" echo "=== Root-Passwort fuer Container: $ROOT_PASS ===" # Pruefen ob Template vorhanden, sonst downloaden -if ! pveam list local | grep -q "$TEMPLATE"; then +if [ ! -f "/var/lib/vz/template/cache/$TEMPLATE" ]; then echo "=== Lade Ubuntu-24.04-Template ... ===" pveam download local "$TEMPLATE" fi @@ -33,7 +33,7 @@ fi # Container erstellen echo "=== Erstelle Container $CT_ID ($CT_NAME) ... ===" -pct create "$CT_ID" "local:vztemplate/$TEMPLATE" \ +pct create "$CT_ID" "/var/lib/vz/template/cache/$TEMPLATE" \ --storage "$STORAGE" \ --net0 "name=eth0,bridge=$BRIDGE,ip=dhcp" \ --cores 1 \