I’m going to install Home Assistant on Windows using VirtualBox . It may sound complicated, but it is not and I will show you everything step-by-step.

Home Assistant on Windows using VirtualBox Guide

I decided to move my Home Assistant installation from raspberry to a desktop PC to test is it going to be faster and more stable. It doesn’t matter If you are getting started with a fresh Home Assistant installation or just like me you want to migrate to a more powerful machine. This guide is tailored for you!

Home Assistant on Windows 10

I’m will use VirtualBox on Windows 10, but you can use Linux or MacOS as your VirtualBox host and all of the steps that you will see in this video will be pretty much the same.

So let’s go:

Download and install VirtualBox for your OS

Nothing fancy here, just go to VirtualBox website then download and install the package for your Operating System. In my case this is Winodws.

If you have any difficulties with this step check my video above for detailed instructions.

Download Home Assistant Image file

Open the following link https://www.home-assistant.io/hassio/installation/ and download the VDI file under virtual appliance bullet.

This is the virtual disk image that contains everything we need to start our Home Assistant on Windows.

Configure and install Home Assistant

Start the VirtualBox application that you downloaded earlier.

Clicking on the new button

Click on the new button.

After that type a name for you virtual machine and choose either Other Linux 32-bit or 64-bit depending of your system.

Choose Name and "Other Linux" here
Choose Name and “Other Linux” here

On the next dialog select the amount of RAM that you want to dedicate for this virtual machine. Absolute minimum should be 512MB.

Selecting the amount of RAM for the Home Assistant Virtual Machine
Selecting the amount of RAM for the Home Assistant on Windows Virtual Machine

The good think about this setting is that you can increase or decrease it at later stage if there is such need.

For the hard disk select the “Use an existing virtual hard disk file”.

On the next dialog click on the “Add” button

To add the VDI file just click Add.

At the end you should see something similar like the picture below.

Home Assistant Operating System image file added to VirtualBox
Home Assistant Operating System image file added to VirtualBox

Your final step here is to click the “Create” button.

Before you click “Start” button

Next we have to change some settings in VirtualBox to run our Home Assistant on Windows.

Click on the gear-wheel with the label “Settings” inside VirtualBox window.

In the “System” section under “Motherboard” tab click on “Enable EFI” option.

In the “System” section under “Motherboard” tab click on “Enable EFI” option.

Then click on the Network tab and change from Nat Network to Bridged Adapter – this will allow using your home network IP. 

Selecting Bridged Adapter
Selecting Bridged Adapter

Of course you can increase your virtual processors/cores if your host system allows that, but I don’t see point to put here more than 2 processor. You can find this section again in System -> Processors.

When you are ready with everything click “OK”

Now you can freely click “Start” button (BIG green arrow pointed at right) to start Home Assistant on Windows as a Virtual Machine.

Performing one of the most important task

Now it is time to perform one of the most important parts. Without doing it you are putting the whole installation at risk, so be very careful when you are executing this.

Just look below this text and smash the “Subscribe” button to get my free Getting Started Smart Home Guide and to receive my articles every week via email. Thank you. 🙏

Setting a static IP from Home Assistant (Optional Step)

This step is optional. It is recommended if you are using AdGuard. If you don’t know what AdGuard is – check my video article about it.

If you don’t have plans to install AdGuard you can skip this for now.

If everything is OK with the previous step after you start the virtual machine you should be greeted by a prompt.

Login as root (no password needed)

At the prompt “ha >” as instructed type:


From here you can use the nmcli configuration tool, just type the following to edit the connection:

nmcli con edit "HassOS default" 

Next will show you the ipv4 properties of this connection.

nmcli> print ipv4 

To add your static IP address (select ‘yes’ for manual method);

Be careful here! You should replace FREE_IP_FROM_YOUR_NETWORK in the command below with an actual IP from your subnet that is not already taken by another device.

And don’t forget to add ‘/24’, so it should looks like something like that at the end.

nmcli> set ipv4.addresses FREE_IP_FROM_YOUR_NETWORK/24

Next, set the DNS server and the local gateway.

Be careful here as well! Usually the DNS and the Gateway in one home network are your router internal IP address, so you should replace YOUR_ROUTER_IP in the commands below with the actual IP of your router.

nmcli> set ipv4.dns YOUR_ROUTER_IP
nmcli> set ipv4.gateway YOUR_ROUTER_IP
nmcli> save
nmcli> quit

After that restart you Virtual Machine.

To test if everything is OK open in a new browser/tab the configured by you address on port 8123. For example

Using Home Assistant Snapshot for migration (Optional Step)

I’m going to use Home Assistant Snapshot functionality to migrate all of my data and configurations from my Raspberry Pi (old machine) to this new fresh installation. If you don’t have anything to migrate from – go directly to the next step/heading.

I will open my Home Assistant installation on the Raspberry Pi (old machine). And I will go to “Supervisor” in the lower left part of the screen and then on “SNAPSHOTS” tab.

Creating a Home Assistant Snapshot

Create a full snapshot here or use already existing one if you have such.

Then click on you snapshot that you want to migrate and choose “DOWNLOAD SNAPSHOT” button.

Next go to your new HOST (where you want to migrate everything) and again click on “Supervisor” button, but before you click the Snapshots – click on the “ADD-ON STORE”.

Installing the "samba" add-on

Search and install “Samba” add-on.

Open and install this add-on. Don’t forget to add username and password under Config section. You will need them to access the snapshot that we created earlier.

Click "SAVE" when you update your Samba Configuration.

Click “SAVE” when you update your Samba Configuration.

After you save your changes scroll up a bit and click on the “START” button.

Now you have to open that shared folder. Depending of your Operating system you can do one of the following:

Access shared folder from Windows

In Windows you can press WINDOWS + R buttons simultaneously and in the Run dialog you have to enter:


In my case this is


Access shared folder from macOS

To open a shared folder in macOS, open the Finder and press COMMAND + k, then type something like smb:// and don’t forget to change the IP.

Access shared folder from Linux

If you are using Linux the universal way is from Terminal using smbclient by typing the following:

smbclient //YOUR_NEW_HA_IP/ -U <user>

Remember to login successfully you have to enter the credentials that you configure in the samba add-on within Home Assistant.

When you open the shared folder find “backup” folder and paste inside the snapshot that you downloaded from your old machine.

pasting snapshot inside the home assistant backup folder

paste inside the snapshot that you downloaded from your old machine.

Head back to Supervisor > Snapshots menu in the Home Assistant of your new/target machine and click “refresh” button in the upper right corner.

You should see your snapshot under the “Available snapshot” section.

Restoring Home Assistant snapshot

Click on it and then select “RESTORE SELECTED”.

The only thing left is to wait a bit for the process to finish. It can take up to 20min so be patient please.

Auto Start VirtualBox and Home Assistant after Windows restart

I’m going to configure VirtualBox to automatically start Home Assistant when windows reboots.

Go to your VirtualBox window and right click on your Home Assistant virtual machine and select “Create Shortcut on Desktop”

Creating a shortcut on desktop of our Home Assistant virtual machine
Creating a shortcut on desktop of our Home Assistant on Windows virtual machine

Then open windows explorer or Run dialog (WINDOWS + R) and type:


this will open a system startup folder in which everything pasted there will try to auto start after restarting Windows.

And we are going to do exactly that. Just paste the created shortcut of your Home Assistant on Windows virtual machine inside this system startup folder.

This is not enough for auto starting VirtualBox and HomeAssistant, because your windows user have to successfully login in order the things inside the startup folder to be executed.

We will fix that “issue” in the next section.

Auto Log in Windows after restart

I’m going to enable auto login feature in Windows, so when the computer restarts our account will be automatically logged in.

And the VirtualBox will auto start Home Assistant virtual machine if you execute the previous step in this tutorial.

Press WINDOWS + R and type


In the window that will be displayed uncheck the “User must enter a username and password to use this computer.”

Uncheck "User must enter a username and password to use this computer." option
Uncheck “User must enter a username and password to use this computer.” option

Then click OK and enter your user password twice .

Set your Windows Power Options correctly

Don’t forget to set your power options right to avoid unwanted sleep of your computer after several working hours.

To check if everything is alright open windows control panel and search for “power options” and click on “Change power-saving settings” and then change when the computer sleeps. Last find the option “Put the computer to sleep” and from the dropdown menu select – Never.

Question for You

What kind of device are you using for your main home server?

Raspberry PI, some kind of desktop or laptop or maybe enterprise grade server. 

If you are feeling lazy like me these days just put one word in the comments like: raspberry or desktop and I will know for what are you talking about.

That doesn’t mean that you cannot put the full  configuration specification if you wish. It will be interesting to see that as well.

Support my Work

Any sort of engagement on this site does really help out a lot with the Google algorithm, so make sure you hit the subscribe If you enjoy this article.

Also feel free to add me on Twitter by searching for @KPeyanski

You can find me on my Discord server as well. This is the invite link.

I really hope that you find this information useful and you now know how to install Home Assistant on Windows using VirtualBox . 

Thank you for watching, stay at home, stay safe and see you next time.


Luis · 30/04/2020 at 6:26 pm

Very interesitng staff!. I am using Rasperry PI 3, but I will be considering upgrading to a PI 4 as soon as I see things start to slow… In regads to using a Windows machine with a virtual machine, won’t that also slow down a bit HA?. although it is an alternative most probably for a new hardware instalation wouldn’t it be faster if you install hassio on top of Linux?. Of course in that way you will only be able to run other linux apps

    Kiril Peyanski · 01/05/2020 at 12:18 am

    Hey Luis, It won’t slow down the HA if your hardware is decent (any 4-8 years old desktop or laptop with enabled virtualisation should be ok). Have in mind that this is one of the official supported way to have Home Assistant, but there are a lot of ways to skin a cat after all 🙂 The best thing with VirtualBox is that you can execute almost the same steps that I’m describing on all major Operating Systems – Windows, Linux, MacOS. Thanks for your comment and I hope that I manage to give you an answer.

Paul Denham · 24/08/2020 at 6:40 am

How do I open avi .cz file and save it as a complete file > I can open with 7zip
but it breaks it up into individual files ? I am a total novice but couldn’t get past
having a file like the tutorial.

Paul Denham · 24/08/2020 at 6:57 am

Edit from above I meant vdi .gz the hassos-_ova-4.12…vdi.gz is compressed and I don’t know how
unzip it properly for use. 7zip opens it into separate files.

    Kiril Peyanski · 24/08/2020 at 3:39 pm

    I’m also using 7zip and it works fine. Just right click on the vdi.gz file and select “7-Zip > uncompress here”

Christopher · 24/08/2020 at 11:35 am

Hi, thanks fo a nice guide. After updated to 112 it wont connect to my xiaomi . It says that o should type ipadress of my gw, but it dosent work anyway. If i reed homeassistant guide for xiaomi it says, f you are using Home Assistant in Docker, make sure to use –net=host . Is it possible to use –net=host in Oracle virtualbox?

    Kiril Peyanski · 24/08/2020 at 3:30 pm

    Does it means that before HA 112 your xiaomi worked fine? There is no -net=host in virtualbox and there is no need for that. In Virtualbox you can play with the VM network interface (NAT, Bridge, etc.)

Paul Denham · 24/08/2020 at 7:06 pm

Thanks I was too stupid to know “extract here”. old and slow. .
Thanks again.

    KIril Peyanski · 24/08/2020 at 10:16 pm

    Great to hear that it worked. And there is no stupid question. We are all learning…

Christopher Ivarsson · 24/08/2020 at 10:08 pm

Yes , before 112 xiao,i gw works fine. If i update it soent work, and thwn i restore to a snapshot i did before installation and it works fine again

    KIril Peyanski · 24/08/2020 at 10:18 pm

    So maybe there is some breaking change or something

Baba · 27/08/2020 at 9:45 am

I can’t access hassio on virtual box hosted on a Windows 10 machine. I have tried myipaddress:8123,
Hassio.local, home assistant.local

    Kiril Peyanski · 29/08/2020 at 8:56 am

    Hi, can you tell me what do you finally see in the HassOS console? Are you see the login: prompt?

plamen Dimitrov · 29/08/2020 at 1:10 am

The guide is very nice and made clear.
Whatever i try i cannot open the HA page…I have done exactly, step by step following your guide. Even managed to download the old version you are using VB 6.1.6. I am back to VB 6.1.12, vdi 4.12, Windows 10…Are there any other settings i need to do. Very often i have “FAILED” for network manager when server is loading.
Please, any idea is welcome.

    KIril Peyanski · 29/08/2020 at 8:54 am

    Hi Plamen,
    at what mode you set your VirtualBox network adapter? NAT or Bridged?

plamen Dimitrov · 30/08/2020 at 12:08 am

Hi Kiril
It’s at “bridge”.
I noticed when loading reaches the “homeassistant login:” it goes ahead by it self until ends at cursor blinking. Is this the end when i can open the web page? If yes, nothing is happening “Page cannot be found!”

    Kiril Peyanski · 30/08/2020 at 11:34 am

    Hi Plamen, double check that you are opening the right IP and port (8123). You can share some screens and configs in my Discord server.

Plamen Dimitrov · 30/08/2020 at 6:12 pm

Hi Kupe
I used your guide as well…but with the same result.
In fact i cannot see what IP to use. Also i enabled the BIOS/UFEI.
When type “nmcli” it’s telling me it is invalid command.
Is it possible something wrong with my windows or PC…

Plamen Dimitrov · 31/08/2020 at 10:39 am

Hi Kiril
I think i finally made it…but i am not sure what is wrong.
I have 3 wifi networks available and 3 browsers on the PC.
Wifi are two open with login page and one is my iPhone hotspot.
Browsers are Chrome, Mozila and Edge.
HA is loading only with Mozila and only when connected to the open Wifi networks.
Also i ran the “dns stats” so i can see the host name and that was actually what i enter as IP “homeassistant.local:8123” and it opens. Still cannot figure out how to set static IP, even following the recommended steps. After the “root” and then “login” i have the cursor blinking near after this “#”. The “nmcli> print ipv4″” command is not recognized.

    Kiril Peyanski · 31/08/2020 at 11:34 pm

    To execute nmcli> print ipv4, you first have to execute: nmcli con edit “HassOS default” exactly as stated in the instructions.

      Plamen Dimitrov · 04/09/2020 at 4:04 pm

      Hi Kiril
      Yes. You are right. I used a paper printout and exactly this sentence was missing.
      I have manage to make it as instructed but still has no effect. Even checked with IP scanner app it does not appears.
      Also i cannot install any add-on. It reports an unknown error.
      One more thing: how/where can i find the config folder of HA? I would like to integrate some Sonoff devices but i need to paste in that folder…

        Kiril Peyanski · 05/09/2020 at 8:02 am

        No, no, no, no was mine IP that I used in the demo. You should replace this with an IP from your subnet. For example if your router interface is accessible on and the clients connected to it are in this range you should replace with (if there is no such client in your network already). I should make this section more clear in the article. Thank you for making me notice that. And the config folder is located in /mnt/data/supervisor/homeassistant in the VM, but you better use the File editor or Samba add-ons from the add-on store.

          Kiril Peyanski · 05/09/2020 at 8:22 am

          I’ve updated the article a bit. I hope it is more clear now.

          Plamen Dimitrov · 05/09/2020 at 12:16 pm

          Hi Kiril
          Thanks for the replay.
          I am worry now that i am so not familiar with these…things that i may annoying you with my questions…of which i am sorry. I just want to make it work full capacity.
          Please, correct me if i am wrong: once i have login to HA using the wifi LAN (no internet) i should see all my devices log in to the same LAN. I use sonoff devices and i need to install sonoff in HA. How can i do that if the “install” button reports an error?

          Kiril Peyanski · 06/09/2020 at 7:49 am

          Can you share what is the error? You can get it from the HA logs. Also do you able to install other add-ons except or they are all failed to install?

Plamen Dimitrov · 06/09/2020 at 8:01 pm

Hi Kiril
Please, see bellow my iPhone hot spot network:
SSID: iPhone
Protocol: Wi-Fi 4 (802.11n)
Security type: WPA2-Personal
Network band: 2.4 GHz
Network channel: 1
Link-local IPv6 address: fe80::9d29:160b:4bc8:d79d%30
IPv4 address:
IPv4 DNS servers:
Manufacturer: Intel Corporation
Description: Intel(R) Dual Band Wireless-N 7260 #2
Driver version:
Physical address (MAC): 80-19-34-80-86-7B

I did change the HA ip to this: , dns and gateway to this:
Is this correct? Because now i cannot enter HA via any browser…
Also i have install error to any app i try to instal when i had the HA access.
What is the way to paste image here or is not possible?

Leave a Reply

Your email address will not be published. Required fields are marked *

This site uses Akismet to reduce spam. Learn how your comment data is processed.