How to Install Home Assistant on a Mini PC (Proxmox or Docker)

Home Assistant is a free, open-source smart home controller. It connects lights, plugs, sensors, cameras, and thermostats from many different brands into one dashboard, and it runs on your own hardware, so your automations keep working even when a company’s cloud service goes down. A small mini PC is a very good home for it.

The hard part for beginners isn’t Home Assistant itself. It’s the installation, because there are several ways to install it and the differences aren’t obvious. This guide explains the main options in plain language, then walks you through the two that make sense on a mini PC: a Home Assistant OS virtual machine on Proxmox, and a Docker container on Linux.

Choose your install method first

Home Assistant can be installed in several ways. The one you pick decides whether you get add-ons, which are one-click extras like file editors, backup tools, and database servers.

MethodWhat it isAdd-onsBest for
Home Assistant OSA complete ready-made system, usually run in a virtual machine on a mini PCYesMost beginners
ContainerHome Assistant running in Docker on your own Linux systemNoPeople who already run Docker and are happy managing extras themselves
Core and SupervisedAdvanced methods that you assemble and maintain yourselfVariesExperienced users only

Home Assistant’s own installation page is the final word on what is supported, and its recommendations change over time, so check it before you start. For most beginners, Home Assistant OS in a virtual machine is the simplest path, because updates, backups, and add-ons are built in. If you only want the core app and you already run other containers, the Docker method is lighter.

What you need

  • A mini PC that stays on. Home Assistant needs very little power, but it runs all day.
  • A wired Ethernet connection. Wi-Fi works poorly for a hub that talks to many devices.
  • For the virtual machine method, Proxmox VE on the mini PC. If you haven’t picked a platform yet, our Proxmox vs Ubuntu Server comparison explains the trade-offs.
  • For the container method, a Linux machine with Docker. Our Docker Compose tutorial for beginners covers the basics.

How much hardware does it need?

A Proxmox community guide published in 2026 recommends giving the Home Assistant virtual machine 2 CPU cores, 4 to 6 GB of RAM, and at least 32 GB of disk space, with 50 GB or more for comfort. A mini PC with 8 to 16 GB of RAM handles that easily and still has room for other services.

Method 1: Home Assistant OS in a Proxmox virtual machine

This method gives you the full Home Assistant experience. You create a virtual machine, load the official Home Assistant OS disk image into it, and start it up.

Step 1: Download the disk image

On Home Assistant’s installation page, find the Home Assistant OS images and download the one for virtual machines using KVM or Proxmox (a .qcow2 file) for the x86-64 platform. It’s usually compressed, so you extract it before use. Always download from the official site, and note the exact file name.

Step 2: Create an empty virtual machine

In the Proxmox web interface, click Create VM and use settings like these:

  • OS: choose “Do not use any media.”
  • System: set the BIOS to OVMF (UEFI), add an EFI disk, and untick “Pre-Enroll keys.”
  • Disks: delete the default disk, since you’ll import the Home Assistant one instead.
  • CPU: 2 cores, with the type set to Host.
  • Memory: 4096 MB or more.
  • Network: the default bridge, so the VM gets an address on your home network.

Step 3: Import the disk

Copy the extracted image to the Proxmox host, then open the Proxmox shell and run the import command. Replace the numbers and names with your own:

qm importdisk 100 /path/to/haos_ova.qcow2 local-lvm

Here 100 is your VM’s ID, the path points to the extracted file, and local-lvm is your storage name. Check the file path carefully before you run it, because guides often use different folders.

In the VM’s Hardware tab, find the “Unused Disk,” edit it, and add it. Enable Discard if the VM sits on an SSD. Then open Options, then Boot Order, and make sure only the imported disk is ticked.

Step 4: Start it and open Home Assistant

Start the VM and give it a few minutes on first boot. Open the VM’s Console tab to see its IP address. Then, in a browser on another device, go to http://YOUR-HA-IP:8123. Newer versions may use a different default port, so use the address the console shows. Use http, not https.

A shortcut, with a warning

Community helper scripts can create the whole virtual machine for you with a single command. They save time, but they run code that someone else wrote on the machine that controls everything else, so read a script before you run it, and use it only from a source you trust. Doing the steps by hand once is a good way to understand what the script does.

Method 2: Home Assistant in a Docker container

If you already run Ubuntu Server with Docker, you can run Home Assistant as one more container. Remember that this method doesn’t include add-ons.

sudo mkdir -p /srv/docker/homeassistant
sudo chown -R $USER:$USER /srv/docker
cd /srv/docker/homeassistant
nano compose.yaml

This follows the example in Home Assistant’s documentation. Check the current version of that page before you copy it:

services:
  homeassistant:
    container_name: homeassistant
    image: ghcr.io/home-assistant/home-assistant:stable
    volumes:
      - ./config:/config
      - /etc/localtime:/etc/localtime:ro
    restart: unless-stopped
    privileged: true
    network_mode: host

Two lines deserve an explanation. network_mode: host lets the container see your home network directly, which Home Assistant needs to discover devices. privileged: true gives the container wide access to the machine, so only use it on a machine you trust and keep Home Assistant off the public internet.

Start it and open the web page:

docker compose up -d

Then go to http://YOUR-SERVER-IP:8123.

First-time setup

  1. Click the button to create your smart home.
  2. Create an owner account with a strong, unique password.
  3. Set your home location and time zone, which Home Assistant uses for sunrise and sunset automations.
  4. Choose your privacy options, then finish.

Home Assistant then scans your network and offers to add the devices it finds. Add a few, put them on your dashboard, and build one simple automation, like turning a light on at sunset, before you add more.

Give it a stable address

Your phone and dashboards need to find Home Assistant every time, so reserve its IP address in your router. Our guide to home network basics for homelab beginners explains how.

Keep it private and safe

It’s common to want your dashboard on your phone while you’re away. Don’t forward a port on your router for this, because Home Assistant controls real things in your home, like locks and cameras. A private network is far safer, and our Tailscale remote access guide shows how to set one up. Also turn on two-step verification for your Home Assistant account, and keep the system updated.

Back up before you automate everything

Your automations and device setup take hours to build and seconds to lose. Home Assistant OS includes its own backup feature, and Proxmox can also snapshot the whole virtual machine before a risky update. Store copies somewhere off the mini PC, and follow the plan in our homelab backup strategy for beginners. If you use the Docker method, back up the config folder.

Troubleshooting common problems

The virtual machine won’t boot

Check that the BIOS is set to OVMF (UEFI), that “Pre-Enroll keys” is unticked, and that the imported disk is the only item in the boot order.

I can’t find the IP address

Open the VM’s Console tab in Proxmox, which shows the address once the system has started. You can also check the connected devices list on your router.

The web page won’t load

Wait a few minutes after the first boot, because the first start takes a while. Use http, check the port shown in the console, and make sure your computer is on the same network.

Devices aren’t discovered

Home Assistant must be on the same network as your devices. For a VM, use the bridged network setting. For a container, make sure you used host networking.

A USB Zigbee or Z-Wave stick isn’t detected

In a virtual machine, you must pass the USB device through to the VM in the hardware settings. In Docker, you must map the device into the container.

Frequently asked questions

Is Home Assistant free?

Yes. The software is free and open source. There is an optional paid cloud service for easy remote access, but you don’t need it.

Can I run Home Assistant on a mini PC with 8 GB of RAM?

Yes. Home Assistant itself needs only a few gigabytes, which leaves room for other services.

Should I use a virtual machine or Docker?

Use a virtual machine with Home Assistant OS if you want add-ons and the easiest updates. Use Docker if you already run containers and don’t need add-ons.

Do I need a Zigbee stick?

Only if you use Zigbee devices, such as many sensors and bulbs. Many Wi-Fi devices work without any extra hardware.

Wrapping up

To run Home Assistant on a mini PC, choose your install method first. Home Assistant OS in a Proxmox virtual machine is the easiest for most beginners, and the Docker container suits people who already run Docker. Give it a fixed address, keep it off the open internet, and back it up before you build lots of automations. Start with one or two devices and grow from there.

Sources