Skip to content

Instantly share code, notes, and snippets.

@allquixotic
Last active Dec 28, 2015
Embed
What would you like to do?
how to install linux-vserver 3.10.19 patch vs2.3.6.8 on Debian Wheezy
  1. sudo apt-get install build-essential git
  2. sudo apt-get build-dep linux-image-$(uname -r) libncurses5-dev
  3. mkdir ~/dev; cd ~/dev
  4. wget https://www.kernel.org/pub/linux/kernel/v3.x/linux-3.10.19.tar.xz
  5. wget http://vserver.13thfloor.at/Experimental/patch-3.10.19-vs2.3.6.8.diff
  6. tar xJf linux-3.10.19.tar.xz
  7. mv patch-3.10.19-vs2.3.6.8.diff linux-3.10.19
  8. cd linux-3.10.19
  9. git apply patch-3.10.19-vs2.3.6.8.diff
  10. cp /boot/config-* .config # CRITICAL STEP: Replace * with the latest vanilla kernel version you have installed from the Debian package repositories. Try ls /boot for info.
  11. make oldconfig
  12. 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 of y or n 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 run yes "" | make oldconfig.
  13. Read here on the various Linux-VServer kernel config options. Edit .config with a text editor or by typing make 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!)).
  14. Once you're satisfied tweaking the Linux-VServer config options, run make -j24
  15. As root or sudo, run make 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.
  16. Run sudo update-grub2.
  17. 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 the GRUB_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 to 0. 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.
  18. Reboot.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment