QEMU-KVM use

Kennel Linux Void-based


Moderator: Forum moderators

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

Re: QEMU-KVM use

Post by Clarity »

norgo wrote: Sun Jan 15, 2023 1:54 pm

...
Important hint
qemu_gui is included in rootfs-skeleton by default

PPM offers a Qemu_Control_Center-0.7 package.
This package contains a not working qemu_gui script.
Do not install this pet because the working qemu_gui script would be overwritten!
qemu_gui_07.jpg

Agreed.

But PUP development team or PUP scripting members have not resolved it. The change-author of that script is not on the forum to resolve its field issues, after its last change.

I took a look awhile ago and do not have the skills to understand coding fo a screened program to resolve the problem...although I think I see the areas to resolve. Maybe there's an older working version around somewhere.

The GUI is helpful as it makes generating the VM visually simple for the simple things it does. The OLD PUP Guides on Google reference that feature of the QEMU package released in WoofCE repos and Puppyland PETs. So in the past, it did work.

Thanks Norgo

User avatar
norgo
Posts: 252
Joined: Mon Jul 13, 2020 6:39 pm
Location: Germany
Has thanked: 5 times
Been thanked: 93 times
Contact:

Re: QEMU-KVM use

Post by norgo »

qemu-ready

is a little helper application to check whether your computer is ready for usage of qemu or not.
What is this application doing?

detecting the CPU manufacturer
loading the needed kvm kernel modules
checking the capability of cpu virtualization
checking whether virtualization is enabled or disabled in BIOS

after these tests you get a message if your computer is ready to run qemu

information
for detection of virtualization status (enabled/disabled) the script is using the "rdmsr" utility.
This very small utility is able to read the MSR (cpu register).
The binary is included in the package.

How to use?
Install the package.
open a terminal and type

Code: Select all

qemu_ready
thats all.
qemu-ready-0.3.1-x86_64.pet
(5.01 KiB) Downloaded 93 times
Screenshot.jpg
Screenshot.jpg (35.09 KiB) Viewed 1298 times
Clarity
Posts: 3246
Joined: Fri Jul 24, 2020 10:59 pm
Has thanked: 1334 times
Been thanked: 438 times

Re: QEMU-KVM use

Post by Clarity »

An EXCELLENT utility that is NEEDED for PC that test/run forum distros via a QEMU virtual PC. This utility far exceeds the limited scope of the good earlier works the community helped me with several months ago.

This tiny PET, it is hoped that most forum developers include as one of the many OOTB utilities that we find useful considering that use of the Linux kernel carries this feature for a decade or more.

It clearly alerts the user that his PC is capable of the performance feature the kernel give the PC when a VM is used by the user.

Above post shows what happens for PCs capable of the kernel performance ability while below shows an Intel PC that does NOT have the ability to support the kernel feature.

Code: Select all

~$ qemu_ready  # run on a PC without Virtualization in firmware

--------------------------------------------------
STATUS		CHECK			INFO
--------------------------------------------------
detected	CPU vendor		intel
loaded		kernel modul		kvm 
failed		kernel modul		kvm_intel 
loaded		kernel modul		msr 
present		rdmsr deps		rdmsr 
missing		virtual. capability	vmx 
disabled	virtual. STATUS		VT-x 

--------------------------------------------------
check the BIOS settings regarding virtualisation
--------------------------------------------------
~$ 
Thanks for this "QEMU_Ready" utility for checking and enabling the kernel where possible.

P,S, There is NO system penalty when the Linux kernel feature is present in the running system.
Clarity
Posts: 3246
Joined: Fri Jul 24, 2020 10:59 pm
Has thanked: 1334 times
Been thanked: 438 times

Re: QEMU-KVM use

Post by Clarity »

Hello @dimkr. Is your 'working' GUI, mentioned by @norgo above, now contained in either the QEMU packaging for Vanilla repos or a PET somewhere for PUPs (WoofCE)?

Thanks in advance

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

QEMU-KVM use

Post by Clarity »

For FossaPUP64 and F96 and derivatives: @Jasper has released the latest QEMU v8+ as a PET.

My Virtual machines are running at 100% of the responsiveness of the Host Fossa.

Enjoy

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

Re: QEMU-KVM use

Post by Clarity »

Hi @rockedge; I remember you mentioning building kernels with KVM built-in.

Have you been able to run QEMU KVM without needing to modprove the KVM support before running QEMU on your systems that have the kernel?

Curious

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

Re: QEMU-KVM use

Post by rockedge »

@Clarity Yes some of the kernels I compiled earlier all have kvm support built in.

In F96-CE_4 (or any earlier version) a useful tool is the package cpu-checker which includes the command kvm-ok for checking the system status for virtualization

Screenshot(14).jpg
Screenshot(14).jpg (84.31 KiB) Viewed 1033 times

The current KLV-Airedale Void Linux kernel 6.1.20_1 seems also to have KVM support built in.

dogcat
Posts: 195
Joined: Fri Feb 18, 2022 11:14 pm
Has thanked: 32 times
Been thanked: 80 times

Re: QEMU-KVM use

Post by dogcat »

Clarity wrote: Mon Apr 24, 2023 3:10 am

For FossaPUP64 and F96 and derivatives: @Jasper has released the latest QEMU v8+ as a PET.

My Virtual machines are running at 100% of the responsiveness of the Host Fossa.

Enjoy

It looks like the PET package referenced has been removed from that post/topic but....
rockedge has compiled QEMU-8.0.0-rc3 (7.2.93) in F96-CE_4 as a PET, download link at the following forum post.
viewtopic.php?p=86333#p86333

μακάριοι οἱ δεδιωγμένοι ἕνεκεν δικαιοσύνης, ὅτι αὐτῶν ἐστιν ἡ βασιλεία τῶν οὐρανῶν.

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

Re: QEMU-KVM use

Post by Clarity »

@rockedge @dogcat
Thanks very much for the refresher. Just wanted to check to know which distros have the kernel built-in vs which did not. Your kernel update is not present in older forum distros.

Also, think the command you suggest looks fine.

But the forum PET by @norgo here; "qemu-ready" seems small, rather inclusive and detailed. It goes a step further that if the kernel module is not loaded, it will

  • activate it for the user

  • or alert the user of BIOS/UEFI need to turn on by the user.

AS 'kvm-ready command' has been tested extensively on my old test PCs. Wanted to insure it works with testing new kernels containing the KVM support that members use.

Thanks again.

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

Re: QEMU-KVM use

Post by rockedge »

rockedge has compiled QEMU-8.0.0-rc3 (7.2.93) in F96-CE_4 as a PET.......

Yes and I am using it right now on a F96-CE_4 as host machine running KLV-Airedale-rc15 and KLV-Airedale-rc16

User avatar
norgo
Posts: 252
Joined: Mon Jul 13, 2020 6:39 pm
Location: Germany
Has thanked: 5 times
Been thanked: 93 times
Contact:

Re: QEMU-KVM use

Post by norgo »

qemu-ready ( build script )

Because qemu-ready is using rdmsr ( msr-tools ), it's not possible to create a pet that will work for all CPU architectures, distros and versions.
If you are interested in qemu-ready, you can build the qemu-ready pet from source.
The only thing you have to do is to load the DEVX sfs.
After that run the attached script.
This script will download the msr-tools sources from smokey01.com server and compile the msr-tools.
The rdmsr binary is needed as already mentioned and the only binary which is going into the pet.

Usage at own risk

Attachments
qemu-ready_build.sh.tar
remove tar fake extension
(5.04 KiB) Downloaded 8 times
Post Reply

Return to “KLV-Airedale”