Migrate Hass.io from a Raspberry Pi to a Virtual Machine (Windows). Step by Step.

preview_player
Показать описание


All the commands for copy/paste:
**nmcli commands NOTE UPDATED COMMAND FOR STATIC IP**
nmcli con edit "HassOS default"
print ipv4

**vm service commands**
acpipowerbutton

Follow me on Twitter: @TheHookUp1

Support my channel:

Рекомендации по теме
Комментарии
Автор

please help have hassio running on a vm through virtualbox but it wont load past the preparing home assitant page on web browser

joshuaball
Автор

Took some tinkering to get the virtual machine operational, had to change the display settings to the VBoxVGA from the default. The machine would come up but just show a blank screen. I couldn't get the autostart working your way but got it going through Virtual box itself. I right clicked the machine and made a shortcut to the desktop. I moved that shortcut to the shell:startup folder and modified the shortcut to point to VirtualBoxVM.exe instead of VirtualBox.exe. HA is so much faster! Thanks Rob!

EricNoe
Автор

I have noticed there is a VDI image now available directly, but if you want your HA HDD to be more than 32GB in size, this tutorial/walkthrough is still completely valid. I moved from ProxMox back to VirtualBox due to Blue Iris not being great in a VM on desktop equipment. I don't want to buy enterprise grade servers to make it work. I did find promiscuous mode is not needed on the adaptors with VirtualBox 6.x, but this may still be valid for 5.x versions.
Thanks Rob.

EsotericArctos
Автор

hello,
I know it is an oldie, but after my RBP crash i am fed up with that at starting VM. followed your clear instructions. unfortunatly connection times out after setup. checked my ip's but no luck

robinvooijs
Автор

I ran into problems trying to use the VBoxVmService. Instead I just created a service to use Virtual Box's native commands. Here's how:

1. find your start up directory
A. Press Windows + R
B. Open: `shell:startup`

2. create a file with the contents of:
"C:\Program
startvm YOUR_VM_NAME --type headless

If you run into any problems first check that your folder paths and names correspond correctly.

Sky-xufe
Автор

Just did it. Great instruction! But .... If you are a just DS-Lite user like me - just skip the fix 'IPV4' chapter and leave it like it is. Internets will not be available after this fix. Without it will connect without hassle to download from the internet. This way is not valid if you have DS-Lite with outbound IPV4 address.

connymathias
Автор

For those who 100% rely only on video instructions and do not read the description at all, do not forget "/24" after desired ip address.


set ipv4.addresses [hassio ip address]/24

ChiragChaudhari
Автор

I am interested in doing this but something I have been wondering about with all of your guides, is are you on a static IP or dynamic? I am a techie but trying very hard to learn all I can about networking in which I am quite the novice. From the many guides I've watched from you so far, I have yet to of gleamed this little detail. It's the one great unknown I have about setting up my own network in the house I am building, of whether or not it is completely necessary or can I work around it inexpensively? Thanks!

Dallas
Автор

Happy days. I actually come across this because I wanted to go to docker so HA was portable so incase of hardware failure my house didn't go down.


It also coincided with me putting more working into home assistant which resulted more load than my Pi3+ could handle I was looking at buying a NUC but didn't want to shell out, my main computer runs 24/7 hosts plex and my CCTV so makes good sense to go VM.


Tutorial was spot on, I followed from start to finish in one go without any brickwalls. Thank you

LlamaOates
Автор

As always, great tutorial. This is a much needed upgrade of my HA setup. I was considering using a RP4 now that HA released support for it but I think that this is more robust.

smartlife
Автор

Your title is misleading, You should be saying "How to transfer HA to a VM on windows, " "Raspberry Pi to Windows Virtual Machine" infers that you are transferring your Raspi instance to a VM with windows installed.

Otherwise, looks like a good guide. Thanks!

blackphidora
Автор

Just got a new super fast always on machine and did this. so worth it. HASS response is unbelievable !! never going back to rpi.
thanks for another great informative vid. Cheers mate.

CamStansell
Автор

A great video Rob. I am already running a VM for Hass.io so I could learn more before getting a Pi.

But now I am thinking of sticking with this setup as I can have multiple versions, one doing all the work and another for testing.

marksmith
Автор

Great tutorial - got it working first time and with zwave adapters. So much faster than running on the Pi.

ravisawhney
Автор

Windows 10 and "it basically never reboots and never turns off"... I think you and I have somewhat different experiences of Windows 10! (And 8.1, 8, 7, Vista, XP, etc...!) Anyway thanks for the excellent video as usual. I have set up HA both on a VM and a Pi before, but didn't know there was a vmdk. Currently use only Node-RED, but this vid has kicked me into getting HA up and running on my server. Actually I plan to use Hyper-V on a proper server with RAID disks and 96GB RAM (cheapo from ebay) but the same concept will apply I'm sure - I notice there's also a VHDX version. Love your channel.

MatSmithLondon
Автор

Thank you for this! After my last SD card failure on the Pi3 (and inexplicable inability to restore my HassIO snapshot), I took the plunge and got a cheap Lenovo M73. Your tutorial got me up and running in no time. I love being able to just clone the VM before making a change that could break HassIO.

dichron
Автор

Now you can use that unused Raspberry Pi as a Pi-Hole! Just remember to let your family know that the top results on a google search are usually ads, so the pi-hole will block those. And if you really want to support a particular ad service, you can whitelist them too, as well as block any other DNS results network-wide that you want, like adult content.

joshallred
Автор

Hey Rob, Thank you for these videos, very helpful! Would keeping snapshots (Im using a google drive sync add-on) and taking a back-up of the VDI be enough? Also, now that I've had HA running for some months and integrated a number of things, would there be any point in recreating the VDI file now, say for saving state possibly?
Finally, I'd be very interested in seeing a video on topics like any disaster recovery solutions you have, integrating a database with node-red, HA/YAML basics, and (if configured this way) how your plex server is running alongside & integrated with your HA

Taterxxwardy
Автор

question: wouldn´t it be sufficient to do the static ip mapping on router level? if you assign it to the MAC address, shouldn´t hassio always end up with that ip?

overtheedge
Автор

I have followed the directions 5 different times and once I set the IP .. DNS and Gateway.. I can no longer access home assistant and have to reinstall everything...

LuminDesign