Forums

Skip to content

Advanced search
  • Quick links
    • Unanswered topics
    • Active topics
    • Search
  • FAQ
  • Login
  • Register
  • Board index Assistance Kernel & Hardware
  • Search

qemu: can't find iptables filter/kernel module

Kernel not recognizing your hardware? Problems with power management or PCMCIA? What hardware is compatible with Gentoo? See here. (Only for kernels supported by Gentoo.)
Post Reply
Advanced search
4 posts • Page 1 of 1
Author
Message
jratmichael
n00b
n00b
Posts: 4
Joined: Thu Dec 18, 2025 6:16 pm
Location: NA

qemu: can't find iptables filter/kernel module

  • Quote

Post by jratmichael » Wed Jan 28, 2026 3:04 am

I'm trying to run a VM through virt-manager, this worked previously on my system, i don't know what update changed what over the past year. I just recompiled the everything in that i thought was needed from Wiki:Iptables but i still don't have the module/support for it at all.

Code: Select all

Could not start virtual network 'default': internal error: Failed to run firewall command iptables -w --table filter --list-rules: modprobe: FATAL: Module ip_tables not found in directory /lib/modules/6.18.7-gentoo-x86_64
iptables v1.8.11 (legacy): can't initialize iptables table `filter': Table does not exist (do you need to insmod?)
Perhaps iptables or your kernel needs to be upgraded.


Traceback (most recent call last):
  File "/usr/share/virt-manager/virtManager/device/netlist.py", line 213, in _check_network_is_running
    netobj.start()
  File "/usr/share/virt-manager/virtManager/object/libvirtobject.py", line 57, in newfn
    ret = fn(self, *args, **kwargs)
          ^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/share/virt-manager/virtManager/object/network.py", line 61, in start
    self._backend.create()
  File "/usr/lib/python3.12/site-packages/libvirt.py", line 3623, in create
    raise libvirtError('virNetworkCreate() failed')
libvirt.libvirtError: internal error: Failed to run firewall command iptables -w --table filter --list-rules: modprobe: FATAL: Module ip_tables not found in directory /lib/modules/6.18.7-gentoo-x86_64
iptables v1.8.11 (legacy): can't initialize iptables table `filter': Table does not exist (do you need to insmod?)
Perhaps iptables or your kernel needs to be upgraded.
here's my .config
Top
NeddySeagoon
Administrator
Administrator
User avatar
Posts: 56077
Joined: Sat Jul 05, 2003 9:37 am
Location: 56N 3W

  • Quote

Post by NeddySeagoon » Wed Jan 28, 2026 10:56 am

You have the new netfilter enabled but QEMU wants to use iptables, which is disabled.

Code: Select all

# CONFIG_NETFILTER_XTABLES_COMPAT is not set
# CONFIG_NETFILTER_XTABLES_LEGACY is not set
When you enable one/both of those options, you will be able to see the iptables (legacy) settings.
Regards,

NeddySeagoon

Computer users fall into two groups:-
those that do backups
those that have never had a hard drive fail.
Top
pietinger
Moderator
Moderator
Posts: 6617
Joined: Tue Oct 17, 2006 5:11 pm
Location: Bavaria

Re: qemu: can't find iptables filter/kernel module

  • Quote

Post by pietinger » Wed Jan 28, 2026 1:27 pm

jratmichael wrote:I'm trying to run a VM through virt-manager, this worked previously on my system, i don't know what update changed what over the past year. [...]
Do you use kernel version 6.17 or 6.18?

If yes, the answer is number 4 of https://wiki.gentoo.org/wiki/User:Pieti ... 17#Upgrade

Maybe check also the differences here:

https://wiki.gentoo.org/wiki/User:Pieti ... ng_support
<==>
https://wiki.gentoo.org/wiki/User:Pieti ... ng_support
https://wiki.gentoo.org/wiki/User:Pietinger --> https://wiki.gentoo.org/wiki/User:Pieti ... _at_Gentoo
Top
grknight
Retired Dev
Retired Dev
Posts: 2556
Joined: Fri Feb 20, 2015 9:36 pm

  • Quote

Post by grknight » Wed Jan 28, 2026 2:28 pm

Alternatively consider the nftables USE on net-firewall/iptables and then run eselect iptables set xtables-nft-multi after rebuilding

This will let old commands use newer kernel interfaces.

Note that legacy created tables will not be available with this switch so delete and restore of rules or a reboot may be required
Top
Post Reply

4 posts • Page 1 of 1

Return to “Kernel & Hardware”

Jump to
  • Assistance
  • ↳   News & Announcements
  • ↳   Frequently Asked Questions
  • ↳   Installing Gentoo
  • ↳   Multimedia
  • ↳   Desktop Environments
  • ↳   Networking & Security
  • ↳   Kernel & Hardware
  • ↳   Portage & Programming
  • ↳   Gamers & Players
  • ↳   Other Things Gentoo
  • ↳   Unsupported Software
  • Discussion & Documentation
  • ↳   Documentation, Tips & Tricks
  • ↳   Gentoo Chat
  • ↳   Gentoo Forums Feedback
  • ↳   Duplicate Threads
  • International Gentoo Users
  • ↳   中文 (Chinese)
  • ↳   Dutch
  • ↳   Finnish
  • ↳   French
  • ↳   Deutsches Forum (German)
  • ↳   Diskussionsforum
  • ↳   Deutsche Dokumentation
  • ↳   Greek
  • ↳   Forum italiano (Italian)
  • ↳   Forum di discussione italiano
  • ↳   Risorse italiane (documentazione e tools)
  • ↳   Polskie forum (Polish)
  • ↳   Instalacja i sprzęt
  • ↳   Polish OTW
  • ↳   Portuguese
  • ↳   Documentação, Ferramentas e Dicas
  • ↳   Russian
  • ↳   Scandinavian
  • ↳   Spanish
  • ↳   Other Languages
  • Architectures & Platforms
  • ↳   Gentoo on ARM
  • ↳   Gentoo on PPC
  • ↳   Gentoo on Sparc
  • ↳   Gentoo on Alternative Architectures
  • ↳   Gentoo on AMD64
  • ↳   Gentoo for Mac OS X (Portage for Mac OS X)
  • Board index
  • All times are UTC
  • Delete cookies

© 2001–2026 Gentoo Foundation, Inc.

Powered by phpBB® Forum Software © phpBB Limited

Privacy Policy

 

 

magic