Create a Virtual Machine Running on Balena OS

Greetings!!

I have a single Raspberry Pi 4B. I have installed Balena OS onto it. I would be grateful, if someone would outline, how I would setup a virtual machine on it?

Many thanks, in advance.

Kind regards,

Tony.

Hello Tony and welcome to the balena forums :slight_smile:

balenaOS is not meant to host virtual machines of any kind, its meant for running Moby compatible containers (e.g. Docker :slight_smile: ). So if you’re looking for something like VMware or VirtualBox to run different kind of VMs on the RPi 4B+, balenaOS is not the correct solution - and you would need to work with something like the VMware ESXi ARM Fling ( ESXi Arm Edition | VMware Flings ). However, if you want to find out how to e.g. run a containeraized Python application on the RPi 4B+ using balenaOS, you can checkout the get started guides of balena: Get started with Raspberry Pi 4 and Python - Balena Documentation

Cheers,

Nico

Hello, Nico.

Thank you for your prompt reply. Ah, that explains why I couldn’t find something on it. :roll_eyes:. I had tried Esxi-arm already, but was having problems getting it to locate my SSD drive; so, after approximately a week of trying, I gave-up defeated.

Coming back to Balena OS: I have set-up my Pi running PiHole as a release. I have pulled the Docker container for Home Assistant. It does run, but for some reason, I cannot find the the Home Assistant GUI.

Again, any assistance would be appreciated.

Perfect, I just wanted to make sure that there is no confusion :slight_smile: .
With Home Assistant, do you mean the project balenaHub: an easier way to find and publish apps and projects for edge devices or did you directly use balenaHub: an easier way to find and publish apps and projects for edge devices or the balena version of homeAssistant ( GitHub - balenalabs-incubator/balena-homeassistant: Raspberry Pi + Home Assistant + balenaSense )?

What I did was “balena run homeassistant/home-assistant”, which I believe runs the Docker container.

I have another problem. Every evening around this time, I’m unable to access my RPi 4. I cannot ssh into it, and the Balena Dashboard says: “Online (VPN only)”. The only way, which I have been able to resolve this, is to physically power-cycle my RPi4.

Yes, you are using the official homeassistant container that way. However, I would not advise to use it this way, as you still should mount some external components etc… Homeassistant has its own tutorials on how to get it up and running: Raspberry Pi - Home Assistant - with its own operating system.

The error you see could be a full sdcard, as I found this on the forum. I think it would be more useful to follow the official homeassistant guide without balena if you’re starting up fresh :slight_smile: - its less complicated.

Thank you for the prompt reply. I have only just taken my finger off the click button. :wink:

I had thought of that, I also wanted to run PiHole, as well.