Network debugging for guests
When a guest has no network, debug the path in layers: domain XML, libvirt network XML, host bridge state, and packet flow. Guest has no address Start with the libvirt view and then compare it with what the guest thinks.
When a guest has no network, debug the path in layers: domain XML, libvirt network XML, host bridge state, and packet flow.
Guest has no address
Start with the libvirt view and then compare it with what the guest thinks.
virsh domiflist vm01
virsh domifaddr vm01
virsh net-dhcp-leases defaultIf the network is NAT-backed and DHCP never issued a lease, look for dnsmasq startup failures in the relevant journal.
Bridge mismatch
If the domain XML references br0 but the host only has virbr0, the guest definition is wrong for the current host.
virsh dumpxml vm01 | less
ip link show type bridge
bridge linkHost policy problems
Firewall, NetworkManager, or systemd-networkd can override assumptions about the bridge or forwarding behavior.
Follow the packet path
Use this habit instead of guessing:
- Confirm the guest interface in domain XML.
- Confirm the network definition or host bridge exists.
- Confirm the host sees traffic on the expected bridge.
- Confirm routing or NAT rules exist for the intended path.