👍 What we like
- Apps and OS updates managed from the Home Assistant UI
- Snapshots and vzdump backups of the whole VM before a risky update
- The Proxmox server runs other services alongside Home Assistant
- Home Assistant backups restore on any other hardware
👎 What to watch
- USB passthrough blocks live migration to another node
- Secure Boot is on by default in the Proxmox UI and must be turned off
- Two identical sticks share a USB ID and need port-based passthrough
- Uses more RAM than an LXC container
📑 Contents ▾
- 01 VM or container: what you lose with Home Assistant Container
- 02 The VM settings and the reason for each
- 03 Step 1: download the official qcow2 image
- 04 Step 2: create the VM with UEFI and no Secure Boot
- 05 Step 3: import the disk and set it as the boot disk
- 06 Step 4: pass the Zigbee or Thread stick through by USB ID
- 07 Step 5: autostart and boot order
- 08 Backups: vzdump and Home Assistant, not one or the other
- 09 The community-scripts script: handy, but read it first
- Our picks
If you already run a Proxmox VE 8 or 9 server and want Home Assistant with its apps (formerly “add-ons”) and full backups, install Home Assistant OS (HAOS) in a virtual machine, not in an LXC container. You need the official KVM .qcow2 image, UEFI firmware (OVMF) with Secure Boot off, at least 2 vCPUs and 2 GB of RAM (4 GB if you plan to install several apps), and your Zigbee or Thread stick passed to the VM by its USB ID. Expect about ten minutes on the command line. The community script is faster, but read it before you run it.
The commands and values on this page come from the Home Assistant installation documentation, the Proxmox VE virtual machine documentation, and the vzdump documentation, all checked in November 2026. Selfhostr has not tested the USB sticks mentioned here.
VM or container: what you lose with Home Assistant Container
Home Assistant comes in several flavors. On Proxmox, an LXC container is tempting because it’s lightweight. The catch is that the “Container” install has no Supervisor:
- no apps: Zigbee2MQTT, Mosquitto, ESPHome, or the file server have to be installed separately, and you handle their updates yourself;
- less complete backups: with HAOS, a backup can include settings, history, the
sharefolder, and whichever apps you pick. It restores in one click on a fresh machine; - OS updates managed by Home Assistant: HAOS updates from the UI, and it can take an automatic backup right before.
HAOS is a complete operating system that boots on its own. It needs a real VM, and that’s exactly why Proxmox suits it well. If you’d rather use Docker and manage each service yourself, follow our Home Assistant Docker tutorial instead. If Proxmox isn’t installed yet, start with installing Proxmox on an N100 mini PC.
The VM settings and the reason for each
| Setting | Value | Source |
|---|---|---|
| Image | haos_ova-<version>.qcow2.xz (“KVM” variant) | home-assistant.io |
| Firmware | UEFI (OVMF), no Secure Boot | home-assistant.io (“requires UEFI to boot”, “non-secureboot” OVMF) |
| Minimum | 2 GB RAM, 2 vCPUs | home-assistant.io |
| EFI disk | efitype=4m, pre-enrolled-keys=0 | Proxmox VE (pre-enrolled-keys=1 turns Secure Boot on by default) |
| Autostart | onboot 1 | Proxmox VE |
A few details:
- q35 machine: the modern choice, with a virtual PCIe bus. The community script uses it too.
hostCPU: the VM sees your processor’s exact instruction set, which Proxmox says gives the best performance. The trade-off is that live migration to a host with a different CPU may fail. On a single server, that makes no difference.- RAM: 2 GB is enough for Home Assistant alone. Plan for 4 GB once you add Zigbee2MQTT, Mosquitto, ESPHome, or a database. That’s also the value in Home Assistant’s
virt-installexample and in the community script. You can raise it later. To size the host, see how much RAM for a Proxmox server. - Disk: the Home Assistant docs don’t give a minimum. The community script allocates 32 GB. How much you need depends mostly on how much history you keep and which apps you install.
- Guest agent: turn it on (
--agent enabled=1). Proxmox uses it to shut the VM down cleanly and to freeze the filesystem during backups. Several community guides say the HAOS KVM image already includes it. After the first boot, check that Proxmox shows the VM’s IP address on its Summary page.
Step 1: download the official qcow2 image
In the Proxmox host shell (as root), fetch the KVM image. Version 18.4 is the one Home Assistant listed at the time of writing. Use the latest version shown on the installation page or in the GitHub releases of the home-assistant/operating-system project.
cd /root
wget https://github.com/home-assistant/operating-system/releases/download/18.4/haos_ova-18.4.qcow2.xz
unxz haos_ova-18.4.qcow2.xz
Don’t use the “generic x86-64” image: it’s meant for installing directly on bare metal, not in a VM.
Step 2: create the VM with UEFI and no Secure Boot
This example uses VM ID 100 and the local-lvm storage, which is what a default Proxmox install on ext4 creates. On a ZFS install, it’s usually called local-zfs. Also adjust the network bridge name (vmbr0).
qm create 100 --name haos --machine q35 --bios ovmf \
--cores 2 --memory 4096 --cpu host --ostype l26 \
--net0 virtio,bridge=vmbr0 --scsihw virtio-scsi-single \
--agent enabled=1
qm set 100 --efidisk0 local-lvm:1,efitype=4m,pre-enrolled-keys=0
The step that trips people up most often is pre-enrolled-keys=0. In the web UI, the “Pre-Enroll keys” box is checked by default when you add an EFI disk. Leave it checked and Secure Boot is on, so HAOS won’t boot: the VM lands in the UEFI shell or shows an access denied error. If that happens, you don’t need to start over. Open the console and press Esc during boot to enter the OVMF menu. Turn off Secure Boot under “Device Manager > Secure Boot Configuration”, then reboot.
Step 3: import the disk and set it as the boot disk
qm disk import (the old name qm importdisk still works as an alias) copies the image into storage. The disk shows up as “unused”:
qm disk import 100 /root/haos_ova-18.4.qcow2 local-lvm
The command ends with a line like unused0: successfully imported disk 'local-lvm:vm-100-disk-1'. Use that exact name. On local-lvm, it’s usually disk-1 because the EFI disk took disk-0:
qm set 100 --scsi0 local-lvm:vm-100-disk-1,discard=on,ssd=1
qm set 100 --boot order=scsi0
qm disk resize 100 scsi0 64G
discard=onlets thin storage (LVM-thin, ZFS) reclaim freed space.qm disk resizetakes an absolute size, here 64 GB. It must be larger than the disk’s current size, because Proxmox won’t shrink a disk. Check the size withqm config 100before you pick a value. HAOS grows its data partition at boot to use the added space.- Proxmox notes that you need an EFI disk for the boot order to be saved. That’s one more reason to create it before the import.
One-command alternative: qm set can import directly with the STORAGE:0,import-from= syntax, so you don’t have to guess the disk name:
qm set 100 --scsi0 local-lvm:0,import-from=/root/haos_ova-18.4.qcow2,discard=on,ssd=1
Start the VM (qm start 100) and open the console. After the first boot, the web UI answers at http://homeassistant.local:8123 or http://<VM-IP>:8123. Then delete the .qcow2 file from /root to free up space.
Step 4: pass the Zigbee or Thread stick through by USB ID
Plug the stick into the Proxmox host and find its vendor:product ID:
lsusb
The stick’s line looks like Bus 001 Device 004: ID xxxx:yyyy <vendor> .... Pass that ID to the VM:
qm set 100 --usb0 host=xxxx:yyyy
Why the ID rather than the port (host=1-2.3)? With a port, the assignment follows the physical socket. Plug the stick in elsewhere, whether another socket, an extension cable, or a hub, and the VM no longer finds it. With the ID, the stick follows the VM whichever socket it’s in.
There’s one common catch. Sticks of the same model, or built on the same USB-to-serial bridge, share the same ID. Home Assistant states that the Home Assistant Connect ZBT-2 can’t run Zigbee and Thread at the same time and recommends one adapter per protocol. With two ZBT-2s, the ID alone can’t tell them apart. In that case, pass each stick by port, or declare them under Proxmox “Resource Mappings” (Datacenter > Resource Mappings), which also covers clusters.
What else USB passthrough means:
- Proxmox says it plainly: a VM using a host USB device can’t be live-migrated to another node.
- In Home Assistant, pick the stick by its
/dev/serial/by-id/...path in ZHA or Zigbee2MQTT, not by/dev/ttyUSB0or/dev/ttyACM0, whose number can change. The rest of the setup is in our Zigbee2MQTT tutorial. - USB 3 ports and some mini PCs emit noise in the 2.4 GHz band. A short USB extension cable that moves the stick away from the case is the usual precaution, whether you use a ZBT-2 or a Sonoff Zigbee 3.0 USB Dongle Plus-E.
- If you haven’t picked a stick yet, read our Zigbee and Thread dongle comparison.
Step 5: autostart and boot order
qm set 100 --onboot 1 --startup order=2,up=30
onboot 1 restarts the VM when the host boots, after a power outage for example. order sets the startup priority (shutdown happens in reverse order), and up is the delay before the next VM starts. Put Home Assistant after the services it depends on if they run in other VMs or containers, such as an MQTT broker or an external database. At shutdown, Proxmox waits 180 seconds by default before forcing the VM off. If the VM is managed by Proxmox high availability (an HA cluster), it doesn’t follow these options for now.
Backups: vzdump and Home Assistant, not one or the other
The two mechanisms complement each other.
vzdump (Proxmox) backs up the whole VM: disk, EFI disk, and configuration, USB passthrough included. In snapshot mode, the VM keeps running. If the guest agent is active, Proxmox freezes the filesystem during the copy for better consistency:
vzdump 100 --mode snapshot --storage <storage-id> --compress zstd
In practice, schedule a job under Datacenter > Backup instead. To restore, use qmrestore <file> <vmid> or the web UI. It’s the fastest way to roll back on the same server after a bad update. With Proxmox Backup Server, backups become incremental and a restore can even start the VM before the copy finishes (--live-restore).
Home Assistant backups don’t depend on the hypervisor. A backup restores right from the welcome screen of a fresh install (“Upload backup”), on another VM, a mini PC, or an official device. What to know:
- they’re encrypted by default, and the key is in the emergency kit. Without it, the backup is useless. Keep the kit outside Home Assistant;
- you choose the contents: settings (the bare minimum), history, the
sharefolder, and all apps, none, or a selection; - you can schedule them daily or on chosen days, with retention set as a number of copies;
- by default, backups stay inside the VM. A vzdump backup includes them, but if the Proxmox server dies, everything goes with it. Add a network share with the “Backup” usage (Settings > System > Storage), or Home Assistant Cloud, which accepts one backup of up to 5 GB and keeps only the latest.
The community-scripts script: handy, but read it first
The community-scripts project, which carries on tteck’s scripts “in memory of tteck,” offers a haos-vm script to run in the Proxmox shell. It downloads the .qcow2.xz image from Home Assistant’s official GitHub releases and creates a q35 OVMF VM with 2 cores, 4 GB of RAM, and a 32 GB disk on a VirtIO SCSI controller with discard and ssd.
This script runs as root on your hypervisor. Before running it, open vm/haos-vm.sh in the community-scripts/ProxmoxVE GitHub repository and check which URLs it downloads and which qm commands it runs. Never paste a bash -c "$(curl ...)" command found anywhere other than the project’s site. And don’t count on it for USB passthrough or backups: you still configure those as described above. If you know what each command in steps 2 and 3 does, you’ll understand what the script does too.
Key facts
Our picks
Affiliate links · same price for youHome Assistant Connect ZBT-2
Amazon Black Friday Week runs through November 30
Amazon · price and availability on the listing
Sonoff Zigbee 3.0 USB Dongle Plus-E (ZBDongle-E)
Amazon Black Friday Week runs through November 30
Amazon · price and availability on the listing
See all our recommended gear in the shop.