Run Hass OS on VM on Raspberry Pi

Is this possible with the ubuntu for Pi loaded ? It is a Pi 4 4GB RAM W/ 32GB SD card.

Why do you want to run it as a VM on a Pi? In my opinion, the Pi is not a machine to run VMs on.

1 Like

I just didn’t want to tie down the Pi to one (HA) function. Thanks for the repsonse.

So do a generic Home Assistant - Supervised install (previously called Raspbian as the OS, the you can install whatever else you wish.

1 Like

I searched and it seemed to me the only option was that you dedicate the Pi to Hass OS, thanks for the clarification.

This page is what confused me. Seems like installing on existing ‘linux’ would be ssh’ing to the system and pulling HA down with apt-get or wget and then going through install, these instructions say " Flash the downloaded image to an SD card using balenaEtcher." That sounds like you are taking a bootable img file and booting your device to run Hass OS.

Flashing the Raspbian image, not HassOS. Read my guide, lots have used it and had success with it.

I can’t contact you directly, but when you connect the Pi to the network in step 6 and then say to ssh to it in step 7, I assume the Pi will use DHCP and I will have to look in the router for a ‘new’ mac address to get the ip address ?

If you can, give your RPi a static IP in your router. If not, you can set a static IP from the RPi itself. It’s very important the machine that is running HA, your MQTT broker etc, has a static IP.

I understand this completely. Unless the Pi has the mac printed on it somewhere, you’d have to use the technique I mentioned. Find the IP it was given in the router by noticing the mac prefixes of the Pi foundation B8:27:EB and DC-A6-32, then static-fy it. Actually alluding to this in step 7 might be a good edit.

“Step 7: …Check your router for the IP address of your Pi and use Putty to connect via SSH, on port 22 by default.”

Check your router for the IP address of your Pi (you can identify the Pi by the Pi foundation Mac address prefixes of B8:27:EB and DC-A6-32) and use Putty to connect via SSH, on port 22 by default.”

Thanks for the feedback, feel free to create your own guide.

My router showed the new device as … wait for it … raspberry pi. Thanks for making the guide. I was able to install a lighttpd webserver and other things. Now I have to learn how to use HA. Thanks

I’m not sure if this guide that you guys mention is still in the google drive folder. Would like to check it! Is it possible to reshare it?

Thank you for your fast response! I will be trying this inside an LXC container. Initially I was looking to install a HAOS VM in my RPI4 but there isn’t much information about this, and so far I got stuck.

It is mentioned in HA docs, that Supervised vs OS is only the Managed OS missing. What is this Managed OS? Is it about other software packages or libraries needed to be installed in the OS to properly run the HA project? If so how stable is a Supervised installation?

Because it a far from a recommended way to install. I would go as far to say it’s completely pointless.

HA OS has a base OS built on Buildroot.


1 Like

try this guide which I believe is suitable with you.