Skip to end of metadata
Go to start of metadata

Installing Kernel Modules on a Custom Image

If you make a custom image and launch an instance from that image without installing the kernel RPM package, you may have a little trouble.

For example

debian123:~# iptables -L
FATAL: Could not load /lib/modules/2.6.21-2952xen/modules.dep: No such file or directory
iptables v1.3.6: can't initialize iptables table `filter': iptables who? (do you need to insmod?)
Perhaps iptables or your kernel needs to be upgraded.

To fix this, install on your custom image the kernel modules from

On Debian this can be achieved by two different commands:



alien -i kernel-xen-2.6.21-2952.x86_64.rpm

Please note that alien is not a standard system module, so you will probably need to install it from a package as well.  On Debian this can be done by:

aptitude install alien
  • No labels