Hi all,
thanks for your suggestions, I added to /opt/bootlocal.sh the commands to start libvirtd and dbus, and now virt-manager seems to open correctly. Starting virt-manager as a regular user returns this error:
Unable to connect to libvirt qemu:///system.
error from service: CheckAuthorization: The name org.freedesktop.PolicyKit1 was not provided by any .service files
Libvirt URI is: qemu:///system
Traceback (most recent call last):
File "/tmp/tcloop/virt-manager/usr/local/share/virt-manager/virtManager/connection.py", line 956, in _do_open
self._backend.open(connectauth.creds_dialog, self)
File "/tmp/tcloop/virt-manager/usr/local/share/virt-manager/virtinst/connection.py", line 174, in open
open_flags)
File "/usr/local/lib/python3.6/site-packages/libvirt.py", line 104, in openAuth
if ret is None:raise libvirtError('virConnectOpenAuth() failed')
libvirt.libvirtError: error from service: CheckAuthorization: The name org.freedesktop.PolicyKit1 was not provided by any .service files
This doesn't happen if I start virt-manager as root. The solution was to install a package called polkit.tcz providing some dbus-related stuff, this enables normal users to run virt-manager.
Now virt-manager starts and connects to the qemu backend correctly, but when I try to create a new virtual machine (either by pressing the toolbar button or thru the File menu) nothing happens. The problem is I don't get any errors. Do I have to install some other components?
EDIT: running virt-manager --debug allows to redirect errors and warning to stdout, this is what I obtained:
[Tue, 07 Apr 2020 16:54:38 virt-manager 9777] DEBUG (cli:200) Uncaught exception:
Traceback (most recent call last):
File "/tmp/tcloop/virt-manager/usr/local/share/virt-manager/virtManager/xmleditor.py", line 11, in <module>
gi.require_version("GtkSource", "4")
File "/usr/local/lib/python3.6/site-packages/gi/__init__.py", line 129, in require_version
raise ValueError('Namespace %s not available' % namespace)
ValueError: Namespace GtkSource not available
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "/tmp/tcloop/virt-manager/usr/local/share/virt-manager/virtManager/manager.py", line 456, in new_vm
from .createvm import vmmCreateVM
File "/tmp/tcloop/virt-manager/usr/local/share/virt-manager/virtManager/createvm.py", line 31, in <module>
from .storagebrowse import vmmStorageBrowser
File "/tmp/tcloop/virt-manager/usr/local/share/virt-manager/virtManager/storagebrowse.py", line 11, in <module>
from .hoststorage import vmmHostStorage
File "/tmp/tcloop/virt-manager/usr/local/share/virt-manager/virtManager/hoststorage.py", line 16, in <module>
from .createpool import vmmCreatePool
File "/tmp/tcloop/virt-manager/usr/local/share/virt-manager/virtManager/createpool.py", line 19, in <module>
from .xmleditor import vmmXMLEditor
File "/tmp/tcloop/virt-manager/usr/local/share/virt-manager/virtManager/xmleditor.py", line 14, in <module>
gi.require_version("GtkSource", "3.0")
File "/usr/local/lib/python3.6/site-packages/gi/__init__.py", line 129, in require_version
raise ValueError('Namespace %s not available' % namespace)
ValueError: Namespace GtkSource not available
I will do a search to understand what it means...