ImagineZA
Posts: 18
Joined: Thu Oct 11, 2018 10:15 am

Running two different OS at the same time

Thu Mar 28, 2019 8:04 am

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,

jahboater
Posts: 4607
Joined: Wed Feb 04, 2015 6:38 pm

Re: Running two different OS at the same time

Thu Mar 28, 2019 8:17 am

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.

ImagineZA
Posts: 18
Joined: Thu Oct 11, 2018 10:15 am

Re: Running two different OS at the same time

Thu Mar 28, 2019 8:23 am

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,

jahboater
Posts: 4607
Joined: Wed Feb 04, 2015 6:38 pm

Re: Running two different OS at the same time

Thu Mar 28, 2019 8:40 am

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?

ImagineZA
Posts: 18
Joined: Thu Oct 11, 2018 10:15 am

Re: Running two different OS at the same time

Thu Mar 28, 2019 8:46 am

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,

User avatar
HawaiianPi
Posts: 4534
Joined: Mon Apr 08, 2013 4:53 am
Location: Aloha, Oregon USA

Re: Running two different OS at the same time

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.

But ... I have not tried it myself, so ... ¯\_(ツ)_/¯
My mind is like a browser. 27 tabs are open, 9 aren't responding,
lots of pop-ups...and where is that annoying music coming from?

jahboater
Posts: 4607
Joined: Wed Feb 04, 2015 6:38 pm

Re: Running two different OS at the same time

Thu Mar 28, 2019 9:30 am

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!

ImagineZA
Posts: 18
Joined: Thu Oct 11, 2018 10:15 am

Re: Running two different OS at the same time

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

fruitoftheloom
Posts: 20493
Joined: Tue Mar 25, 2014 12:40 pm
Location: Delightful Dorset

Re: Running two different OS at the same time

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:
Retired disgracefully.....

Andyroo
Posts: 4226
Joined: Sat Jun 16, 2018 12:49 am
Location: Lincs U.K.

Re: Running two different OS at the same time

Thu Mar 28, 2019 1:18 pm

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
Need Pi spray - these things are breeding in my house...

hippy
Posts: 5794
Joined: Fri Sep 09, 2011 10:34 pm
Location: UK

Re: Running two different OS at the same time

Thu Mar 28, 2019 3:34 pm

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.

jamesh
Raspberry Pi Engineer & Forum Moderator
Raspberry Pi Engineer & Forum Moderator
Posts: 23393
Joined: Sat Jul 30, 2011 7:41 pm

Re: Running two different OS at the same time

Thu Mar 28, 2019 3:40 pm

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.
Principal Software Engineer at Raspberry Pi (Trading) Ltd.
Contrary to popular belief, humorous signatures are allowed. Here's an example...
"My grief counseller just died, luckily, he was so good, I didn't care."

jamesh
Raspberry Pi Engineer & Forum Moderator
Raspberry Pi Engineer & Forum Moderator
Posts: 23393
Joined: Sat Jul 30, 2011 7:41 pm

Re: Running two different OS at the same time

Thu Mar 28, 2019 4:03 pm

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+......
Principal Software Engineer at Raspberry Pi (Trading) Ltd.
Contrary to popular belief, humorous signatures are allowed. Here's an example...
"My grief counseller just died, luckily, he was so good, I didn't care."

User avatar
rpdom
Posts: 15021
Joined: Sun May 06, 2012 5:17 am
Location: Chelmsford, Essex, UK

Re: Running two different OS at the same time

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.

ImagineZA
Posts: 18
Joined: Thu Oct 11, 2018 10:15 am

Re: Running two different OS at the same time

Fri Mar 29, 2019 5:44 am

So the best option/only option supplied would be to double up on the Pi.

User avatar
DougieLawson
Posts: 35815
Joined: Sun Jun 16, 2013 11:19 pm
Location: Basingstoke, UK
Contact: Website Twitter

Re: Running two different OS at the same time

Fri Mar 29, 2019 7:31 am

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.
Note: Having anything humorous in your signature is completely banned on this forum. Wear a tin-foil hat and you'll get a ban.

Any DMs sent on Twitter will be answered next month.

This is a doctor free zone.

User avatar
Gavinmc42
Posts: 3633
Joined: Wed Aug 28, 2013 3:31 am

Re: Running two different OS at the same time

Fri Mar 29, 2019 8:30 am

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.
I'm dancing on Rainbows.
Raspberries are not Apples or Oranges

ghans
Posts: 7871
Joined: Mon Dec 12, 2011 8:30 pm
Location: Germany

Re: Running two different OS at the same time

Fri Mar 29, 2019 8:53 am

QEMU+KVM should make this possible.

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

ghans
• Don't like the board ? Missing features ? Change to the prosilver theme ! You can find it in your settings.
• Don't like to search the forum BEFORE posting 'cos it's useless ? Try googling : yoursearchtermshere site:raspberrypi.org

code_exec
Posts: 271
Joined: Sun Sep 30, 2018 12:25 pm

Re: Running two different OS at the same time

Wed Apr 10, 2019 8:35 pm

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.
Ubuntu 18.04 LTS desktop images for the Raspberry Pi 3.

https://github.com/CodeExecution/Ubuntu-ARM64-RPi

code_exec
Posts: 271
Joined: Sun Sep 30, 2018 12:25 pm

Re: Running two different OS at the same time

Wed Apr 10, 2019 8:37 pm

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.
Ubuntu 18.04 LTS desktop images for the Raspberry Pi 3.

https://github.com/CodeExecution/Ubuntu-ARM64-RPi

Return to “Other”