Packages

  • Status Closed
  • Percent Complete
    100%
  • Task Type Bug Report
  • Category Stable
  • Assigned To
    Emulatorman
  • Operating System Hyperbola GNU/Linux-libre
  • Severity Critical
  • Priority Medium
  • Reported Version Milky Way v0.3
  • Due in Version Starfix
  • Due Date Undecided
  • Votes
  • Private
Attached to Project: Packages
Opened by fablamar78 - 25/09/2019
Last edited by Emulatorman - 06/10/2019

FS#1421 - [virt-manager] Failed to initialize a valid firewall backend

[virt-manager] Failed to initialize a valid firewall backend

I cannot start any virtual machine with current virt-manager.
The error message is the following :

Failed to initialize a valid firewall backend

My username is in “kvm” group.

The only modification to the libvirt config files I made are in /etc/libvirt/qemu.conf

[...]
# Some examples of valid values are:
#
#       user = "qemu"   # A user named "qemu"
#       user = "+0"     # Super user (uid=0)
#       user = "100"    # A user named "100" or a user with uid=100
# 
#user = "root"
user = "david"
[...]

The libvirtd service is enabled (and start without error)
Also, the optional dependencies are correctly installed :

ebtables: required for default NAT networking [installed]
dnsmasq: required for default NAT/DHCP for guests [installed]
bridge-utils: for bridged networking [installed]

This was working fine previously (with 0.2.9) so I don’t know why this isn’t working anymore. As said previously, my config hasn’t changed.

Closed by  Emulatorman
06.10.2019 00:17
Reason for closing:  Fixed
[...]
# Some examples of valid values are:
#
#       user = "qemu"   # A user named "qemu"
#       user = "+0"     # Super user (uid=0)
#       user = "100"    # A user named "100" or a user with uid=100
# 
#user = "root"
user = "david"
[...]
ebtables: required for default NAT networking [installed]
dnsmasq: required for default NAT/DHCP for guests [installed]
bridge-utils: for bridged networking [installed]

I still cannot start any virtual machine with virt-manager after the ebtables update. Now it fails with this error :

“Cannot check dnsmasq binary /usr/bin/dnsmasq: No such file or directory”

dnsmasq is installed on my machine but the install path is not correct

To add more information, it is related to network only because if I remove the network on my VM then the VM starts fine.
I guess after dnsmasq update/rebuild, it should be good, I hope.

Admin
I guess after dnsmasq update/rebuild, it should be good, I hope.

dnsmasq has been adapted to be FHS compliant some time ago:

$ pacman -Fl dnsmasq
dnsmasq etc/
dnsmasq etc/dnsmasq.conf
dnsmasq etc/init.d/
dnsmasq etc/init.d/dnsmasq
dnsmasq usr/
dnsmasq usr/sbin/
dnsmasq usr/sbin/dnsmasq
dnsmasq usr/share/
dnsmasq usr/share/dbus-1/
dnsmasq usr/share/dbus-1/system.d/
dnsmasq usr/share/dbus-1/system.d/dnsmasq.conf
dnsmasq usr/share/dnsmasq/
dnsmasq usr/share/dnsmasq/trust-anchors.conf
dnsmasq usr/share/licenses/
dnsmasq usr/share/licenses/dnsmasq/
dnsmasq usr/share/licenses/dnsmasq/COPYING
dnsmasq usr/share/locale/
dnsmasq usr/share/locale/de/
dnsmasq usr/share/locale/de/LC_MESSAGES/
dnsmasq usr/share/locale/de/LC_MESSAGES/dnsmasq.mo
dnsmasq usr/share/locale/es/
dnsmasq usr/share/locale/es/LC_MESSAGES/
dnsmasq usr/share/locale/es/LC_MESSAGES/dnsmasq.mo
dnsmasq usr/share/locale/fi/
dnsmasq usr/share/locale/fi/LC_MESSAGES/
dnsmasq usr/share/locale/fi/LC_MESSAGES/dnsmasq.mo
dnsmasq usr/share/locale/fr/
dnsmasq usr/share/locale/fr/LC_MESSAGES/
dnsmasq usr/share/locale/fr/LC_MESSAGES/dnsmasq.mo
dnsmasq usr/share/locale/id/
dnsmasq usr/share/locale/id/LC_MESSAGES/
dnsmasq usr/share/locale/id/LC_MESSAGES/dnsmasq.mo
dnsmasq usr/share/locale/it/
dnsmasq usr/share/locale/it/LC_MESSAGES/
dnsmasq usr/share/locale/it/LC_MESSAGES/dnsmasq.mo
dnsmasq usr/share/locale/no/
dnsmasq usr/share/locale/no/LC_MESSAGES/
dnsmasq usr/share/locale/no/LC_MESSAGES/dnsmasq.mo
dnsmasq usr/share/locale/pl/
dnsmasq usr/share/locale/pl/LC_MESSAGES/
dnsmasq usr/share/locale/pl/LC_MESSAGES/dnsmasq.mo
dnsmasq usr/share/locale/pt_BR/ 
dnsmasq usr/share/locale/pt_BR/LC_MESSAGES/
dnsmasq usr/share/locale/pt_BR/LC_MESSAGES/dnsmasq.mo
dnsmasq usr/share/locale/ro/
dnsmasq usr/share/locale/ro/LC_MESSAGES/
dnsmasq usr/share/locale/ro/LC_MESSAGES/dnsmasq.mo
dnsmasq usr/share/man/
dnsmasq usr/share/man/es/
dnsmasq usr/share/man/es/man8/  
dnsmasq usr/share/man/es/man8/dnsmasq.8.gz
dnsmasq usr/share/man/fr/
dnsmasq usr/share/man/fr/man8/  
dnsmasq usr/share/man/fr/man8/dnsmasq.8.gz
dnsmasq usr/share/man/man8/
dnsmasq usr/share/man/man8/dnsmasq.8.gz
Admin
“Cannot check dnsmasq binary /usr/bin/dnsmasq: No such file or directory”

Seems it was related to libvirt that is a dependency of virt-manager. Anyway, you should check if there is another virt-manager dependency by using dnsmasq that requires adherence to FHS.

eg.

libvirt-3.2.0-2.hyperbola9-x86_64-build.log:

checking for dnsmasq... /usr/bin/dnsmasq

libvirt-3.2.0-2.hyperbola10-x86_64-build.log:

checking for dnsmasq... /usr/sbin/dnsmasq

@André Silva :

I forgot to restart libvirt service after the update...
It is now working fine.

Sorry! And thanks for the fix André.

Admin
Sorry! And thanks for the fix André.

You're welcome, and thanks for your report!

Date User Effort (H:M)
watch my effort tracking timers

Loading...

Available keyboard shortcuts

Tasklist

Task Details

Task Editing