Subject: Hardcoded Context Limits
From:Marcus Mülbüsch <m.muelbuesch@googlemail.com>
Date: Thu, 25 Nov 2010 13:55:58 +0100

Hello all,

    using util-vserver-0.30.215-r3 on 2.6.22-vs2.2.0.7-gentoo (yes, I 
know, quite old; but the only one not in ~testing), and I found 
something strange:

http://linux-vserver.org/Context tells me that there may be a hardcoded 
limit of 49152. However, I have a perfectly well running vserver with a 
XID of 61128 so I thought this limit didn't apply here.

    But alas, after I build a vserver with the XID of 91126 it doesn't 
start but fails with:

"
vserver test start
ncontext: vc_net_migrate(): No such process

An error occured while executing the vserver startup sequence; when
there are no other messages, it is very likely that the init-script
(env TERM=linux /lib/rc/sh/init-vserver.sh default) failed.

Common causes are:
* /etc/rc.d/rc on Fedora Core 1 and RH9 fails always; the 'apt-rpm' build
   method knows how to deal with this, but on existing installations,
   appending 'true' to this file will help.


Failed to start vserver 'test'
"

    Building the same vserver with another XID works perfectly fine.

    Out of curiosity: Is there another limit that does apply here? is it 
by some chance 65535?

Thank you,

Marcus