Skip to content

Instantly share code, notes, and snippets.

@origox
Created February 19, 2023 18:45
Show Gist options
  • Save origox/3cfa04b89d4ea78d4c6989eeef42bb8c to your computer and use it in GitHub Desktop.
Save origox/3cfa04b89d4ea78d4c6989eeef42bb8c to your computer and use it in GitHub Desktop.
Create Home Assistant VM in Proxmox 7.X
# Install needed utilities
root@pve3:~# apt update; apt install xz-utils
# Download and unpack image
root@pve3:~# mkdir /var/lib/vz/template/qcow; cd /var/lib/vz/template/qcow; wget https://github.com/home-assistant/operating-system/releases/download/9.5/haos_ova-9.5.qcow2.xz -nH --cut-dirs=6 -r -P ./; unxz haos_ova-9.5.qcow2.xz
# Create VM in proxmox
root@pve3:~# qm create 200 --name home-assistant --memory 2048 --cores 2 --machine q35 --net0 virtio,bridge=vmbr0 --bios ovmf --efidisk0 local-lvm:0,pre-enrolled-keys=1,efitype=4m --boot order=scsi0 --scsihw virtio-scsi-pci --scsi0 local-lvm:0,import-from=/var/lib/vz/template/qcow/haos_ova-9.5.qcow2
# Todo
# add auto start at boot
# extend memory to 4G
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment