Run Home Assistant OS as a VM on Proxmox VE
Nghia Phan
Table of Contents
This article adapts the process of creating a Home Assistant OS (HAOS) VM on Proxmox VE, downloading the latest qcow2 image from GitHub, and importing it into Proxmox storage. The CPU and memory values are starting points; adjust them for the actual integrations and add-ons in use.
Source reference: i12bretro – Running HAOS VM in Proxmox VE. The original video belongs to i12bretro on YouTube.
Quảng cáo
Create the HAOS VM on Proxmox
- Log into the Proxmox Web UI.
- Right-click the Proxmox node and select Create VM.
- Assign a unique VM ID and name; record the VM ID for the disk import step.
- On the OS tab, select Do not use any media, leaving Type as
Linuxand Version as5.x - 2.6 Kernel. - On the System tab, select BIOS
OVMF (UEFI), enable Add EFI Disk, and disable Pre-Enroll Keys. - On the Hard Disk tab, delete the default
scsi0disk. - On the CPU tab, assign at least
2cores and set Type tohost. - On the Memory tab, set memory to
2048MB or more as needed. - Keep the defaults on the Network tab, verify the summary, and click Finish.
Download and import the qcow2 image
- Select the Proxmox node and open Shell.
- Install the
xzextraction utility:
apt updateapt install xz-utils -y
- Resolve the latest HAOS release image through the GitHub API:
regex='"browser_download_url": "(https:\/\/github.com\/home-assistant\/operating-system\/releases\/download\/[^/]*\/haos_ova-[^/]*\.qcow2\.xz)"'response=$(curl -s https://api.github.com/repos/home-assistant/operating-system/releases/latest)[[ $response =~ $regex ]] && downloadURL="${BASH_REMATCH[1]}"
- Download the image to a temporary directory and extract it:
wget -O /tmp/HAOS.qcow2.xz $downloadURLunxz /tmp/HAOS.qcow2.xz -v
- Import the disk into the VM. Replace
104with the real VM ID andSSD_100GBwith a Proxmox storage name:
qm importdisk 104 /tmp/HAOS.qcow2 SSD_100GB
Attach the disk and boot HAOS
- Return to the Web UI, select the HAOS VM, and open Hardware.
- Double-click Unused Disk and click Add.
- Open Options.
- Double-click Boot Order, enable
scsi0, and move it abovenet0. - Click OK, then click Start.
- Open Console to confirm that HAOS has started.
Complete Home Assistant setup
- Open
http://DNSorIP:8123in a browser. - Create a Home Assistant Name, Username, and Password.
- Name the installation, for example
Home. - Click Detect to set the installation location.
- Verify the Unit System and Currency, then click Next.
- Select any anonymous data to share with the Home Assistant development team.
- Click Finish.
Note: Do not reuse the example VM ID or storage name unless they exist on the local system. Back up Proxmox and make sure the target storage has enough free space before importing the image.
Source and video
- Original tutorial: i12bretro 0877
- Original video: Running HAOS VM in Proxmox VE
- Home Assistant OS: GitHub – home-assistant/operating-system
Comments & Discussion
Share your thoughts, ask questions and feedback