Tiny Core Extensions > TCE Corepure64

virt-manager error on startup

(1/6) > >>

core.dump:
I tried the recently added virt-manager on a fresh TC installation.
When I try to start virt-manager for the first time, I get this error:


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

internal error: Unable to get DBus system bus connection: Failed to connect to socket /var/run/dbus/system_bus_socket: No such file or directory

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: internal error: Unable to get DBus system bus connection: Failed to connect to socket /var/run/dbus/system_bus_socket: No such file or directory
--- End code ---

If I try to start libvirtd from shell, I get:


--- Code: ---tc@box:~$ sudo libvirtd
2020-04-07 14:09:23.116+0000: 13809: info : libvirt version: 1.3.5
2020-04-07 14:09:23.116+0000: 13809: info : hostname: box
2020-04-07 14:09:23.116+0000: 13809: error : dnsmasqCapsRefreshInternal:736 : Cannot check dnsmasq binary dnsmasq: No such file or directory
2020-04-07 14:09:23.119+0000: 13809: error : virDBusGetSystemBus:107 : internal error: Unable to get DBus system bus connection: Failed to connect to socket /var/run/dbus/system_bus_socket: No such file or directory
2020-04-07 14:09:23.119+0000: 13809: warning : networkStateInitialize:698 : DBus not available, disabling firewalld support in bridge_network_driver: internal error: Unable to get DBus system bus connection: Failed to connect to socket /var/run/dbus/system_bus_socket: No such file or directory
2020-04-07 14:09:24.047+0000: 13809: error : virFirewallValidateBackend:191 : direct firewall backend requested, but /sbin/iptables is not available: No such file or directory
2020-04-07 14:09:24.047+0000: 13809: error : virFirewallApply:938 : internal error: Failed to initialize a valid firewall backend
2020-04-07 14:09:24.053+0000: 13809: error : virSysinfoRead:1020 : internal error: Failed to find path for dmidecode binary
2020-04-07 14:09:24.096+0000: 13809: error : virNodeSuspendSupportsTarget:331 : internal error: Cannot probe for supported suspend types
2020-04-07 14:09:24.098+0000: 13809: warning : virQEMUCapsInit:1085 : Failed to get host power management capabilities
2020-04-07 14:09:24.606+0000: 13809: error : virSysinfoRead:1020 : internal error: Failed to find path for dmidecode binary
2020-04-07 14:09:24.606+0000: 13809: error : virExec:490 : Cannot find 'ip' in path: No such file or directory
2020-04-07 14:09:24.608+0000: 13809: error : virNodeSuspendSupportsTarget:331 : internal error: Cannot probe for supported suspend types
2020-04-07 14:09:24.608+0000: 13809: warning : virLXCDriverCapsInit:88 : Failed to get host power management capabilities
2020-04-07 14:09:24.610+0000: 13809: error : virNodeSuspendSupportsTarget:331 : internal error: Cannot probe for supported suspend types
2020-04-07 14:09:24.610+0000: 13809: warning : umlCapsInit:74 : Failed to get host power management capabilities
2020-04-07 14:09:24.622+0000: 13809: error : virNetDevBridgeCreateWithIoctl:413 : Unable to create bridge virbr0: Package not installed
2020-04-07 14:09:41.319+0000: 13800: error : virDBusGetSystemBus:107 : internal error: Unable to get DBus system bus connection: Failed to connect to socket /var/run/dbus/system_bus_socket: No such file or directory
2020-04-07 14:09:41.324+0000: 13792: error : virNetSocketReadWire:1625 : End of file while reading data: Input/output error
--- End code ---

What is missing???

Rich:
Hi core.dump
The  .info  file states:

--- Quote ---                ----------
                Howto:
                $ sudo modprobe kvm-intel
                $ sudo libvirtd -d
                ..then start virt-manager
                ----------
--- End quote ---


--- Quote from: core.dump on April 07, 2020, 08:27:33 AM ---
--- Code: ---Unable to connect to libvirt qemu:///system.

internal error: Unable to get DBus system bus connection: Failed to connect to socket /var/run/dbus/system_bus_socket: No such file or directory
--- End code ---

--- End quote ---
You may need to start  dbus  first, maybe something like:

--- Code: ---sudo /usr/local/etc/init.d/dbus start
--- End code ---


--- Quote ---
--- Code: ---2020-04-07 14:09:23.116+0000: 13809: error : dnsmasqCapsRefreshInternal:736 : Cannot check dnsmasq binary dnsmasq: No such file or directory
--- End code ---

--- End quote ---
See if installing  dnsmasq.tcz  fixes that.

Juanito:
It works for me using gnome-session - maybe it needs to be started with dbus (I can check tomorrow)?

core.dump:
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:


--- Code: ---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
--- End code ---

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:


--- Code: ---[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
--- End code ---

I will do a search to understand what it means...

core.dump:
It looks like I found a solution. These packages must be installed in order to get a correctly running virt-manager:

virt-manager.tcz
polkit.tcz
gtksourceview.tcz
gtksourceview-gir.tcz
libsoup.tcz

Probably they should be considered as dependencies since they're mandatory to run virt-manager without errors.

Navigation

[0] Message Index

[#] Next page

Go to full version