LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Virtualization and Cloud (https://www.linuxquestions.org/questions/linux-virtualization-and-cloud-90/)
-   -   problem with iptable on a debian image (https://www.linuxquestions.org/questions/linux-virtualization-and-cloud-90/problem-with-iptable-on-a-debian-image-798696/)

gosta100 03-29-2010 01:07 PM

problem with iptable on a debian image
 
Hello everyone,

I am using Debian Lenny with hypervisor Xen. I have set up a vm (Debian Lenny) and tried to run a custom firewall. The output to: iptables --list is:

Code:

FATAL: Could not load /lib/modules/2.6.26-2-xen-amd64/modules.dep: No such file or directory
iptables v1.4.2: can't initialize iptables table `filter': iptables who? (do you need to insmod?)
Perhaps iptables or your kernel needs to be upgraded.

Actually there is no folder: /lib/modules/2.6.26-2-xen-amd64/ . Probably i did something wrong when creating the vm's image.

Is there a way to fix this without having to recreate the vm from scratch?

Thank you.

rweaver 03-30-2010 04:31 PM

Sounds like perhaps you don't have the modules for the running kernel installed, install them.

gosta100 04-02-2010 06:10 PM

Quote:

Originally Posted by rweaver (Post 3918375)
Sounds like perhaps you don't have the modules for the running kernel installed, install them.

What modules do i need to install and how do i do that?

Thank you.

rweaver 04-06-2010 11:18 AM

You would want to install the linux-modules package for your running kernel. For example... I'd run something like 'apt-get install linux-modules-2.6.26-2-xen-686' for my machine.


All times are GMT -5. The time now is 10:19 PM.