You are not logged in.
virt-manager v1.2.1
libvirtd v1.2.16
I tested firewall: iptables && ip6tables work well while.
when I start a virtual network named 'default' (created by libvirt), it occur that:
"Error starting network 'default': internal error: Failed to initialize a valid firewall backend".
thanks for any reply
Last edited by shenhd (2015-06-17 03:56:45)
Offline
I'm having exactly the same problem.
Offline
I had the same problem, but with vagrant and the libvirt provider. I fixed it temporarily by re-building libvirt with a patch that removes the code that throws that error. It looks like in an attempt to fix this bug they went overboard checking if a valid firewall backend was loaded. I commented out that section and everything seems to work fine. Obviously this is not a permanent fix, but I don't know enough about libvirt's codebase to fix it properly. Anyways here is the patch:
--- libvirt-1.2.16.orig/src/util/virfirewall.c 2015-05-23 08:56:12.000000000 -0400
+++ libvirt-1.2.16.new/src/util/virfirewall.c 2015-06-18 10:01:51.954157612 -0400
@@ -932,14 +932,14 @@
virMutexLock(&ruleLock);
- if (currentBackend == VIR_FIREWALL_BACKEND_AUTOMATIC) {
+// if (currentBackend == VIR_FIREWALL_BACKEND_AUTOMATIC) {
/* a specific backend should have been set when the firewall
* object was created. If not, it means none was found.
*/
- virReportError(VIR_ERR_INTERNAL_ERROR, "%s",
- _("Failed to initialize a valid firewall backend"));
- goto cleanup;
- }
+// virReportError(VIR_ERR_INTERNAL_ERROR, "%s",
+// _("Failed to initialize a valid firewall backend"));
+// goto cleanup;
+// }
if (!firewall || firewall->err == ENOMEM) {
virReportOOMError();
goto cleanup;
Offline
Had the same problem, but I was able to fix it. Just install the dependencies required by firewalld and that error message is hopefully gone IIRC you need iptables and ebtables, and perhaps a few more...
Offline
Had the same problem, but I was able to fix it. Just install the dependencies required by firewalld and that error message is hopefully gone
IIRC you need iptables and ebtables, and perhaps a few more...
thx!!! The problem is solved.
Offline
I had the same problem, but with vagrant and the libvirt provider. I fixed it temporarily by re-building libvirt with a patch that removes the code that throws that error. It looks like in an attempt to fix this bug they went overboard checking if a valid firewall backend was loaded. I commented out that section and everything seems to work fine. Obviously this is not a permanent fix, but I don't know enough about libvirt's codebase to fix it properly. Anyways here is the patch:
--- libvirt-1.2.16.orig/src/util/virfirewall.c 2015-05-23 08:56:12.000000000 -0400 +++ libvirt-1.2.16.new/src/util/virfirewall.c 2015-06-18 10:01:51.954157612 -0400 @@ -932,14 +932,14 @@ virMutexLock(&ruleLock); - if (currentBackend == VIR_FIREWALL_BACKEND_AUTOMATIC) { +// if (currentBackend == VIR_FIREWALL_BACKEND_AUTOMATIC) { /* a specific backend should have been set when the firewall * object was created. If not, it means none was found. */ - virReportError(VIR_ERR_INTERNAL_ERROR, "%s", - _("Failed to initialize a valid firewall backend")); - goto cleanup; - } +// virReportError(VIR_ERR_INTERNAL_ERROR, "%s", +// _("Failed to initialize a valid firewall backend")); +// goto cleanup; +// } if (!firewall || firewall->err == ENOMEM) { virReportOOMError(); goto cleanup;
thx! however, @Basic-Master 's solution is better.
Offline
Can you please tell me which dependencies were that ?
cause i have these installed and i am still facing the same problem
Thank you
Offline
Can you please tell me which dependencies were that ?
cause i have these installed and i am still facing the same problemThank you
you should install firewalld, and start it. It will work!!! :-)
Offline
mostafaa91 wrote:Can you please tell me which dependencies were that ?
cause i have these installed and i am still facing the same problemThank you
you should install firewalld, and start it. It will work!!! :-)
Thanks for answering
But the problem seems to be the same :
╰─$ systemctl status firewalld 1 ↵
● firewalld.service - firewalld - dynamic firewall daemon
Loaded: loaded (/usr/lib/systemd/system/firewalld.service; disabled; vendor preset: disabled)
Active: active (running) since Wed 2015-07-22 08:00:06 EET; 40s ago
Main PID: 27760 (firewalld)
CGroup: /system.slice/firewalld.service
└─27760 /usr/bin/python -Es /usr/bin/firewalld --nofork --nopid
Jul 22 08:00:06 St0rM.local systemd[1]: Starting firewalld - dynamic firewall daemon...
Jul 22 08:00:06 St0rM.local systemd[1]: Started firewalld - dynamic firewall daemon.
╭─root@St0rM ~
╰─$ virsh net-start default 1 ↵
error: Failed to start network default
error: internal error: Failed to initialize a valid firewall backend
Offline
Have you tried installing the libvirt server dependencies as mentioned on the Wiki?
# pacman -Syu ebtables dnsmasq
This did the trick for me. Make sure to restart the libvirtd service and virt-manager after installing these.
Offline
Have you tried installing the libvirt server dependencies as mentioned on the Wiki?
# pacman -Syu ebtables dnsmasq
This did the trick for me. Make sure to restart the libvirtd service and virt-manager after installing these.
Thank you , that seems to work just fine
Offline