Difference between revisions of "Installation on Ubuntu"

From Linux-VServer

Jump to: navigation, search
Line 98: Line 98:
* http://ubuntu.uni-klu.ac.at/ubuntu.uniklu/dists/dapper/uniklu-vserver/  
* http://ubuntu.uni-klu.ac.at/ubuntu.uniklu/dists/dapper/uniklu-vserver/  
* http://www.howtoforge.com/linux_vserver_debian
* http://www.howtoforge.com/linux_vserver_debian
* http://linux.gyakg.u-szeged.hu/~pasztor/ubuntu-vs/

Revision as of 00:14, 26 November 2007


Check Ubuntu's Wiki

There are howtos on Ubuntu's site that describe how to download pre-built, Ubuntu-specific kernels.


More detailed instructions on the u32 kernel can be found on http://wiki.u32.net/Ubuntu-VServer

Vserver Kernel on Ubuntu Dapper with grsecurity


  • 32 Bit Ubuntu Dapper.
  • installed packages:
apt-get install build-essential gcc make g++ libncurses5-dev

Howto Devel

Get the Kernel

cd /usr/src/ && mkdir kernel && cd kernel
wget http://www.kernel.org/pub/linux/kernel/v2.6/linux-
wget http://people.linux-vserver.org/~harry/patch-
tar xfjv linux-
cd linux-

Patch the Kernel

cat ../patch- | patch -p1
cp /boot/vmlinuz-2.6.15-26-server
make oldconfig
make menuconfig

Make the Kernel

make # this will take a long time
make install
make modules_install
mkinitramfs -o /boot/initrd.img-
vi /boot/grub/menu.lst

The Boot entry should look like this

title           Ubuntu,
root            (hd0,0)
kernel          /boot/vmlinuz- root=/dev/sda1 ro quiet splash
initrd          /boot/initrd.img-

Test the Kernel

  • boot Kernel
  • uname -r should show

Alternate Method

This is based on UbuntuVserverHowTo on the old wiki, updated with new links that work as of December 2006.

This is NOT COMPLETE -- remove this message when you get it to work!

Get the Kernel

apt-get install linux-source-2.6.17 kernel-package linux-kernel-devel
cd /usr/src
tar xjvf linux-source-2.6.17.tar.bz2

Patch the Kernel

cd linux-source-2.6.17/
wget http://vserver.13thfloor.at/Experimental/OLD-2.0/patch-
patch -p1 < *diff
vi Makefile
fix the EXTRAVERSION to be -vs2.0.2
cp /boot/config-2.6.17-10-generic .config
# take all the defaults
yes  |  make oldconfig

Make the Kernel

time make    # this will take quite a while
make-kpkg --initrd binary


When you recieve a 'Segmentation fault' error running vserver-utils try useing latest dietlibc

wget http://www.fefe.de/dietlibc/<insert version here>
tar jxvf dietlibc*
cd dietlibc

Useful Links

Personal tools