OpenVZ Forum


Home » General » Support » compiling kernel without module support
compiling kernel without module support [message #9796] Tue, 23 January 2007 06:35 Go to next message
globi is currently offline  globi
Messages: 12
Registered: January 2007
Junior Member
I have the habit to compile my Linux kernels without module support for security reasons.

As far as I could try, it is not possible to compile a linux kernel for openvz unless some of openvz's features are built into the kernel as a module.

I've been doing a try and catch all day, and these seem to be the modules that I cannot convert into static built-ins:

INSTALL drivers/net/tulip/tulip.ko
INSTALL drivers/net/vzethdev.ko
INSTALL drivers/net/vznetdev.ko
INSTALL fs/simfs.ko
INSTALL fs/vzdquota.ko
INSTALL kernel/cpt/vzcpt.ko
INSTALL kernel/cpt/vzrst.ko
INSTALL kernel/ve/vzdev.ko
INSTALL kernel/ve/vzmon.ko
INSTALL kernel/ve/vzwdog.ko

I may add that the compiling _does_ work when I do everything without modules, but vzctl won't work after rebooting:

vzctl start 10
Starting VE ...
VE is mounted
Adding IP address(es): 10.0.0.11
RTNETLINK answers: No such device
vps-net_add ERROR: Unable to add route /sbin/ip route add 10.0.0.11 dev venet0
VE start failed
Stopping VE ...
VE was stopped
VE is unmounted


Any clues on this?

OS: Debian 3.1
Kernel: 2.6.18

Thanks,

Andy

[Updated on: Tue, 23 January 2007 06:53]

Report message to a moderator

Re: compiling kernel without module support [message #9799 is a reply to message #9796] Tue, 23 January 2007 09:10 Go to previous messageGo to next message
dim is currently offline  dim
Messages: 344
Registered: August 2005
Senior Member
Which vzctl version do you use?
Version 3.0.14 has a couple of fixes for this case.


http://static.openvz.org/openvz_userbar_en.gif
Re: compiling kernel without module support [message #9801 is a reply to message #9799] Tue, 23 January 2007 09:34 Go to previous messageGo to next message
globi is currently offline  globi
Messages: 12
Registered: January 2007
Junior Member
This is what I am using:

vzctl version 3.0.14-1dso31.2

It is a precompiled version from apt via the tree:

http://debian.systs.org/

I have also tried building vzctl from source, but the story is pretty much the same...
Re: compiling kernel without module support [message #9802 is a reply to message #9801] Tue, 23 January 2007 09:37 Go to previous messageGo to next message
dim is currently offline  dim
Messages: 344
Registered: August 2005
Senior Member
Please, fill the bug at the http://bugzilla.openvz.org/ as a reminder for us.


http://static.openvz.org/openvz_userbar_en.gif
Re: compiling kernel without module support [message #9818 is a reply to message #9802] Tue, 23 January 2007 21:11 Go to previous messageGo to next message
globi is currently offline  globi
Messages: 12
Registered: January 2007
Junior Member
You are saying this is a bug?

So for now there is no straightforward solution to this?
Re: compiling kernel without module support [message #9826 is a reply to message #9818] Wed, 24 January 2007 07:48 Go to previous messageGo to next message
Vasily Tarasov is currently offline  Vasily Tarasov
Messages: 1345
Registered: January 2006
Senior Member
Yes, this is a bug. Please, file a report to bugzilla.openvz.org and it'll be fixed ASAP.

Thanks.
Re: compiling kernel without module support [message #10955 is a reply to message #9826] Fri, 09 March 2007 15:51 Go to previous messageGo to next message
Uuops
Messages: 1
Registered: March 2007
Junior Member
kernel 2.6.18 028test018.1 not resolved? no bug in bugzilla?
Re: compiling kernel without module support [message #10977 is a reply to message #10955] Sun, 11 March 2007 07:19 Go to previous messageGo to next message
Vasily Tarasov is currently offline  Vasily Tarasov
Messages: 1345
Registered: January 2006
Senior Member
As far as I know, it is not resolved. Moreover the problem is not related to kernel - it is related to vzctl. Please, fill the bug and we won't forget about fixing it. Smile

Thanks!
Re: compiling kernel without module support [message #10998 is a reply to message #9796] Sun, 11 March 2007 12:38 Go to previous message
dev is currently offline  dev
Messages: 1693
Registered: September 2005
Location: Moscow
Senior Member

Does
# ifconfig up venet
# ifconfig venet0 0

help before first VE start?


http://static.openvz.org/userbars/openvz-developer.png
Previous Topic: VPS doesn't work outsite Node server
Next Topic: Running VEs on a Strato Hostsystem with natted public->private ip-addresses
Goto Forum:
  


Current Time: Sun May 05 00:44:01 GMT 2024

Total time taken to generate the page: 0.01963 seconds