Home Assistant: Install haos on Proxmox 8.1.x with ZFS setup
Introduction
In this tutorial, I will show you how to install Home Assistant on Proxmox 8.1.x using haos in a vm using ZFS storage.
There are already many good tutorials around, and you can even use some scripted installations, but I always prefer to understand what the scripts are doing and get my own way how to install things.
Let’s start…
Download latest haos vm image
In this tutorial, I’m trying to use the command line as much as I can, so you have to log in to the Proxmox console.
I prefer using an SSH connection.
|
|
Get the latest version of haos and download it.
|
|
Now we can extract the vm image and get some infos.
|
|
Installation
First we will create a new vm without any vdisk.
Because we are using UEFI (ovmf) bios, we need to create an empty vdisk and attach it to the vm as EFI disk.
To use the haos image, we are importing the extracted vdisk to the vm and attach it to the scsi controller of the vm.
To create a new vm, we need to define a new vmid first.
I’m using 206
as vmid.
|
|
Hints:
–name hass01 = vm name
–pool PROD = pve pool if you don’t use pools remove this option
–tags prod = pve tags
–net0 … = I’m using static mac-adresses, bridge vmbr00 and vlan 50
To attach the vdisks to the vm we need to get the name of the pve storage destination.
In my case I’m usingpve_vdisks
but on your setup it could be local or something different.
|
|
Now we can create a new vdisk for the UEFI bios.
Import the haos vdisk and attach both to the vm.
|
|
Let’s check if both vdisk are attached to the vm.
|
|
And if you are using ZFS we can see the two new datasets.
|
|
If everything good, then you can start the vm.
|
|
Now you should be able to browse in your web browser to http://VM-IP:8123 and see a fresh Home Assistant installation start page.
I hope I could help you to get your Home Assistant running. If you need help, don’t hesitate to leaf a comment below.
Happy hacking
References
- haos install script, github.com/tteck. Thank you for this great script.
- Install Home Assistant Operating System, home-assistant.io.
- Home Assistant - operating-system, github.com/home-assistant.
- pve-docs - qm(1), pve.proxmox.com.
- pve-docs - pvesm(1), pve.proxmox.com.