Vairetz
Posts: 44
Joined: Wed Apr 27, 2016 4:54 pm

Virtual Machine on Raspberry Pi

Fri May 31, 2019 5:53 pm

Hi everyone, I'm looking for a OS emulator like VirtualBox, VMWare, etc.. to install on Raspbian or other Raspberry Pi OS. I'd like to emulate another ARM OS but I don't know any software to do this. Any idea or suggestion?
I made a site with a raspi projects' collection, my idea is sharing my projects with other people.
My web site is https://raspiproject.altervista.org/ I hope you like it and you want work with me

User avatar
DarkPlatinum
Posts: 867
Joined: Thu Nov 02, 2017 2:30 pm
Location: Unknown
Contact: Website YouTube

Re: Virtual Machine on Raspberry Pi

Fri May 31, 2019 7:47 pm

Your going to have problems with with virtual machines on a Pi. A Pi only has 1 GB of Ram! (2B , 3B and3B+) This is not going to work very well.

But if your doing this just for the fun of it, OS your using is very lightweight. You can use QEMU for emulation.
Last edited by DarkPlatinum on Sat Jun 01, 2019 2:34 pm, edited 1 time in total.
1 * Raspberry Pi Zero W, 1 * Raspberry Pi 2, 1 * Raspberry Pi 3 1 * Raspberry Pi 3B + :mrgreen:

Check Out My Raspberry Site (Run on a Raspberry Pi 3B :) ): https://html.dynu.net

Vairetz
Posts: 44
Joined: Wed Apr 27, 2016 4:54 pm

Re: Virtual Machine on Raspberry Pi

Fri May 31, 2019 8:50 pm

Thank you I'll try it on Raspbian Lite to have more RAM for virtual machine :D
I made a site with a raspi projects' collection, my idea is sharing my projects with other people.
My web site is https://raspiproject.altervista.org/ I hope you like it and you want work with me

W. H. Heydt
Posts: 12427
Joined: Fri Mar 09, 2012 7:36 pm
Location: Vallejo, CA (US)

Re: Virtual Machine on Raspberry Pi

Sat Jun 01, 2019 3:54 am

DarkPlatinum wrote:
Fri May 31, 2019 7:47 pm
A Pi only has 1 GB of Ram! (2B , 3B and B+)
Nitpick... a Pi3B+ has 1GB. A B+ has 512MB. (I am assuming probable typo and you meant 3B+.)

W. H. Heydt
Posts: 12427
Joined: Fri Mar 09, 2012 7:36 pm
Location: Vallejo, CA (US)

Re: Virtual Machine on Raspberry Pi

Sat Jun 01, 2019 3:55 am

Vairetz wrote:
Fri May 31, 2019 8:50 pm
Thank you I'll try it on Raspbian Lite to have more RAM for virtual machine :D
You will still only have 1GB or less RAM. Granted, more of it will be available for your use, but just going to Raspbian Lite won't add any RAM.

User avatar
Botspot
Posts: 1241
Joined: Thu Jan 17, 2019 9:47 pm
Location: Texas
Contact: Website

Re: Virtual Machine on Raspberry Pi

Thu Mar 05, 2020 3:24 pm

Vairetz wrote:
Fri May 31, 2019 5:53 pm
Hi everyone, I'm looking for a OS emulator like VirtualBox, VMWare, etc.. to install on Raspbian or other Raspberry Pi OS. I'd like to emulate another ARM OS but I don't know any software to do this. Any idea or suggestion?
If the ARM OS you're trying to run will work under Raspbian's kernel, then you won't need an emulator, but a container.
Instead of allocating a large chunk of RAM and emulating every CPU cycle, a container just runs the programs of the second OS.

For example, my Pi Power Tools uses systemd-nspawn to run a second instance of Raspbian in a container. Just give it a raspbian .img file, and push the boot button.
img-mode.png
img-mode.png (21.47 KiB) Viewed 1577 times
Want to make your own Raspbian image?
  • Hard way: Mess with confusing terminal commands.
  • Easy way: Let Pi-Power-Tools do it all for you!
Boot your image in a VM, Flash from the Internet at top speed, Mount (to drop files in), Edit partitions, Shrink/Expand, Repair, and more. Enjoy! :)
https://github.com/Botspot/Pi-Power-Tools

Return to “Beginners”