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
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..
Have you updated system?
using
sudo pacman -Syu
If not , do so
I have, and I'm still getting the same error :'(
Post,
$pacman -Ss virt-manager
What works for me:
- enable the omniverse repository (https://wiki.artixlinux.org/Main/Repositories#Omniverse) 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
How did you install virt-manager then?
Try to follow
@Artist's suggest above and install from omniverse repo.
Cloned it and ran setup.py
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!