Page 1 of 1

Re: Raspup no KVM (Raspup on KVM)

Posted: Thu Jan 12, 2023 5:52 pm
by rockedge
marcoc wrote:

Guys, I'm from the PC-DOS time after MS-DOS

Me too.

Yes I think it will run fine with KVM, Did you try to boot it directly with the Pi? It seems that Raspup will run natively on a RaspberryPi so it might be worth a try.

Do you need a copy of Raspup?


Re: Raspup no KVM (Raspup on KVM)

Posted: Thu Jan 12, 2023 9:45 pm
by bigpup

I found a tutorial on the web that taught how to activate
KVM and installing / emulating Alpine Linux

Give us a link to this tutorial.
So we can see how you did it.

Raspup is released as an image file that you use to make an install on a SD card, you use to boot a Pi computer.

Raspup info is here:
http://raspup.eezy.xyz/index.php

The release notes give details and install info:
http://raspup.eezy.xyz/notes.php

There are several versions setup for the different Pi computers.

Note:
The dd command it shows for doing an install has a small error.

Code: Select all

dd bs=1m if=path/to/raspup-(version).img of=/dev/MYDRIVE
sync

Code: Select all

bs=1m needs to be bs=1M

The 1m needs to be a capital letter M.

I am using Raspup to run a Pi 400
I have Raspup installed on a micro SD card.
I replace the Raspberry OS SD card with the Raspup SD card and boot with it.

After we look at how you got Alpine Linux working with KVM.
Should be able to tell you how to do it with Raspup.


Re: Raspup no KVM (Raspup on KVM)

Posted: Thu Jan 12, 2023 11:19 pm
by Clarity

@marcoc, @rockedge, @bigpup and others.

Does RasPI CPU have VM hardware capability built-in. When I looked several years ago the processor did not. So that acceleration is NOT available IIRC.

For Intel and AMD, the CPU hardware has the ability and either the kernel or a module load is required for the OS to use it.

I may be wrong on RasPi ability. QEMU will work no matter what/which.


Re: Raspup no KVM (Raspup on KVM)

Posted: Fri Jan 13, 2023 9:34 am
by bigpup

I am going to go now.
This is something I know little about and have never used.


Re: Raspup no KVM (Raspup on KVM)

Posted: Sat Jan 14, 2023 5:22 am
by Clarity

Hi @bigpup and other members.

We have a couple Guides on the Internet for PUPs and Virtual Machines (VM), aka QEMU-KVM specifically to help understand what it is and how to implement. The guides are dated, yet accurate.

In the late 1990s, AMD, then Intel, added an acceleration component to their processor, specific to accelerate VMs. Linux followed suit to exploit the acceleration feature by building support in Linux. Tovalds added support in the form of kernel modules for AMD & Intel (x86 & x86-64) and continues to support those processor features to this day. It is known as 'KVM' and I think you can guess from this paragraph what KVM stands for.

OK, The concern raised here, I think, is asking if there is some component in ARM processors where it, too, can make VMs run as fast as bare-metal processing.

DO NOT confuse the Linux support of KVM with anything other than its support for processor acceleration.

QEMU is something separate...it merely allows people to 'design' a virtual machine to mimic real bare-metal PCs. The discussion of QEMU, as a designer, is alluded to in the PUP Guides I mentioned.

I hope this explanation is helpful.


Re: Raspup no KVM (Raspup on KVM)

Posted: Sat Jan 14, 2023 5:49 am
by wiak
Clarity wrote: Sat Jan 14, 2023 5:22 am

DO NOT confuse the Linux support of KVM with anything other than its support for processor acceleration.

I don't own a RPi4, but here is an article that suggests it supports KVM virtualisation:

How to Enable KVM Virtualization on Raspberry Pi 4
https://linuxhint.com/kvm_virtualization_raspberry_pi4/

Also on Pi3 but limited because of RAM:
https://feldspaten.org/2020/05/24/kvm-o ... erry-pi-3/
https://feldspaten.org/2020/07/05/raspb ... 4-and-kvm/

More generally, seems to have been some KVM ARM support, no doubt depending on the ARM processor type, since 2013: https://lwn.net/Articles/557132/c

KVM/ARM is already used heavily in production by the SUSE Open Build Service on Arndale boards, and we can only speculate about its future uses in the green data center of the future, as the hypervisor of choice for ARM-based networking equipment, or even ARM-based laptops and desktops.

For more information, help on how to run KVM/ARM on your specific board or SoC, or to participate in KVM/ARM development, the kvmarm mailing list is a good place to start.

https://groups.google.com/g/cubieboard/c/4EGONZMoIAU