whiskerz007 / proxmox_hassos_install

MIT License
887 stars 192 forks source link

Proxmox 7.0-9 cant use the script. #119

Open arierom70 opened 3 years ago

arierom70 commented 3 years ago

root@pve:~# wget https://github.com/whiskerz007/proxmox_hassos_install/raw/master/install.sh --2021-07-15 12:51:04-- https://github.com/whiskerz007/proxmox_hassos_install/raw/master/install.sh Resolving github.com (github.com)... 140.82.121.3 Connecting to github.com (github.com)|140.82.121.3|:443... connected. HTTP request sent, awaiting response... 302 Found Location: https://raw.githubusercontent.com/whiskerz007/proxmox_hassos_install/master/install.sh [following] --2021-07-15 12:51:05-- https://raw.githubusercontent.com/whiskerz007/proxmox_hassos_install/master/install.sh Resolving raw.githubusercontent.com (raw.githubusercontent.com)... 185.199.109.133, 185.199.111.133, 185.199.110.133, ... Connecting to raw.githubusercontent.com (raw.githubusercontent.com)|185.199.109.133|:443... connected. HTTP request sent, awaiting response... 200 OK Length: 5378 (5.3K) [text/plain] Saving to: ‘install.sh’

install.sh 100%[=====================================================================================>] 5.25K --.-KB/s in 0s

2021-07-15 12:51:05 (10.6 MB/s) - ‘install.sh’ saved [5378/5378]

root@pve:~# sed '/"gz") gunzip -f $FILE;;/a\ \ "zip") unzip -o $FILE;;' install.sh > temp.sh root@pve:~# mv temp.sh install.sh root@pve:~# chmod 755 install.sh root@pve:~# ./install.sh [INFO] Using 'local-lvm' for storage location. [INFO] Container ID is 100. Getting URL for latest Home Assistant disk image... Downloading disk image... Extracting disk image... Archive: haos_ova-6.1.vmdk.zip inflating: haos_ova-6.1.vmdk
Creating VM... [ERROR] 5@138 Unknown failure occured. root@pve:~#

lygris commented 3 years ago

I'm getting the same issue, though the error line says "[ERROR] 2@138 Unknown failure occured." not sure if the 2@138 instead of 5@138 is relevant or not.

lygris commented 3 years ago

Figured it out, on line #122 the script checks the storage type to see if it is local for some reason. I'm running NFS storage between 2 hosts which returns "nfs" instead of "dir" so the DISK_EXT never gets set. Work around is to comment out lines 122 and 126, example below Change this

if [ "$STORAGE_TYPE" = "dir" ]; then
  DISK_EXT=".qcow2"
  DISK_REF="$VMID/"
  IMPORT_OPT="-format qcow2"
fi

to this

#if [ "$STORAGE_TYPE" = "dir" ]; then
  DISK_EXT=".qcow2"
  DISK_REF="$VMID/"
  IMPORT_OPT="-format qcow2"
#fi
natmac21007 commented 3 years ago

I'm a noob to Github and Proxmox.

I had this error 0@116 Unable to handle file extension 'zip'. when I tried this script tonight:. I jumped on discord to see if I could find whiskerz007 and stumbled across a post from tteckster and tried his script and it worked.

https://github.com/tteck/proxmox_haos_vm

lygris commented 3 years ago

I'm a noob to Github and Proxmox.

I had this error 0@116 Unable to handle file extension 'zip'. when I tried this script tonight:. I jumped on discord to see if I could find whiskerz007 and stumbled across a post from tteckster and tried his script and it worked.

https://github.com/tteck/proxmox_haos_vm

The unzip part is a separate issue, here's the link to the fix https://github.com/whiskerz007/proxmox_hassos_install/issues/113#issuecomment-857586202

mochman commented 3 years ago

Looks like this issue already has a pull request with your fix. #117

arierom70 commented 3 years ago

Still not working:

Debian GNU/Linux comes with ABSOLUTELY NO WARRANTY, to the extent permitted by applicable law. Last login: Sun Aug 1 16:23:28 WEST 2021 on pts/0 root@pve:~# apt install unzip Reading package lists... Done Building dependency tree... Done Reading state information... Done unzip is already the newest version (6.0-26). 0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded. root@pve:~# sed '/"gz") gunzip -f $FILE;;/a\ \ "zip") unzip -o $FILE;;' install.sh > temp.sh root@pve:~# mv temp.sh install.sh root@pve:~# chmod 755 install.sh root@pve:~# ./install.sh [INFO] Using 'local-lvm' for storage location. [INFO] Container ID is 100. Getting URL for latest Home Assistant disk image... Downloading disk image... Extracting disk image... Archive: haos_ova-6.2.vmdk.zip inflating: haos_ova-6.2.vmdk
Creating VM... [ERROR] 5@139 Unknown failure occured.

Tublick commented 3 years ago

works for me with Proxmox 7.0-11 and HA 6.4

root@pve:~# wget https://github.com/whiskerz007/proxmox_hassos_install/raw/master/install.sh --2021-09-13 12:06:23-- https://github.com/whiskerz007/proxmox_hassos_install/raw/master/install.sh Resolving github.com (github.com)... 140.82.121.4 Connecting to github.com (github.com)|140.82.121.4|:443... connected. HTTP request sent, awaiting response... 302 Found Location: https://raw.githubusercontent.com/whiskerz007/proxmox_hassos_install/master/install.sh [following] --2021-09-13 12:06:23-- https://raw.githubusercontent.com/whiskerz007/proxmox_hassos_install/master/install.sh Resolving raw.githubusercontent.com (raw.githubusercontent.com)... 185.199.110.133, 185.199.108.133, 185.199.111.133, ... Connecting to raw.githubusercontent.com (raw.githubusercontent.com)|185.199.110.133|:443... connected. HTTP request sent, awaiting response... 200 OK Length: 5378 (5.3K) [text/plain] Saving to: ‘install.sh’

install.sh 100%[===========================================================================================================================================>] 5.25K --.-KB/s in 0.001s

2021-09-13 12:06:24 (7.71 MB/s) - ‘install.sh’ saved [5378/5378]

root@pve:~# sed '/"gz") gunzip -f $FILE;;/a\ \ "zip") unzip -o $FILE;;' install.sh > temp.sh root@pve:~# mv temp.sh install.sh root@pve:~# chmod 755 install.sh root@pve:~# ./install.sh [INFO] Using 'local-lvm' for storage location. [INFO] Container ID is 100. Getting URL for latest Home Assistant disk image... Downloading disk image... Extracting disk image... Archive: haos_ova-6.4.vmdk.zip inflating: haos_ova-6.4.vmdk
Creating VM... Adding serial port and configuring console... Installing 'kpartx'... [INFO] Completed Successfully! New VM ID is 100.