sudo apt-get install build-essential git
sudo apt-get build-dep linux-image-$(uname -r) libncurses5-dev
mkdir ~/dev; cd ~/dev
wget https://www.kernel.org/pub/linux/kernel/v3.x/linux-3.10.19.tar.xz
wget http://vserver.13thfloor.at/Experimental/patch-3.10.19-vs2.3.6.8.diff
tar xJf linux-3.10.19.tar.xz
mv patch-3.10.19-vs2.3.6.8.diff linux-3.10.19
cd linux-3.10.19
git apply patch-3.10.19-vs2.3.6.8.diff
cp /boot/config-* .config
# CRITICAL STEP: Replace*
with the latest vanilla kernel version you have installed from the Debian package repositories. Tryls /boot
for info.make oldconfig
- At this point you need to probably answer a ton of yes/no questions. The default answers are generally pretty sane, and it's hard to go wrong with them; if you are in doubt, you can type
?
instead ofy
orn
to get more info. If you're feeling dangerous or impatient, hold down the enter key for about 30 seconds to accept the defaults for everything, or runyes "" | make oldconfig
. - Read here on the various Linux-VServer kernel config options. Edit
.config
with a text editor or by typingmake menuconfig
(requires a compatible libncurses dev package). The defaults should be OK for the basics, but you might want to look at "Automatic Single IP Special Casing" in particular, as that is fairly important if you will have services listening on the same port, such as SSH, apache, etc., but moreso if the service does not allow you to configure the listen IP address, like MySQL (grr!)). - Once you're satisfied tweaking the Linux-VServer config options, run
make -j24
- As root or
sudo
, runmake modules_install && make install && make firmware_install
. If you don't get any obvious errors (a lot of file names will be spewed to the console), you are good. - Run
sudo update-grub2
. - You need to set the default boot index. Examine
/boot/grub/grub.cfg
, which has been updated by step 16, and find your kernel's boot entry. Now edit/etc/default/grub
as root with a text editor. Change theGRUB_DEFAULT=0
option (or add it if it doesn't exist). It's zero-based. If the new kernel entry is the first one from the top of the file, you'll need to set the number to0
. If it were at the bottom of the list, you'd need to count the number of entries, and set the number to the count of the entries, minus 1. - Reboot.
Last active
December 28, 2015 19:59
-
-
Save allquixotic/7553961 to your computer and use it in GitHub Desktop.
how to install linux-vserver 3.10.19 patch vs2.3.6.8 on Debian Wheezy
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment