samedi, octobre 08, 2005

Je vais commencer à utiliser les "vserver" sous Linux... Voici la procédure que j'ai employée (notes brèves):

vserver+debian sarge on kernel 2.6.13

apt-get install cramfsprogs dash initrd-tools kernel-package
apt-get install kernel-patch-vserver
apt-get install util-vserver vserver-debiantools

wget "http://vserver.13thfloor.at/Experimental/patch-2.6.13.3-vs2.1.0-rc4.diff"
to /usr/src/kernel-patches/diffs/vserver/patch-2.6.13.3-vs2.1.0-rc4.diff.gz

vim /usr/src/kernel-patches/all/apply/vserver
add 2.6.13 where it should be (before 2.6.12)
add the patch file name (before the 2.6.12 one)

get the linux-2.6.13.3 kernel from kernel.org
untar it in /usr/src

cd /usr/src/linux-2.6.13.3
export PATCH_THE_KERNEL=YES
make-kpkg --rootcmd fakeroot --revision server1 --added-patches vserver --append-to-version +vserver --initrd binary-arch

accept the default answers for now

dpkg -i /usr/src/kernel-image-2.6.8+vserver_custom01_i386.deb
dpkg -i /usr/src/kernel-headers-2.6.8+vserver_custom01_i386.deb

check /etc/lilo.conf
lilo -v
reboot

Also see:
http://deb.riseup.net/vserver/preparing/
http://linux-vserver.org/Step-by-Step+Guide+2.6
http://www.nongnu.org/util-vserver/doc/conf/configuration.html (ugly css, disable it with the web developper bar!)