You are not logged in.

#1 2021-03-18 13:01:16

Raker1337
Member
Registered: 2021-03-18
Posts: 2

I can't make QEMU/KVM work

MxSaWaDE.png
i searched a bit online but i couldn't find anything

systemctl status libvirtd.service
● libvirtd.service - Virtualization daemon
     Loaded: loaded (/usr/lib/systemd/system/libvirtd.service; enabled; vendor preset: disabled)
     Active: active (running) since Thu 2021-03-18 13:47:47 CET; 1min 15s ago
TriggeredBy: ● libvirtd-admin.socket
             ● libvirtd-ro.socket
             ● libvirtd.socket
       Docs: man:libvirtd(8)
             https://libvirt.org
   Main PID: 8107 (libvirtd)
      Tasks: 19 (limit: 32768)
     Memory: 13.7M
     CGroup: /system.slice/libvirtd.service
             └─8107 /usr/bin/libvirtd --timeout 120

Mar 18 13:47:47 peep systemd[1]: Started Virtualization daemon.
Mar 18 13:47:48 peep libvirtd[8107]: libvirt version: 7.0.0
Mar 18 13:47:48 peep libvirtd[8107]: hostname: peep
Mar 18 13:47:48 peep libvirtd[8107]: Cannot find 'dmidecode' in path: No such file or directory
Mar 18 13:47:48 peep libvirtd[8107]: Obsolete nvram variable is set while firmware metadata files found. Note that the nvram config file variable is going to be ignored.
Mar 18 13:47:48 peep libvirtd[8107]: Cannot find 'dmidecode' in path: No such file or directory
Mar 18 13:48:08 peep libvirtd[8107]: authentication unavailable: no polkit agent available to authenticate action 'org.libvirt.unix.manage'
Mar 18 13:48:08 peep libvirtd[8107]: End of file while reading data: Input/output error
~
~

Offline

#2 2021-03-18 13:29:01

Slithery
Administrator
From: Norfolk, UK
Registered: 2013-12-01
Posts: 5,776

Re: I can't make QEMU/KVM work

Raker1337 wrote:
Mar 18 13:48:08 peep libvirtd[8107]: authentication unavailable: no polkit agent available to authenticate action 'org.libvirt.unix.manage'

Try installing and configuring a polkit agent...
https://wiki.archlinux.org/index.php/Polkit

Have you gone through all of the configuration steps for libvirt?
https://wiki.archlinux.org/index.php/Libvirt


No, it didn't "fix" anything. It just shifted the brokeness one space to the right. - jasonwryan
Closing -- for deletion; Banning -- for muppetry. - jasonwryan

aur - dotfiles

Offline

#3 2021-03-18 17:17:37

Raker1337
Member
Registered: 2021-03-18
Posts: 2

Re: I can't make QEMU/KVM work

Slithery wrote:
Raker1337 wrote:
Mar 18 13:48:08 peep libvirtd[8107]: authentication unavailable: no polkit agent available to authenticate action 'org.libvirt.unix.manage'

Try installing and configuring a polkit agent...
https://wiki.archlinux.org/index.php/Polkit

Have you gone through all of the configuration steps for libvirt?
https://wiki.archlinux.org/index.php/Libvirt

i haven't configured polkit neither libvirt but i don't know how to do none of those 2

Offline

#4 2021-03-18 17:49:02

loqs
Member
Registered: 2014-03-06
Posts: 18,786

Re: I can't make QEMU/KVM work

Raker1337 wrote:
Slithery wrote:

Have you gone through all of the configuration steps for libvirt?
https://wiki.archlinux.org/index.php/Libvirt

i haven't configured polkit neither libvirt but i don't know how to do none of those 2

What from the libvirt wiki page have you attempted?  What failed?  What do you not understand?

Last edited by loqs (2021-03-18 17:52:34)

Offline

#5 2023-08-07 01:13:44

joshlangley
Member
Registered: 2022-09-20
Posts: 3

Re: I can't make QEMU/KVM work

After having encountered this issue for years, the solution just finally occurred to me! Hopefully this will help people in the future.

The clue is in the line:

Cannot find 'dmidecode' in path: No such file or directory

This seems awfully similar to when the shell is trying to find a file somewhere and can't find it. There's also a shell/environment variable called `PATH`, which is a colon-separated list of directories in which command executables are found. What had never occurred to me is that this message isn't just saying "I couldn't find some config file `dmidecode` in some path." Instead it's saying "I couldn't find the executable `dmidecode` in `$PATH`." I think what threw me off is that these "program not found" error messages typically use all caps on the word PATH to indicate it's an environment variable, and are often a little more helpfully worded in general.

The solution turned out to be as simple as installing the `dmidecode` package and restarting the service. Now I get the beautiful green bubbles in `systemctl status libvirtd.service virtlogd.service`! I'm not sure why `dmidecode` isn't marked as a dependency of `libvirt` since it's required for operation...

sudo pacman -Syu dmidecode # Install the dmidecode package
sudo systemctl restart libvirtd.service virtlogd.service # Start/restart the libvirt service (and it's logging helper)

Last edited by joshlangley (2023-08-07 01:14:02)

Offline

#6 2023-08-07 11:35:47

Lone_Wolf
Administrator
From: Netherlands, Europe
Registered: 2005-10-04
Posts: 14,779

Re: I can't make QEMU/KVM work

joshlangley wrote:

I'm not sure why `dmidecode` isn't marked as a dependency of `libvirt` since it's required for operation...

pacman -Qi libvirt  , check optional dependencies.


Disliking systemd intensely, but not satisfied with alternatives so focusing on taming systemd.

clean chroot building not flexible enough ?
Try clean chroot manager by graysky

Offline

#7 2023-08-07 11:38:07

WorMzy
Administrator
From: Scotland
Registered: 2010-06-16
Posts: 13,319
Website

Re: I can't make QEMU/KVM work

Thanks for sharing. As this is an old topic, and the OP hasn't been back since 2021, I'm going to close it now.

Closing.


Sakura:-
Mobo: MSI MAG X570S TORPEDO MAX // Processor: AMD Ryzen 9 5950X @4.9GHz // GFX: AMD Radeon RX 5700 XT // RAM: 32GB (4x 8GB) Corsair DDR4 (@ 3000MHz) // Storage: 1x 3TB HDD, 6x 1TB SSD, 2x 120GB SSD, 1x 275GB M2 SSD

Making lemonade from lemons since 2015.

Offline

Board footer

Powered by FluxBB