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
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
----------
Howto:
$ sudo modprobe kvm-intel
$ sudo libvirtd -d
..then start virt-manager
----------
You may need to start dbus first, maybe something like:Code: [Select]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
sudo /usr/local/etc/init.d/dbus start
See if installing dnsmasq.tcz fixes that.Code: [Select]2020-04-07 14:09:23.116+0000: 13809: error : dnsmasqCapsRefreshInternal:736 : Cannot check dnsmasq binary dnsmasq: No such file or directory
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
[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
Could not start virtual network 'default': internal error: Failed to initialize a valid firewall backend
Traceback (most recent call last):
File "/tmp/tcloop/virt-manager/usr/local/share/virt-manager/virtManager/device/netlist.py", line 310, in _check_network_is_running
netobj.start()
File "/tmp/tcloop/virt-manager/usr/local/share/virt-manager/virtManager/object/libvirtobject.py", line 66, in newfn
ret = fn(self, *args, **kwargs)
File "/tmp/tcloop/virt-manager/usr/local/share/virt-manager/virtManager/object/network.py", line 75, in start
self._backend.create()
File "/usr/local/lib/python3.6/site-packages/libvirt.py", line 3073, in create
if ret == -1: raise libvirtError ('virNetworkCreate() failed', net=self)
libvirt.libvirtError: internal error: Failed to initialize a valid firewall backend
Error starting domain: Requested operation is not valid: network 'default' is not active
Traceback (most recent call last):
File "/tmp/tcloop/virt-manager/usr/local/share/virt-manager/virtManager/asyncjob.py", line 75, in cb_wrapper
callback(asyncjob, *args, **kwargs)
File "/tmp/tcloop/virt-manager/usr/local/share/virt-manager/virtManager/asyncjob.py", line 111, in tmpcb
callback(*args, **kwargs)
File "/tmp/tcloop/virt-manager/usr/local/share/virt-manager/virtManager/object/libvirtobject.py", line 66, in newfn
ret = fn(self, *args, **kwargs)
File "/tmp/tcloop/virt-manager/usr/local/share/virt-manager/virtManager/object/domain.py", line 1279, in startup
self._backend.create()
File "/usr/local/lib/python3.6/site-packages/libvirt.py", line 1059, in create
if ret == -1: raise libvirtError ('virDomainCreate() failed', dom=self)
libvirt.libvirtError: Requested operation is not valid: network 'default' is not active
... I don't understand, isn't ebtables a firewall?In the .info file:
filtering tool for bridging firewalls
/usr/local/etc/ethertypes
/usr/local/lib/libebtc.so
/usr/local/lib/libebtc.so.0
/usr/local/lib/libebtc.so.0.0.0
/usr/local/sbin/ebtables
/usr/local/sbin/ebtables-restore
/usr/local/sbin/ebtables-save
/usr/local/sbin/ebtablesd
/usr/local/sbin/ebtablesu
Iptables comes with a basic firewall, but I don't know if that helps you.
Error starting network 'default': internal error: Failed to initialize a valid firewall backend
Traceback (most recent call last):
File "/tmp/tcloop/virt-manager/usr/local/share/virt-manager/virtManager/asyncjob.py", line 75, in cb_wrapper
callback(asyncjob, *args, **kwargs)
File "/tmp/tcloop/virt-manager/usr/local/share/virt-manager/virtManager/asyncjob.py", line 111, in tmpcb
callback(*args, **kwargs)
File "/tmp/tcloop/virt-manager/usr/local/share/virt-manager/virtManager/object/libvirtobject.py", line 66, in newfn
ret = fn(self, *args, **kwargs)
File "/tmp/tcloop/virt-manager/usr/local/share/virt-manager/virtManager/object/network.py", line 75, in start
self._backend.create()
File "/usr/local/lib/python3.6/site-packages/libvirt.py", line 3073, in create
if ret == -1: raise libvirtError ('virNetworkCreate() failed', net=self)
libvirt.libvirtError: internal error: Failed to initialize a valid firewall backend
... Moreover, there's another thing I don't understand: after installing iptables, I noticed it hasn't anything to "run" the firewall: no servers (it doesn't exist, e.g., an "iptablesd"), no command line flags ("iptables -d" or such), no kernel modules (I didn't find any "iptables.ko" or similar). So my question is: how can it work if there isn't an "active" component?
Comments: Iptables is the userspace tool to control
the linux kernel firewall. A simple script
included, suitable for home users.
-
From a terminal:
sudo /usr/local/sbin/basic-firewall
-
From bootlocal.sh (to start on every boot):
/usr/local/sbin/basic-firewall noprompt
No, in fact I tried installing iptables, but nothing changes:In TCL, kernel functionality required for firewall is in the ipv6-netfilter-KERNEL.tcz extension (which is a dependency of iptables.tcz). It should have been automatically installed when you installed iptables.tcz, but please check to make sure. When you run this command, does it say the extension is already installed?Code: [Select]Error starting network 'default': internal error: Failed to initialize a valid firewall backend
$ tce-load -wi ipv6-netfilter-KERNEL
Moreover, there's another thing I don't understand: after installing iptables, I noticed it hasn't anything to "run" the firewall: no servers (it doesn't exist, e.g., an "iptablesd"), no command line flags ("iptables -d" or such), no kernel modules (I didn't find any "iptables.ko" or similar). So my question is: how can it work if there isn't an "active" component?If iptables.tcz and ipv6-netfilter-KERNEL.tcz extensions are installed, then your system has the capability of creating a firewall. However, no firewall is created until you configure one (either manually or using some helper script/application).
$ sudo iptables -nvL
Chain INPUT (policy ACCEPT 12688 packets, 10M bytes)
pkts bytes target prot opt in out source destination
Chain FORWARD (policy ACCEPT 0 packets, 0 bytes)
pkts bytes target prot opt in out source destination
Chain OUTPUT (policy ACCEPT 9551 packets, 7421K bytes)
pkts bytes target prot opt in out source destination
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.
gnome-boxes seems much easier to use to me...
I have not found the need to load polkit, gtksourceview or libsoup - virt-manager does however need gtk-vnc-gir and
spice-gtk-gir to connect to a running vm, although it still gives an error message.
Hi core.dump
From:
http://tinycorelinux.net/11.x/x86/tcz/iptables.tcz.info
It appears the x86 version includes includes a basic firewall script not included in x86_64:Code: [Select]Comments: Iptables is the userspace tool to control
the linux kernel firewall. A simple script
included, suitable for home users.
-
From a terminal:
sudo /usr/local/sbin/basic-firewall
-
From bootlocal.sh (to start on every boot):
/usr/local/sbin/basic-firewall noprompt
...virt-manager does however need gtk-vnc-gir and spice-gtk-gir to connect to a running vm, although it still gives an error message.
Maybe you could try installing filewalld with pip3.6 first to see if it’s really needed?Don't type so fast. You misspelled firewalld. :o
Maybe you could try installing filewalld with pip3.6 first to see if it’s really needed?
tc@box:~$ pip3.6 search firewall
dns-firewall (0.0.4) - Local DNS Firewall
cloudshell-firewall-core (1.0.8) - QualiSystems Firewall Python package
cloudshell-firewall-a10 (1.0.1) - QualiSystems firewall A10 specific package
cloudshell-firewall-fortinet (1.1.1) - QualiSystems firewall FortiNet specific package
firewall (0.2.0) - Punch a hole into an AWS EC2 security group temporarily
cloudshell-firewall-panos (1.0.0) - QualiSystems firewall Palo Alto PanOS specific Package
cloudshell-shell-firewall-standard (3.0.2) - QualiSystems Shells Firewall Standard Package
cloudshell-firewall-juniper-junos (1.0.3) - QualiSystems firewall Juniper JunOS specific Package
cloudshell-firewall-cisco-asa (3.0.5) - QualiSystems firewall Cisco ASA specific Package
cloudshell-firewall (3.0.3) - QualiSystems Python package
tornado-http-firewall (0.0.3) - Validation and Hosting daemon for scatter.online.
pyfluffy (0.0.12) - Fluffy - A Firewall as a Service
firelet (0.5.0a3) - Distributed firewall management
trackerfw (0.0.4) - TrackerFw - firewall for trackers
fwmacro (0.9.6) - Firewall macro compiler
orangengine (0.0.1) - Firewall Policy Automation Engine
django-firefence (0.1.0) - A firewall for your Django views.
fwunit (1.2.0) - Unit tests for firewall rules
nagato (0.6.0) - Bypass korean firewall(warning.or.kr)
hotcidr (0.1.0) - Firewall rule management and automation tools
teamvault (0.8.4) - Keep your passwords behind the firewall
djaodjin-rules (0.2.4) - HTTP proxy firewall Django App
iptdump (1b1.3) - describes firewall rules and dump it out
mcsf (0.0.6) - Port modification wrapper for ConfigServer Security&Firewall
mignis (0.9.5.post1) - Mignis is a semantic based tool for firewall configuration
DAXFi (1.1) - configure different kinds of firewalls in a consistent way.
zmqfirewall (0.1dev) - Object-based ZeroMQ message repeater/firewall
servicewall (0.4.2) - the desktop firewall that adapts to different network connections
wafw00f (2.1.0) - The Web Application Firewall Detection and Fingerprinting Toolkit.
waf-brain (1.0.0) - WAF-brain: the clever and efficient Firewall for the Web
shadowd (2.0.0) - Python connector for the Shadow Daemon web application firewall
rfw (0.2.2) - Remote firewall as a web service. REST API for iptables.
pyrewall (0.9.1.post1) - A Python tool / service for managing iptables firewalls with ease
MinistryOfPackages (0.9.5) - A minimal PyPI implementation meant for use behind a firewall.
saruman (0.3.0) - A firewall that leverage AMQP workqueue ! Build by iresam for iresam !
find2deny (0.2.10) - find Bot IPs in log file to firewall them
behvpn (2.3.2) - A fast tunnel proxy that help you get through firewalls
nbsocks (2.9.1) - A fast tunnel proxy that help you get through firewalls
shadowsocks-cui (3.0.0) - A fast tunnel proxy that help you get through firewalls
fwgen (0.19.0) - A simple management framework for ip(6)tables based firewalls
relay (0.0.8) - Meta-magical SSH tunnels for remote developers behind firewalls.
snmpfwd (0.4.4) - SNMP Proxy Forwarder can act as an application-level firewall
shadowsocks (2.8.2) - A fast tunnel proxy that help you get through firewalls
shadowsocks-valoroso (3.0.7) - A fast tunnel proxy that help you get through firewalls
wlister (0.1.0) - Web application firewall designed to whitelist and/or blacklist HTTP requests.
myremotedump (0.1.0) - Dumps a firewalled MySQL database via a ssh tunnel to the remote system
acl-stats (0.1.3) - Quickly gather access-lists stats from Cisco ASA Firewalls
firval (1.2.1) - a netfilter firewall rules generator designed designed to be easy to read, write and maintain
enuma-elish (0.0.4) - A fast tunnel proxy extension from ss ,which help you get through firewalls
blocklistsaggregator (0.5.1) - A Python tool that downloads IP block lists from various sources and builds configurations for network
equipments and firewalls.
check_paloalto (0.3.2) - check_paloalto is a Nagios/Icinga plugin for Palo Alto Next Generation Firewalls. It is written in Python and
based on the PA REST API.
openSeSSHIAMe (0.1.0) - openSeSSHIAMe allows SSH access to an instance behind the great AWS firewall (security group for the instance)
for authorized IAM users from their current location.
shadowsocks-py (2.9.1) - A fast tunnel proxy that help you get through firewalls, the original pypi source is not maintained since
version 2.8.2, this is a newly maintained pypi source by SilverLining.
portube (0.0.1) - Software-implemented port forwarding, transparent proxy, which can bypass firewalls in specific cases where the
host restricts the inbound rules but does not restrict the outbound rules
libvirt.libvirtError: Cannot check dnsmasq binary dnsmasq: No such file or directory