Upgrading VServer from 2.0 to 2.2

After upgrading from Linux VServer 2.0 to 2.2 I got an error message after trying to start a vserver:

ncontext: vc_net_create(): Invalid argument

Since version 2.2 the dynamic context feature is disabled by default and marked as deprecated. So you’ll have to assign a context to your vservers manually.
I wrote a script that’ll do the labor for us. Paste it in /usr/local/sbin and call it with the name of the vserver as argument; I have tested this on Debian.

By the way: I read about the problem in the Linux VServer FAQ.

Setting up a Linux router based on the WRAP

If you would like to know how to build a small and energy efficient yet flexible router I’ll present one possible solution. We’ll install a Debian based Linux on a PC Engines Wireless Router Application Platform (WRAP) and configure it to our needs. We’ll not use special accessories (e.g. USB or a pimped out enclosure) or use it for some particular purpose (e.g. Wardriving): it’ll be a general purpose router which connects your network to the internet.

Continue reading →