From df0adfea52ed263aa5b99911448f845bd3ff220e Mon Sep 17 00:00:00 2001 From: hak8or Date: Wed, 15 Nov 2017 00:32:03 -0500 Subject: [PATCH] Added option + docs for using a new template for making a container --- deploy.sh | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/deploy.sh b/deploy.sh index 0cfa520..57fbdde 100644 --- a/deploy.sh +++ b/deploy.sh @@ -162,7 +162,11 @@ VMID=$(ssh root@$PROXMOX_IP_ADDR /usr/bin/env bash <<-'AcRP030CAlfad6' fi # Create a new container with the VMID - pct create $VMID /var/lib/vz/template/cache/archlinux-base_20170704-1_amd64.tar.gz -ssh-public-keys /tmp/id_rsa.pub -storage local-zfs -net0 name=eth0,bridge=vmbr0,ip=dhcp,ip6=dhcp -ostype archlinux > /dev/null + # Use Below to create a new container template. + # https://forum.proxmox.com/threads/customize-a-lxc-template.23461/ + TEMPLATE=archlinux-base_20170704-1_amd64.tar.gz + #TEMPLATE=archlinux_bootstrapped_11-14-2017.tar.gz + pct create $VMID /var/lib/vz/template/cache/$TEMPLATE -ssh-public-keys /tmp/id_rsa.pub -storage local-zfs -net0 name=eth0,bridge=vmbr0,ip=dhcp,ip6=dhcp -ostype archlinux > /dev/null # Start the container. pct start $VMID > /dev/null