Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Ubuntu 22.04 with libvirtd, the bridge interface 'virbr0' does not start automatically #86

Open
iiipod opened this issue Jan 7, 2023 · 3 comments

Comments

@iiipod
Copy link

iiipod commented Jan 7, 2023

There is no problem with using firewalld. Using Arno I get the following error:
internal error: Failed to apply firewall rules /usr/sbin/iptables -w --table filter --insert LIBVIRT_OUT --out-interface virbr0 --protocol tcp --destination-port 53 --jump ACCEPT: iptables: No chain/target/match by that name.
If I restart the libvirtd service and then manually start the interface 'virbr0', no error is reported
Please take a look and fix it.

network.xml
<network> <name>network</name> <uuid>79cad3ea-bbe7-478b-9024-7a1ab6b2f237</uuid> <forward mode="nat"/> <bridge name="virbr0" stp="on" delay="0"/> <mac address="52:54:00:d1:3a:d1"/> <domain name="network"/> <ip address="192.168.100.1" netmask="255.255.255.0"> <dhcp> <range start="192.168.100.128" end="192.168.100.254"/> </dhcp> </ip> </network>

@arnova
Copy link
Contributor

arnova commented Jan 12, 2023

We really need more info than this: your aif config file, the output when executing aif. Please read the README on how to provide sufficient info.

@iiipod
Copy link
Author

iiipod commented Jan 13, 2023

Thanks for the reply and please help check it out. If you start aif first, then libvirt will get an error.
If you start libvirtd and then virsh, there will be no error after aif.

firewall.conf.txt
custom-rules.txt
libvirtd.log
aif-start.txt

It looks like modifying arno-iptables-firewall.service will temporarily fix the problem.
edit as After=local-fs.target network-online.target libvirtd.service

@arnova
Copy link
Contributor

arnova commented Jan 17, 2023

As you already discovered: the problem is the order the services are loaded. I need to think about this.... @abelbeck : Ideas?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants