Skip to main content
Topic solved
This topic has been marked as solved and requires no further attention.
Topic: [SOLVED] libvirt/virt manager issue (Read 1851 times) previous topic - next topic
0 Members and 2 Guests are viewing this topic.

[SOLVED] libvirt/virt manager issue

edit: Reply #5 has fixed my issue.

I'm able to run virt-manager as non-sudo after installing libvirt-python, but now I'm running into
"Unable to connect to libvirt qemu:///system."   Running virt-manager as sudo returns "ModuleNotFoundError: No module named 'libvirt' "


Hello.  I've been trying for the past week to get my kvm up and running, but I've kept running into the same issue when trying to start up virt-manager
Code: [Select]
Traceback (most recent call last):
  File "/usr/bin/virt-manager", line 6, in <module>
    from virtManager import virtmanager
  File "/usr/share/virt-manager/virtManager/virtmanager.py", line 19, in <module>
    from virtinst import BuildConfig
  File "/usr/share/virt-manager/virtinst/__init__.py", line 43, in <module>
    _set_libvirt_error_handler()
  File "/usr/share/virt-manager/virtinst/__init__.py", line 33, in _set_libvirt_error_handler
    import libvirt

ModuleNotFoundError: No module named 'libvirt'


I've tried a few things such as reinstalling python, libvirt-runit, running
sudo ln -s /etc/runit/sv/libvirtd /run/runit/service
sudo sv up libvirtd
sudo ln -s /etc/runit/sv/virtlogd /run/runit/service
sudo sv up virtlogd

yet to no avail..


 

Re: libvirt/virt manager issue

Reply #1
Have you updated system?
using
Code: [Select]
sudo pacman -Syu
If not , do so
Create problems which don't have solution


Re: libvirt/virt manager issue

Reply #3
Post,

Code: [Select]
$pacman -Ss virt-manager


Re: libvirt/virt manager issue

Reply #5
What works for me:
- enable the omniverse repository in stead of - or at least above - arch's
- run sudo pacman -S virt-manager qemu edk2-ovmf vde2 ebtables dnsmasq bridge-utils openbsd-netcat dmidecode virt-viewer libvirt-<init>
- enable the service for libvirtd
- enable the service for virtlogd
artist



Re: libvirt/virt manager issue

Reply #8
Ok. I've done the steps Artist has recommended and I was able to boot virt-manager error free  8)  Now, I'm trying to install a version of QEMU I have compiled for myself, but I won't bother you gentlemen any further. Thanks for the help!