» Home » technology » homelab » Home Assistant Virtual Machine setup on Proxmox

Home Assistant Virtual Machine setup on Proxmox

https://www.home-assistant.io

I’m assuming you have installed Proxmox on your device.

Go to https://www.home-assistant.io/installation/alternative/ and right-click on download link for KVM/Proxmox and select Copy Link Address, then go to the Shell for your Hypervisor machine type wget and paste as plain text the link you copied and hit Enter, this will download the install KVM file to your Proxmox server.
The type unxz and the filename of the file than got downloaded, in my case it was haos_ova-16.3.qcow2.xz so unxz haos_ova-16.3.qcow2.xz which will uncompress the file.

Create the VM in Proxmox

  • General Tab
    • Remember your VM ID (usually 100 if it is your first VM) and type in your VM Name, I recommend HAOS
    • Click Next
  • OS Tab
    • Select Do not use any media
    • Click Next
  • System Tab
    • Change Machine to q35
    • Change BIOS to OVMF (UEFI)
    • Select the EFI Storage and shoose your local storage, typically local-lvm
    • Uncheck Pre-Enroll keys
    • Click Next
  • Disks Tab
    • In the left-hand menu next to scsi0, click the bin icon to delete the disks
    • Click Next
  • CPU Tab
    • Set a minimum of 2 cores
    • Click Next
  • Memory Tab
    • Set minimum 4096 MB
    • Click Next
  • Network Tab
    • Leave default unless you have special requirements (static, VLAN, etc)
    • Click Next
  • Confirm Tab
    • Do not check Start after created
    • Click Finish

Add the image to the VM

In your node’s shell, type in qm importdisk 100 haos_ova-16.3.qcow2 local-lvm to import the image from the host to the VM
Where 100 is the VM ID and haos_ova-16.3.qcow2 in my case is the file that got extracted from haos_ova-16.3.qcow2.xz and finally local-lvm is the EFI location

qm importdisk <VM ID> </path/to/file.qcow2> <EFI location>

You can now select your 100 HAOS VM, go to the Hardware tab, select the Unused Disk and click Edit, then if you are using an SSD check the Discard box and click Add
Next select the Options tab, then Boot Order and Edit, check the newly created drive (likely scsi0) and uncheck everything else, then select Start at boot, Edit and check the box

Finishing Up

Go to Console under your HAOS VM and click Start Now, if it booted up correctly, you should be greeted with the link to access the Web UI
In your web browser open http://homeassistant.local:8123, it will take some time the first time to setup HA

Now you can continue setting up HA

Leave a Reply

This site uses Akismet to reduce spam. Learn how your comment data is processed.