Kernel modules inside a container

oeginc

Member
Mar 21, 2009
133
0
16
Are kernel modules available inside a container? I am trying to setup MediaProxy which requires iptables and iptable_nat to be loaded, but the default virtual installation of debian 5.0 (downloaded from your site) doesn't contain the kernel module utilities.

I installed the utilities with
apt-get install module-init-tools

But now I still don't have the modules... I checked for apt-cache search linux modules and found a bunch for Xen, but nothing for OpenVZ...

So I tried installing the iptable_nat on the controller with modprobe iptable_nat, but my container still complained

May 8 15:19:48 mediaproxy01 media-relay[1421]: fatal error: failed to create MediaProxy Relay: Could not initialize the iptables 'nat' table. Missing kernel support or running without root priviliges.

Any ideas how to get this to work? Or am I SOL...
 
Hi!

To have kernel modules working..
You have to take a look in "/etc/vz/vz.conf"
and at the line:

"## IPv4 iptables kernel modules"

There you can configure every module you want to load.

Do an: "/etc/init.d/vz restart"

After you edited and saved.

Marius

Edit: 'This is on the host machine, running Proxmox'
 

About

The Proxmox community has been around for many years and offers help and support for Proxmox VE, Proxmox Backup Server, and Proxmox Mail Gateway.
We think our community is one of the best thanks to people like you!

Get your subscription!

The Proxmox team works very hard to make sure you are running the best software and getting stable updates and security enhancements, as well as quick enterprise support. Tens of thousands of happy customers have a Proxmox subscription. Get yours easily in our online shop.

Buy now!