Raspup no KVM (Raspup on KVM)

Moderator: Forum moderators

Post Reply
marcoc
Posts: 3
Joined: Thu Jan 12, 2023 3:56 pm
Location: Cabo Frio - Rio de Janeiro - Brasil
Contact:

Raspup no KVM (Raspup on KVM)

Post by marcoc »

English translation below

Ola.
Tenho um RPi4 com raspberrypi OS instalado, achei na web um tutorial que ensinava a ativar
o KVM e instalar / emular o Alpine Linux para testes, achei fantástico.

Gostaria muito de testar e estudar o Raspup, procurei muito na WEB mas não encontrei
nenhum guia sobre isso.
E possível emular o Raspup no KVM?
Se SIM existe algum guia sobre isso?

Pessoal sou do tempo do PC-DOS posterior MS-DOS e comecei a usar o Linux a muito pouco
tempo, por isso qualquer ajuda será muito bem vinda ok?

Desde já, muito obrigado pela atenção

ENGLISH

Hello.
I have an RPi4 with raspberrypi OS installed, I found a tutorial on the web that taught how to activate
KVM and installing / emulating Alpine Linux for testing, I thought it was fantastic.

I would really like to test and study Raspup, I looked a lot on the WEB but I couldn't find it
no guide about it.
Is it possible to emulate Raspup on KVM?
If YES is there any guide about it?

Guys, I'm from the PC-DOS time after MS-DOS and I started using Linux a little while ago
time, so any help will be very welcome ok?

Thanks in advance for your attention.

User avatar
rockedge
Site Admin
Posts: 5711
Joined: Mon Dec 02, 2019 1:38 am
Location: Connecticut,U.S.A.
Has thanked: 1989 times
Been thanked: 2097 times
Contact:

Re: Raspup no KVM (Raspup on KVM)

Post 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?

marcoc
Posts: 3
Joined: Thu Jan 12, 2023 3:56 pm
Location: Cabo Frio - Rio de Janeiro - Brasil
Contact:

Re: Raspup no KVM (Raspup on KVM)

Post by marcoc »

Muito obrigado por sua atenção.
eu ja tenho o raspup-8.2.1 , mas depois de testar o Alpine no KVM fiquei muito interessado em testar ( tambem no KVM ) o raspup.

Thank you for your attention.
I already have raspup-8.2.1 , but after testing Alpine on KVM I became very interested in testing ( also on KVM ) raspup.

Thanks.

User avatar
bigpup
Moderator
Posts: 6259
Joined: Tue Jul 14, 2020 11:19 pm
Location: Earth, South Eastern U.S.
Has thanked: 730 times
Been thanked: 1289 times

Re: Raspup no KVM (Raspup on KVM)

Post 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.

Forum Global Moderator
The things you do not tell us, are usually the clue to fixing the problem.
When I was a kid, I wanted to be older.
This is not what I expected :o

marcoc
Posts: 3
Joined: Thu Jan 12, 2023 3:56 pm
Location: Cabo Frio - Rio de Janeiro - Brasil
Contact:

Re: Raspup no KVM (Raspup on KVM)

Post by marcoc »

Ola.
O link abaixo e de um tutorial que fiz baseado em outro tutorial que me deixou com algumas poucas duvidas, por isso resolvi fazer o meu para guardar . . .

No inicio do meu tutorial tem o link do primeiro tutorial ok?

http://www.redelegal.com/textos/Como-at ... -Linux.pdf

Valeu pela ajuda.

English

Hello.
The link below is to a tutorial I made based on another tutorial that left me with a few doubts, so I decided to make mine to keep. . .

At the beginning of my tutorial there is a link to the first tutorial ok?

http://www.redelegal.com/textos/Como-at ... -Linux.pdf

Thanks for the help.

Last edited by marcoc on Thu Jan 12, 2023 11:48 pm, edited 1 time in total.
Clarity
Posts: 3264
Joined: Fri Jul 24, 2020 10:59 pm
Has thanked: 1343 times
Been thanked: 438 times

Re: Raspup no KVM (Raspup on KVM)

Post 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.

User avatar
bigpup
Moderator
Posts: 6259
Joined: Tue Jul 14, 2020 11:19 pm
Location: Earth, South Eastern U.S.
Has thanked: 730 times
Been thanked: 1289 times

Re: Raspup no KVM (Raspup on KVM)

Post by bigpup »

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

Forum Global Moderator
The things you do not tell us, are usually the clue to fixing the problem.
When I was a kid, I wanted to be older.
This is not what I expected :o

Clarity
Posts: 3264
Joined: Fri Jul 24, 2020 10:59 pm
Has thanked: 1343 times
Been thanked: 438 times

Re: Raspup no KVM (Raspup on KVM)

Post 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.

User avatar
wiak
Posts: 3627
Joined: Tue Dec 03, 2019 6:10 am
Location: Packing - big job
Has thanked: 56 times
Been thanked: 994 times
Contact:

Re: Raspup no KVM (Raspup on KVM)

Post 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

https://www.tinylinux.info/
DOWNLOAD wd_multi for hundreds of 'distros' at your fingertips: viewtopic.php?p=99154#p99154
Αξίζει να μεταφραστεί;

Post Reply

Return to “Raspbian Buster”