Page 1 of 1

Running two different OS at the same time

Posted: Thu Mar 28, 2019 8:04 am
by ImagineZA
Hey Guys,

I was wondering if it would be possible to simultaneously run two different OS builds on the Pi at the same time.

More specifically, Raspbian and an Android OS, like Emteria.

The reason behind it:
I'm currently using the Pi with Raspbian to "monitor" a few things around the house, Digital IO's, Light controls etc, as well as running a web server that displays the status of the things being monitored.
I'd like to run an Android OS on the Pi at the same time to theoretically turn a dumb TV in to a Smart TV, via HDMI and Wireless Keyboard.

It seems like it might be quite a hassle for the Pi in terms of hardware limitations, but I was wondering if it is possible and if it is, how to go about doing it.

Cheers,

Re: Running two different OS at the same time

Posted: Thu Mar 28, 2019 8:17 am
by jahboater
Do you mean running the second OS in a virtual machine?
I'm not sure whats available on the Pi. VirtualBox doesnt support ARM.
It may well be easier just to use two Pi's - they use little power and are cheap.
The new 3B+ (with the plus) is the most capable model.

Re: Running two different OS at the same time

Posted: Thu Mar 28, 2019 8:23 am
by ImagineZA
I assume running both on an ESXI type OS would be the way to do it?

I was thinking about getting another Pi to do the job, but wanted to see if it was possible, the Pi is pretty much a tinker toy, so trying these things out is always a win for me, even if they fail.

Cheers,

Re: Running two different OS at the same time

Posted: Thu Mar 28, 2019 8:40 am
by jahboater
ImagineZA wrote:
Thu Mar 28, 2019 8:23 am
I assume running both on an ESXI type OS would be the way to do it?
I suppose look on the VMware website, but I would be astonished if anything like that was available.
Wouldn't it be very expensive too?

Re: Running two different OS at the same time

Posted: Thu Mar 28, 2019 8:46 am
by ImagineZA
I have had a squiz and they do have posts about how the "demo-ed" an ARM version on a Pi at some recent IoT/EDGE Expo, but nothing in full release yet, so was curious to see if there was something similar.

Link to the VMWare Blog on ESXI 6.8 on RPI (if anyone else is interested): https://vinfrastructure.it/2018/11/vmwa ... pberry-pi/

Cheers,

Re: Running two different OS at the same time

Posted: Thu Mar 28, 2019 9:28 am
by HawaiianPi
The biggest problem is limited RAM.

So, can you do it... there's probably a way.

The real question is, should you do it... and the answer to that is almost certainly, no.

Running a guest OS in a VM with only 1GB of RAM is not likely to provide a usable system.

But ... I have not tried it myself, so ... ¯\_(ツ)_/¯

Re: Running two different OS at the same time

Posted: Thu Mar 28, 2019 9:30 am
by jahboater
HawaiianPi wrote:
Thu Mar 28, 2019 9:28 am
The biggest problem is limited RAM.

So, can you do it... there's probably a way.

The real question is, should you do it... and the answer to that is almost certainly, no.

Running a guest OS in a VM with only 1GB of RAM is not likely to provide a usable system.
With VMware ESX you are effectively running 3 OS's at the same time!

Re: Running two different OS at the same time

Posted: Thu Mar 28, 2019 11:00 am
by ImagineZA
I also read that the Pi4 will have better hardware and a possible Android GO official OS:

https://www.linux.com/blog/2019/2/new-p ... android-pi

Re: Running two different OS at the same time

Posted: Thu Mar 28, 2019 11:21 am
by fruitoftheloom
ImagineZA wrote:
Thu Mar 28, 2019 11:00 am
I also read that the Pi4 will have better hardware and a possible Android GO official OS:

https://www.linux.com/blog/2019/2/new-p ... android-pi

That is pure speculation and nothing Official has been stated :roll:

Re: Running two different OS at the same time

Posted: Thu Mar 28, 2019 1:18 pm
by Andyroo
ImagineZA wrote:
Thu Mar 28, 2019 11:00 am
I also read that the Pi4 will have better hardware and a possible Android GO official OS:

https://www.linux.com/blog/2019/2/new-p ... android-pi
See this thread viewtopic.php?f=63&t=236676

Re: Running two different OS at the same time

Posted: Thu Mar 28, 2019 3:34 pm
by hippy
ImagineZA wrote:
Thu Mar 28, 2019 11:00 am
I also read that the Pi4 will have better hardware and a possible Android GO official OS
With just £290 pledged of the £2,559 goal, with only 12 days to go, it doesn't seem that effort to deliver Android GO is really getting off the ground.

Re: Running two different OS at the same time

Posted: Thu Mar 28, 2019 3:40 pm
by jamesh
ImagineZA wrote:
Thu Mar 28, 2019 11:00 am
I also read that the Pi4 will have better hardware and a possible Android GO official OS:

https://www.linux.com/blog/2019/2/new-p ... android-pi
I doubt we will have a official Android version in the near or even medium term. We are not working on one. I suppose we could take someone elses one and make it official, but seems unlikely.

Re: Running two different OS at the same time

Posted: Thu Mar 28, 2019 4:03 pm
by jamesh
fruitoftheloom wrote:
Thu Mar 28, 2019 11:21 am
ImagineZA wrote:
Thu Mar 28, 2019 11:00 am
I also read that the Pi4 will have better hardware and a possible Android GO official OS:

https://www.linux.com/blog/2019/2/new-p ... android-pi

That is pure speculation and nothing Official has been stated :roll:
Well, better hardware seems obvious. Otherwise we could just continue selling the Pi3B+......

Re: Running two different OS at the same time

Posted: Thu Mar 28, 2019 4:35 pm
by rpdom
jamesh wrote:
Thu Mar 28, 2019 4:03 pm
Well, better hardware seems obvious. Otherwise we could just continue selling the Pi3B+......
Does that mean you're going to stop selling the 3B+ when the 4B comes out? Unlikely, I suspect.

Re: Running two different OS at the same time

Posted: Fri Mar 29, 2019 5:44 am
by ImagineZA
So the best option/only option supplied would be to double up on the Pi.

Re: Running two different OS at the same time

Posted: Fri Mar 29, 2019 7:31 am
by DougieLawson
ImagineZA wrote:
Fri Mar 29, 2019 5:44 am
So the best option/only option supplied would be to double up on the Pi.
Correct. It's not good enough to run virtual machines.

Re: Running two different OS at the same time

Posted: Fri Mar 29, 2019 8:30 am
by Gavinmc42
I would have said no, but I have been running 32bit Raspbian and 64bit aarch64 Linux at the same time.
Very much bleeding edge and only a few like Sakaki know how to do it.

In the meantime you could use two Pi's and VNC into them.
Does Android have a VNC server app?

The problem I see with Android is the high optimization for web stuff will not work in Raspbian.
Browsers and Youtube are better optimized in Android.
PI's are getting there with OS's like Gentoo64 which is newer than the standard Raspbian Debian.

Pi's are cheap enough to use more than one and VNC is not bad.

Re: Running two different OS at the same time

Posted: Fri Mar 29, 2019 8:53 am
by ghans
QEMU+KVM should make this possible.

https://github.com/sakaki-/gentoo-on-rp ... -under-KVM

ghans

Re: Running two different OS at the same time

Posted: Wed Apr 10, 2019 8:35 pm
by code_exec
You can run two Linux distributions alongside each other by running one in a container and one natively. For example, you could run armhf Raspbian alongside arm64 Ubuntu. But since you're using Android here, things get more complicated. You could try UserLAnd (which I use on my Galaxy S9 with DeX mode) but 1GB RAM on the Pi could present a bottleneck.

Re: Running two different OS at the same time

Posted: Wed Apr 10, 2019 8:37 pm
by code_exec
rpdom wrote:
Thu Mar 28, 2019 4:35 pm
jamesh wrote:
Thu Mar 28, 2019 4:03 pm
Well, better hardware seems obvious. Otherwise we could just continue selling the Pi3B+......
Does that mean you're going to stop selling the 3B+ when the 4B comes out? Unlikely, I suspect.
He probably means that the RPF could just continue selling the Pi 3B+ and not launch an Pi 4B at all if the Pi 3B+ was powerful enough for the task of running two operating systems side by side.