From 61ca1399d973c2e9a79dc905ba0772fe444c4fa0 Mon Sep 17 00:00:00 2001 From: Patricio Calderon Date: Mon, 21 Jun 2021 19:04:48 -0400 Subject: [PATCH 1/8] add zip new format hassos unzip --- install.sh | 1 + 1 file changed, 1 insertion(+) diff --git a/install.sh b/install.sh index 422e5b2..6ac3a9a 100644 --- a/install.sh +++ b/install.sh @@ -113,6 +113,7 @@ msg "Extracting disk image..." case $FILE in *"gz") gunzip -f $FILE;; *"xz") xz -d $FILE;; + *"zip) unzip $FILE;; *) die "Unable to handle file extension '${FILE##*.}'.";; esac From 3e363ad04e543c8140a8278f076cc1b7d38af8aa Mon Sep 17 00:00:00 2001 From: patriciocl Date: Mon, 21 Jun 2021 19:07:51 -0400 Subject: [PATCH 2/8] unzip quiet --- install.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/install.sh b/install.sh index 6ac3a9a..cc83967 100644 --- a/install.sh +++ b/install.sh @@ -113,7 +113,7 @@ msg "Extracting disk image..." case $FILE in *"gz") gunzip -f $FILE;; *"xz") xz -d $FILE;; - *"zip) unzip $FILE;; + *"zip) unzip -q $FILE;; *) die "Unable to handle file extension '${FILE##*.}'.";; esac From e6a79f67aaca6d9f0ff4fd2a980baea38169c818 Mon Sep 17 00:00:00 2001 From: patriciocl Date: Mon, 21 Jun 2021 19:08:50 -0400 Subject: [PATCH 3/8] " --- install.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/install.sh b/install.sh index cc83967..5e55767 100644 --- a/install.sh +++ b/install.sh @@ -113,7 +113,7 @@ msg "Extracting disk image..." case $FILE in *"gz") gunzip -f $FILE;; *"xz") xz -d $FILE;; - *"zip) unzip -q $FILE;; + *"zip") unzip -q $FILE;; *) die "Unable to handle file extension '${FILE##*.}'.";; esac From 68da81452a24c0eb0c9ee25a220489940b297cff Mon Sep 17 00:00:00 2001 From: patriciocl Date: Mon, 21 Jun 2021 20:00:53 -0400 Subject: [PATCH 4/8] add storage nfs --- install.sh | 15 ++++++++++----- 1 file changed, 10 insertions(+), 5 deletions(-) diff --git a/install.sh b/install.sh index 5e55767..01073c5 100644 --- a/install.sh +++ b/install.sh @@ -119,11 +119,16 @@ esac # Create variables for container disk STORAGE_TYPE=$(pvesm status -storage $STORAGE | awk 'NR>1 {print $2}') -if [ "$STORAGE_TYPE" = "dir" ]; then - DISK_EXT=".qcow2" - DISK_REF="$VMID/" - IMPORT_OPT="-format qcow2" -fi +msg "Extracting disk image..." +case $STORAGE_TYPE in + nfs|dir) + DISK_EXT=".qcow2" + DISK_REF="$VMID/" + IMPORT_OPT="-format qcow2" + ;; + *) echo "next" +;; +esac for i in {0,1}; do disk="DISK$i" eval DISK${i}=vm-${VMID}-disk-${i}${DISK_EXT:-} From 56985c803237f3565933e670e50b42387db7ca5f Mon Sep 17 00:00:00 2001 From: patriciocl Date: Sun, 12 Sep 2021 17:46:09 -0300 Subject: [PATCH 5/8] add unzip --- install.sh | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/install.sh b/install.sh index 01073c5..3e82468 100644 --- a/install.sh +++ b/install.sh @@ -1,5 +1,7 @@ #!/usr/bin/env bash + + # Setup script environment set -o errexit #Exit immediately if a pipeline returns a non-zero status set -o errtrace #Trap ERR from shell functions, command substitutions, and commands from subshell @@ -10,6 +12,15 @@ alias die='EXIT=$? LINE=$LINENO error_exit' trap die ERR trap cleanup EXIT +#remove susbcription +rm -rf /etc/apt/sources.list.d/pve-enterprise.list +#add pve-no +echo "deb http://download.proxmox.com/debian/pve bullseye pve-no-subscription" > /etc/apt/sources.list.d/pve-no-subscription.list +apt-get update +apt-get install -y zip unzip parted util-linux + + + function error_exit() { trap - ERR local DEFAULT='Unknown failure occured.' From fea163f5fa41bab9c7ea89024edfed8dd50fcba9 Mon Sep 17 00:00:00 2001 From: patriciocl Date: Sun, 12 Sep 2021 17:48:19 -0300 Subject: [PATCH 6/8] change url script --- README.md | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index b163902..9140a2f 100644 --- a/README.md +++ b/README.md @@ -1,9 +1,10 @@ # New Proxmox VM with Home Assistant - +# add zip support +forked from whiskerz007/proxmox_hassos_install This script will create a new Proxmox VM with the latest version of Home Assistant. To create a new VM, run the following in a SSH session or the console from Proxmox interface ``` -bash -c "$(wget -qLO - https://github.com/whiskerz007/proxmox_hassos_install/raw/master/install.sh)" +bash -c "$(wget -qLO - https://raw.githubusercontent.com/patriciocl/proxmox_hassos_install/master/install.sh)" ``` After script completes, click on the new VM (_the script will tell you the ID_), click on the `Hardware` tab for the VM and change the `Memory` and `Processors` settings to what you desire. The `Hard Disk` can be expanded by clicking on it, then click on the `Resize disk` button above (_Note: additional steps must be taken for storage to take effect in the VM after the first boot_). The network MAC address can be changed by selecting `Network Device` and clicking `Edit` above. Once all changes have been made, click `Start` above. From 475714aa20b848af8f9453ffb64d2ea4b4c0ab68 Mon Sep 17 00:00:00 2001 From: patriciocl Date: Sun, 12 Sep 2021 17:52:19 -0300 Subject: [PATCH 7/8] update changes --- README.md | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/README.md b/README.md index 9140a2f..eb1fed1 100644 --- a/README.md +++ b/README.md @@ -1,5 +1,11 @@ # New Proxmox VM with Home Assistant -# add zip support + + +# Support Promox 7 + +- remove susbcription and add non-susbcription +- add zip support + forked from whiskerz007/proxmox_hassos_install This script will create a new Proxmox VM with the latest version of Home Assistant. To create a new VM, run the following in a SSH session or the console from Proxmox interface From 3550dbaa87c07abb623bedfd1d001f6905b3482b Mon Sep 17 00:00:00 2001 From: patriciocl Date: Sun, 12 Sep 2021 17:55:15 -0300 Subject: [PATCH 8/8] update changes01 --- README.md | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/README.md b/README.md index eb1fed1..09a0af4 100644 --- a/README.md +++ b/README.md @@ -6,6 +6,10 @@ - remove susbcription and add non-susbcription - add zip support +# Telegram channel +- https://t.me/proxmoxha + + forked from whiskerz007/proxmox_hassos_install This script will create a new Proxmox VM with the latest version of Home Assistant. To create a new VM, run the following in a SSH session or the console from Proxmox interface