Feature proposal: QEMU for testing if ISO work

Asked by Matus

Hi there. I have a feature proposal: QEMU for testing if the OS work. I want this feature here because I don’t want to try my custom Ubuntu ISO in VMware workstation player (because gnome boxes and virtual manager had a bad interface. Can you add it to the cubic, because I don’t want to use VMware player to test out, if the OS really work

Question information

Language:
English Edit question
Status:
Answered
For:
Cubic Edit question
Assignee:
No assignee Edit question
Last query:
Last reply:
Revision history for this message
Cubic PPA (cubic-wizard) said :
#1

How do you envision this working?

A "Test" button on the "Finish" page (the last page) that opens a window with the customized OS running in QEMU?

Or did you have a different idea?

Revision history for this message
Matus (ytgroovygorilla21) said (last edit ):
#2

Yes. That ,,Test" button will be super. And before that QEMU VM starts, they must specify, how much RAM and CPU cores and threads can that QEMU VM use. I want this feature because I’m working on the MatuusOS (you can see my MatuusOS PPA on my launchpad profile). And sometimes, MatuusOS won’t work. So this feature can test if the custom OS boots, installs and if it works.

Revision history for this message
Cubic PPA (cubic-wizard) said :
#3

I'll check out your project.

The test button will probably need to navigate to another page where the user can select the VM parameters, and there would need to be "Launch" button to start the VM. We will also need to save the user's preferred VM parameters, so they don't need to be readjusted each time.

I think this would be a nice feature to add to Cubic.

I probably won't be able to implement it quickly, but I will put this on my to-do list.

Revision history for this message
Matus (ytgroovygorilla21) said :
#4

Note that the archiso can run QEMU with run_archiso so why cannot Cubic launch QEMU with the customized iso
today ?

Revision history for this message
Cubic PPA (cubic-wizard) said :
#5
Revision history for this message
Cubic PPA (cubic-wizard) said :
#6

Matus,

What are the arguments you typically use when testing with QEMU?

You already mentioned...

- How much RAM
- CPU cores
- Threads

Could you please share the QEMU command you usually use?

Revision history for this message
Cubic PPA (cubic-wizard) said :
#7

See Bug #1944062, Add capability to test generated ISO.

Revision history for this message
Cubic PPA (cubic-wizard) said :
#8

I've added this feature in Cubic version 2021.09-56.

Let me know if it works on your flavor and version of Ubuntu.

Revision history for this message
Matus (ytgroovygorilla21) said :
#9

BTW, I use this command to test OSes (you will need to add a parameter to the virtual HDD):
qemu-system-x86_64
        -enable-kvm
        -m 2G
        -machine q35,accel=kvm
         -smp 4,cores=2
         -cpu Penryn,vendor=GenuineIntel,kvm=on,+sse3,+sse4.2,+aes,+xsave,+avx,+xsaveopt,+xsavec,+xgetbv1,+avx2,+bmi2,+smep,+bmi1,+fma,+movbe,+invtsc debian-testing-amd64-DVD-1.iso

Can you help with this problem?

Provide an answer of your own, or ask Matus for more information if necessary.

To post a message you must log in.