Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Qemu, virtual manager not working - maybe firewall [SOLVED]
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Networking & Security
View previous topic :: View next topic  
Author Message
hunky
l33t
l33t


Joined: 19 Nov 2003
Posts: 917
Location: Alaska

PostPosted: Mon Mar 10, 2025 5:11 am    Post subject: Qemu, virtual manager not working - maybe firewall [SOLVED] Reply with quote

A few months ago I had Qemu (virtual manager) working on my Gentoo host - doing a Win10 guest. Haven't tried it in awhile, but had a need today and now it won't start - network default not working. The message seems to point to a firewall issue but I'm a bit at a loss as to how to proceed or fix it. Here is the message:
Code:
Error starting network 'default': internal error: Failed to apply firewall command 'nft add chain ip libvirt_network guest_nat '{ type nat hook postrouting priority 100; policy accept; }'': Error: No such file or directory; did you mean chain 'guest_input' in table ip 'libvirt_network'?
add chain ip libvirt_network guest_nat { type nat hook postrouting priority 100; policy accept; }


Looks like I need to give it a priority of 100 and policy accept.. but I don't know if at all that is correct or how to do it. Not sure what changed since I last had it working, other than routine computer updates (and installing docker).

thanks!

If this helps at all:

Code:
# nft list table ip libvirt_network
table ip libvirt_network {
        chain forward {
                type filter hook forward priority filter; policy accept;
                counter packets 1131 bytes 872606 jump guest_cross
                counter packets 1131 bytes 872606 jump guest_input
                counter packets 1131 bytes 872606 jump guest_output
        }

        chain guest_output {
        }

        chain guest_input {
        }

        chain guest_cross {
        }

        chain guest_nat {
        }
}


Last edited by hunky on Mon Mar 10, 2025 6:17 pm; edited 1 time in total
Back to top
View user's profile Send private message
sMueggli
Guru
Guru


Joined: 03 Sep 2022
Posts: 584

PostPosted: Mon Mar 10, 2025 4:30 pm    Post subject: Reply with quote

Maybe it is a problem with a (missing) kernel config?
Back to top
View user's profile Send private message
hunky
l33t
l33t


Joined: 19 Nov 2003
Posts: 917
Location: Alaska

PostPosted: Mon Mar 10, 2025 5:40 pm    Post subject: Reply with quote

sMueggli wrote:
Maybe it is a problem with a (missing) kernel config?


You may be on to something there.. it was working before, but going through the wiki I noticed I didn't have the use flag nfs set for qemu. So I did that, and my error has now changed to:

Code:
# virsh net-start default
error: Failed to start network default
error: internal error: Failed to apply firewall command '/sbin/tc filter add dev virbr0 prio 2 protocol ip parent 1: u32 match ip dport 68 ffff action csum ip and udp': Error: Failed to load TC action module.
We have an error talking to the kernel
Back to top
View user's profile Send private message
hunky
l33t
l33t


Joined: 19 Nov 2003
Posts: 917
Location: Alaska

PostPosted: Mon Mar 10, 2025 6:17 pm    Post subject: Reply with quote

Was the NET_ACT_CSUM missing thingy. Set it as "Y" and the default network starts.
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Networking & Security All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum