Qemu-kvm not present in software installer and new guy questions  [Solved]

Help for Current Versions of MX
When asking for help, use Quick System Info from MX Tools. It will be properly formatted using the following steps.
1. Click on Quick System Info in MX Tools
2. Right click in your post and paste.
Message
Author
AVCESAR
Posts: 14
Joined: Sun Mar 06, 2022 7:46 am

Qemu-kvm not present in software installer and new guy questions

#1 Post by AVCESAR »

Hi all,

I am new in MXLinux. I just got a new computer that I will use as a VM server. So I tried to get virt-manager to work but there is no qemu connection.
Apparently I have to install qemu-kvm but it's not in the repositories.

I know about this post:
viewtopic.php?p=673067&hilit=qemu+kvm#p673067

But I don't find the packet.
How can I do? Any idea?

Also, is there a server edition of MXLinux?
What is ddm-mx? An nvidia driver manager only? WHat is it's equivalent for the other dirvers? Ryzen, motherboard...

I am on Distro: MX-21_x64 Wildflower October 20 2021

Ty,

xaol
Posts: 311
Joined: Wed Mar 03, 2021 8:30 am

Re: Qemu-kvm not present in software installer and new guy questions

#2 Post by xaol »

it looks like qemu-kvm for debian 11 (which mx 21 is based on) is a virtual package: https://packages.debian.org/bullseye/qemu-kvm

the debian wiki for kvm suggests installing qemu-system (among other packages): https://wiki.debian.org/KVM

it looks like qemu-system should bring in all of the packages (as dependencies) listed as providing qemu-kvm (qemu-system-{arm,ppc,x86}: https://packages.debian.org/bullseye/qemu-system

also the debian wiki page for qemu in case that might be of help: https://wiki.debian.org/QEMU

note: i haven't upgraded to 21 myself so can't confirm the above. i am just sharing what i could find from the sources listed.

AVCESAR
Posts: 14
Joined: Sun Mar 06, 2022 7:46 am

Re: Qemu-kvm not present in software installer and new guy questions

#3 Post by AVCESAR »

I dont find the qemu-kvm in the packets installer. but the sudo apt-get seems to find it.
Why is that? Am I not supposed to find al available packages in the GUI packets installer?

Also, I already used CLI to install it before but my VM was very unstable, so I wonder if the apt-get did not install a qemu-kvm it was not supposed to.

xaol
Posts: 311
Joined: Wed Mar 03, 2021 8:30 am

Re: Qemu-kvm not present in software installer and new guy questions

#4 Post by xaol »

what output do you get for

Code: Select all

apt show qemu-kvm
?

did you install all of the packages recommended in the wiki pages linked above?

AVCESAR
Posts: 14
Joined: Sun Mar 06, 2022 7:46 am

Re: Qemu-kvm not present in software installer and new guy questions

#5 Post by AVCESAR »

I installed it the first time by following this guide: https://computingforgeeks.com/how-to-in ... on-debian/

But then I had the snapshot MXLinux, so I installed the stable version now. I didn't reinstall qemu-kvm in the new MXlinux system.

So I get:

Code: Select all

$ apt show qemu-kvm
Package: qemu-kvm
State: pas un véritable paquet (virtuel)
N: Impossible de choisir une version candidate du paquet « qemu-kvm » qui n'en n'a pas
N: Impossible de choisir les versions du paquet « qemu-kvm » qui n'est qu'un paquet virtuel
N: Aucun paquet n'a été trouvé

AVCESAR
Posts: 14
Joined: Sun Mar 06, 2022 7:46 am

Re: Qemu-kvm not present in software installer and new guy questions

#6 Post by AVCESAR »

After a retry and by noticing the messages it actually says:

Code: Select all

Note : sélection de « qemu-system-x86 » au lieu de « qemu-kvm »
Which basically means it's selecting qemu-system-x86 instead of kvm-qemu.

xaol
Posts: 311
Joined: Wed Mar 03, 2021 8:30 am

Re: Qemu-kvm not present in software installer and new guy questions

#7 Post by xaol »

are your vm's working correctly for you with what you have installed?

AVCESAR
Posts: 14
Joined: Sun Mar 06, 2022 7:46 am

Re: Qemu-kvm not present in software installer and new guy questions

#8 Post by AVCESAR »

Nope, still having problems:

Code: Select all

Unable to connect to libvirt qemu:///system.

Vérifiez que le démon « libvirtd » est en cours d’exécution.

Libvirt URI is: qemu:///system

Traceback (most recent call last):
  File "/usr/share/virt-manager/virtManager/connection.py", line 922, in _do_open
    self._backend.open(cb, data)
  File "/usr/share/virt-manager/virtinst/connection.py", line 153, in open
    conn = libvirt.openAuth(self._open_uri,
  File "/usr/lib/python3/dist-packages/libvirt.py", line 148, in openAuth
    raise libvirtError('virConnectOpenAuth() failed')
libvirt.libvirtError: Failed to connect socket to '/var/run/libvirt/libvirt-sock': Aucun fichier ou dossier de ce type
Waiting for a final stable solution to put the topic as closed and puting my findings here.

xaol
Posts: 311
Joined: Wed Mar 03, 2021 8:30 am

Re: Qemu-kvm not present in software installer and new guy questions

#9 Post by xaol »

can you check the status of the libvirtd service? on sysv i checked all my services with

Code: Select all

service --status-all
i can see libvirt-guests and libvirtd both listed with [+] to the right. the + is an indication of running services according to

Code: Select all

man service
i checked the status of libvirtd with

Code: Select all

service libvirtd status
i used the same for libvirt-guests just in case.

if you are using systemd,

Code: Select all

systemctl status libvirtd
should hopefully work.

User avatar
davidy
Posts: 818
Joined: Sat Jul 03, 2021 1:59 pm

Re: Qemu-kvm not present in software installer and new guy questions

#10 Post by davidy »

Here is a video on installing and getting QEMU up and running:
https://vid.puffyan.us/watch?v=wxxP39cNJOs 13m long
The guy is using arch but with a little savvy shouldn't be too difficult in MX.
He also explains on getting a win10 iso installed which includes the required virtio ones, including network, user, etc..
I'm still waiting on my new minipc as I want to run a win10 iso in qemu on top of AV-Linux.
Search utube for "Ditch Virtualbox, Get QEMU/Virt Manager" on Mental Outlaw's channel.
There are others of course but this one seemed to be quite thorough. Highly recommended.
Sys76 LemurPro-mx-23.4, EliteMinis HM90-mx-21.3, Deskmini UM350-phoenixLite win10, Qnap 12tb nas, Protectli FW4C-opnsense(=゜ω゜)

zero privacy = zero security . All MX'd Up
UAP = up above people

Locked

Return to “MX Help”