Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Proxmox 7.0-9 cant use the script. #119

Open
arierom70 opened this issue Jul 15, 2021 · 7 comments
Open

Proxmox 7.0-9 cant use the script. #119

arierom70 opened this issue Jul 15, 2021 · 7 comments

Comments

@arierom70
Copy link

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
Copy link

lygris commented Jul 15, 2021

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
Copy link

lygris commented Jul 15, 2021

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
Copy link

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
Copy link

lygris commented Jul 22, 2021

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
#113 (comment)

@mochman
Copy link

mochman commented Jul 24, 2021

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

@arierom70
Copy link
Author

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
Copy link

Tublick commented Sep 13, 2021

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

5 participants