Running Home Assistant OS in a Virtual Machine on Synology
Run the full Home Assistant OS, Supervisor and add-ons included, in a Virtual Machine Manager VM on your Synology NAS: sizing, setup, USB passthrough, backups.
Updated
The Best Way to Run Home Assistant on a Synology
If your Synology is already the always-on heart of your homelab, it's the natural place to run Home Assistant too. You have three options — a Docker container, a community package, or a full virtual machine — and they are not equal. Running Home Assistant OS in a VM with Virtual Machine Manager is the one that gives you the complete product: the Supervisor, one-click add-ons, full backups, and painless updates, all isolated from DSM. This guide walks through why, and how to set it up properly.
Why a VM, Not the Docker Container?
Home Assistant in Docker ("Container" install) runs the core application and nothing else:
- No add-ons. The add-on store — Node-RED, Zigbee2MQTT, ESPHome, file editors, and dozens more — is part of Home Assistant OS and its Supervisor. In Docker, you install and wire up each of those yourself as separate containers.
- No Supervisor. OS updates, managed backups, and the system health tooling come with the OS install only.
- More manual networking. Discovery protocols and integrations that expect to find devices on your LAN are simpler when Home Assistant has its own proper IP address — which a VM gets by default.
The VM costs a little RAM and a slice of CPU. On any Plus-series Synology with memory to spare, that's a trade worth making every time. There's also a resilience bonus: the VM is portable. Its disk image can move to another host later in a way a hand-assembled container stack can't.
What You Need
- A Synology with Virtual Machine Manager support (the Plus series and up) and a Btrfs volume — VMM requires one for VM storage
- At least 2 GB of RAM you can dedicate (4 GB is comfortable), 2 virtual CPU cores, and 32 GB of disk for the VM
- The Home Assistant OS image for virtual machines (the
.qcow2.xzfile) from the official Home Assistant installation page - Optional but common: a USB Zigbee or Z-Wave stick to pass through to the VM
Setting Up the VM
- Install Virtual Machine Manager from Package Center and let it initialize its storage on your Btrfs volume.
- In VMM, go to Virtual Machine → Import and import the Home Assistant OS image you downloaded (decompress it first if your version of VMM asks for the raw
.qcow2). - Configure the VM before first boot:
- CPU: 2 cores
- Memory: 4 GB (2 GB minimum)
- Network: attach it to your LAN via the virtual switch in bridged mode so the VM gets its own IP address from your router, just like a physical machine
- Autostart: set the VM to start automatically — you want Home Assistant back on its own after a power outage or NAS reboot
- If you use a Zigbee/Z-Wave USB stick, plug it into the NAS and assign it to the VM under the VM's USB device settings.
- Start the VM. Home Assistant OS boots, and after a few minutes the interface answers at
http://<the-vm-ip>:8123— find the IP in your router's client list or in VMM's console, and consider reserving it in your router's DHCP so it never changes.
From there, setup is the standard Home Assistant onboarding: create your account, let discovery find what's already on your network, and restore a backup instead if you're migrating from another install — HAOS-to-HAOS restores are complete, add-ons and all.
Living With It: The Practical Details
- Snapshots are your safety net. Take a VMM snapshot before big Home Assistant upgrades. Between VMM snapshots and Home Assistant's own backup system, you have two independent ways back from a bad day.
- Performance is a non-issue. Home Assistant is light. The one exception is a NAS that's already swapping — give the VM its RAM properly and don't starve DSM in the process. Faster volume storage (or an SSD cache in front of it) makes VM boots and updates noticeably quicker.
- Keep DSM and the VM on speaking terms. The VM survives DSM updates and reboots gracefully if autostart is on. After a DSM major upgrade, open VMM once and confirm the VM came back — it's a thirty-second check that saves a dark house.
- Back up the VM itself. Home Assistant's internal backups cover your configuration; a periodic VMM export of the whole VM covers everything else. Store at least one copy off the NAS.
When Docker Is Still Fine
If your Synology is an entry-level model without VMM support, or RAM is genuinely scarce, the Docker install runs the same core Home Assistant and many people are happy with it — you'll just manage add-on equivalents yourself. The VM route is about getting the complete Home Assistant OS experience on hardware that's already running 24/7.
The Bottom Line
A Synology that's already awake all night might as well run your smart home. Home Assistant OS in a Virtual Machine Manager VM gives you the full, supervised, add-on-complete product with its own IP, its own snapshots, and a clean exit path if you ever outgrow the NAS. It's the install method experienced users recommend for a reason — set it up once, and Home Assistant stops being a project and becomes infrastructure.