Windows
On a Windows computer, Home Assistant runs in a virtual machine. Your computer keeps running Windows, and the Home Assistant Operating SystemHome Assistant OS, the Home Assistant Operating System, is an embedded, minimalistic, operating system designed to run the Home Assistant ecosystem on single board computers (like the Raspberry Pi) or Virtual Machines. It includes Home Assistant Core, the Home Assistant Supervisor, and supports apps. Home Assistant Supervisor keeps it up to date, removing the need for you to manage an operating system. Home Assistant Operating System is the recommended installation type for most users. runs in a virtual machine next to it.
If you want to use the computer only for Home Assistant, install the Home Assistant Operating System directly on it instead. For the steps, refer to Generic x86-64.
Install Home Assistant Operating System
Prerequisites:
- A supported hypervisor on your Windows computer: VirtualBox, VMware Workstation, or Hyper-V.
Download the appropriate image
- VirtualBox (.vdi)
- VMware Workstation (.vmdk)
- Hyper-V (.vhdx)
After downloading the image, unzip the image before continuing.
Create and configure the virtual machine
When creating the virtual machine, assign memory and CPU resources based on your expected workload. You can increase these resources later if your workload grows.
The virtual machine needs at least the following resources:
- Memory: 2 GB of RAM
- Processors: 2 vCPUs
To create the virtual machine, follow the instructions for the hypervisor you use:
Create the virtual machine
The following steps use VirtualBox Basic Mode, which provides a simplified wizard for creating and configuring a virtual machine.
- Open VirtualBox, and select New on the toolbar.
- In the Virtual machine name and operating system step, specify the following settings:
- Name: Enter Home Assistant.
- VM Folder: Select a location to store the virtual machine files.
- ISO Image: Leave blank.
- OS: Select Linux.
- OS Distribution: Select Oracle Linux (64-bit). If you use a Mac with Apple silicon (M1, M2, M3, or M4), also set OS Version to Oracle Linux (ARM 64-bit).
- Select Next.
- In the Specify virtual hardware step, specify the following settings:
- Base Memory: Set to at least 2048 MB, which is 2 GB.
- Number of CPUs: Set to at least 2.
- Use EFI: Select the checkbox to use UEFI instead of legacy BIOS. Home Assistant requires UEFI to boot.
- Select Next.
- In the Virtual hard disk step, select Do not add a virtual hard disk.
- Home Assistant uses the disk image you attach in the next section.
- If VirtualBox asks whether to continue without a hard disk, select Continue.
- In the Summary step, review the settings and select Finish.
Attach the Home Assistant disk (VDI)
Configure the virtual machine to use the Home Assistant disk (VDI) that you downloaded and extracted earlier.
- Select your new Home Assistant VM in the list, and then select Settings on the toolbar.
- Go to the Storage section.
- Next to Controller: SATA (or Controller: VirtioSCSI), select the Add hard disk icon (the blue disk with a plus sign).
- In the dialog that appears, select the Add button.
- Find and select the downloaded
.vdifile. - Select Choose to confirm the file.
Configure network
- While still in the Settings window, go to the Network section.
- In Attached to, change the setting to Bridged Adapter.
- In Name, select the network adapter you use for internet access. Home Assistant uses this adapter to communicate with other devices on your network. If your computer uses Wi-Fi, select your Wi-Fi adapter. If it uses a wired connection, select your Ethernet adapter.
- Select OK.
Enable automatic disk space reclamation (optional)
VBoxManage storageattach <VM name> --storagectl "SATA" --port 0 --device 0 --nonrotational on --discard on
Note: For Mac with Apple silicon, replace SATA with VirtioSCSI.
For more information about the command, see VBoxManage storageattach command.
- Start VMware Workstation and select Create a New Virtual Machine.
- Note: the exact name and location of the settings below depend on the VMware version. This procedure is based on version 17.
- Select I will install the operating system later, then select Linux > Other Linux 5.x kernel 64-bit.
- Give the VM a name,
home-assistant, and define an easy to reach storage location, such asC:\home-assistant. - Specify the disk size and select Store virtual disk as a single file.
- Select Customize Hardware.
- Define the amount of memory and the number of cores the VM is allowed to use.
- Remove the New CD/DVD entry. It will not be used.
- Connect an Ethernet cable and make sure it is connected to your network.
- Under Network adapter, select Bridged: Connected directly to the physical network.
- Make sure Replicate physical network connection state is not selected.
- Select Configure Adapters.
- Make sure all virtual adapters and Bluetooth devices are deselected.
- Select your host network adapter. Most likely, this is one of the first 2 checkboxes in the list:
- Select the one for Ethernet.
- The exact names of these adapters depend on your hardware.
- At the end of the wizard, select Finish.
Edit the VM settings
- In Windows Explorer, go to the storage location of your newly created VM, for example under
C:\home-assistant. - Delete the
home-assistant.vmdkfile. - In the
Downloadsfolder, find thehaos_ova-xx.x.vmdkfile. - If you haven’t unzipped the archive, unzip it. - Within the folder, find the.vmdkfile and rename it tohome-assistant.vmdk. - Paste the file (not the unzipped folder) into theC:\home-assistantfolder. - Locate the Advanced settings under the Options tab and change the Firmware type to UEFI.
- Now continue with the next step to start your VM.
- If you see a message about side channel mitigations, select OK.
- If you see a message stating that the
.vmdkfile could not be found, in step 13, you likely pasted the folder, not the file. Repeat step 13.
⚠️ Hyper-V does not have USB support.
- Create a new virtual machine.
- Select Generation 2.
- Under Connection, select an External virtual switch.
- If you don’t have one, create it in Hyper-V Manager under Virtual Switch Manager.
- Select Use an existing virtual hard disk and select the VHDX file from above.
After creation, go to Settings > Security and deselect Enable Secure Boot.
Start up your virtual machine
- Start the virtual machine.
- Result: The Home Assistant Operating System starts. This can take a few minutes.
- In the browser of your computer, go to homeassistant.local.
If you are running an older Windows version or have a stricter network configuration, you might need to access Home Assistant at homeassistant or http://X.X.X.X (replace X.X.X.X with your virtual machine’s IP address).
With the Home Assistant Operating System installed and accessible, you can continue with onboarding.