The officially official Devuan Forum!

You are not logged in.

#1 2025-11-01 21:20:35

zapper
Member
Registered: 2017-05-29
Posts: 1,149  

Qemu question

How can I change the below to make it faster?

It usually takes like 30+ seconds to boot up my system in a vm when I type in password. How can I make it closer to the speed of my native OS?

The below?

"qemu-img create -f qcow2 Unknown.qcow2 60G"

#The above is for making the image

qemu-system-x86_64 -m 4096 -cdrom Unknown.iso -boot d Unknown.qcow2 --enable-kvm 

#the above is for installing the image on the qcow2 built

qemu-system-x86_64 --enable-kvm Unknown.qcow2 -cpu kvm64,+nx -m 4096 -device AC97

#the above is for loading the installed qcow2 image built anytime

 qemu-system-x86_64 --enable-kvm Unknown.qcow2 -cpu kvm64,+nx -m 4096 -device AC97 -hdb /dev/sdb 

This one is for loading usb drives in the qcow2.

The above is how I tend to build my images, run them, etc...

I read that cpu/ smp can help, but I am curious how much.

EDIT: between apostrophes is the code.

 qemu-system-x86_64 --enable-kvm Unknown.qcow2 -cpu kvm64,+nx -m 4096 -device AC97 

Does the above help?

Last edited by zapper (Yesterday 19:31:15)


Freedom is never more than one generation away from extinction. Feelings are not facts
If you wish to be humbled, try to exalt yourself long term  If you wish to be exalted, try to humble yourself long term
Favourite operating systems: Hyperbola Devuan OpenBSD
Peace Be With us All!

Offline

#2 2025-11-01 22:36:46

ralph.ronnquist
Administrator
From: Battery Point, Tasmania, AUS
Registered: 2016-11-30
Posts: 1,497  

Re: Qemu question

if you were to use "code" tags around code, then where would they be?
(You should be able to edit your post if you would want to).

Offline

#3 2025-11-01 23:31:33

zapper
Member
Registered: 2017-05-29
Posts: 1,149  

Re: Qemu question

@ralph its between apostrophes now.

I tried using -smp 4 instead of kvm,+nx

And the rest the same and that helped, but I wonder if it can be better than this.


Freedom is never more than one generation away from extinction. Feelings are not facts
If you wish to be humbled, try to exalt yourself long term  If you wish to be exalted, try to humble yourself long term
Favourite operating systems: Hyperbola Devuan OpenBSD
Peace Be With us All!

Offline

#4 Yesterday 00:17:57

ralph.ronnquist
Administrator
From: Battery Point, Tasmania, AUS
Registered: 2016-11-30
Posts: 1,497  

Re: Qemu question

It's not that hard:

* start with an opening square bracket, the word code, a closing square bracket

* end with an opening square bracket, a slash, the word code, a closing square bracket

Or maybe you want it to be a bit peculiar?

Offline

#5 Yesterday 00:29:45

golinux
Administrator
Registered: 2016-11-25
Posts: 3,580  

Re: Qemu question

Or click on the [ code ] button in the list above the input window. Without the extra spaces, of course. They are needed here to make the function visible in text mode.

Offline

#6 Yesterday 01:35:18

HardSun
Member
Registered: 2025-07-29
Posts: 14  

Re: Qemu question

Might be the OS you are emulating.
Have a look at the gentoo wiki for help.
https://wiki.gentoo.org/wiki/QEMU/Options

Offline

#7 Yesterday 13:26:10

pcalvert
Member
Registered: 2017-05-15
Posts: 262  

Re: Qemu question

The poor performance of QEMU is why I switched to VirtualBox years ago, despite all the criticism of VirtualBox that I came across. Even though people were claiming that QEMU is faster than VirtualBox, in my experience it was the exact opposite.

I started using QEMU again about three years ago. Its performance still seems a bit slow, but it's acceptable for the Linux guest VMs that I've used it for. I wish I knew how to tweak it for better performance, though.


Freespoke is a new search engine that respects user privacy and does not engage in censorship.
Another one is called Luxxle.

Offline

#8 Yesterday 16:41:48

pcalvert
Member
Registered: 2017-05-15
Posts: 262  

Re: Qemu question

Depending on what you're doing, you may want to consider using Distrobox.

Distrobox
https://distrobox.it/

See also:

Distrobox Secure
https://github.com/club-mate/distrobox-secure


Freespoke is a new search engine that respects user privacy and does not engage in censorship.
Another one is called Luxxle.

Offline

#9 Yesterday 19:26:25

zapper
Member
Registered: 2017-05-29
Posts: 1,149  

Re: Qemu question

@pcalvert hmm...  perhaps... although I definitely saw a big improvement with changing kvm64,nx to max -smp 4.

The speed more than doubled when I did that at least.

As for virtualbox, I don't trust that software at all.

Virt-manager is closer to trustworthy, but meh...

@golinux I added the brackets

Last edited by zapper (Yesterday 19:31:39)


Freedom is never more than one generation away from extinction. Feelings are not facts
If you wish to be humbled, try to exalt yourself long term  If you wish to be exalted, try to humble yourself long term
Favourite operating systems: Hyperbola Devuan OpenBSD
Peace Be With us All!

Offline

Board footer