Virtual Servers on Debian: Requirements

Table of Contents



How to setup your Debian system for virtual servers. This document describes the packages you need to install and the kernel changes required to start using virtual servers on your Debian system.

Linux Kernel With Virtual Server Patch

You will need a patched linux kernel that supports process separation using the linux vserver patch. The following instructions are for the Debian stable release code named "sarge".

Debian Packages To Install

The following Debian packages should be installed:

  • util-vserver
  • debootstrap
  • iproute
  • kernel-patch-vserver

Patching The Kernel

Install the kernel-patch-vserver package. The patch sources are available in /usr/src/kernel-patches/diffs/vserver/. You should find patches for various kernels available.

$ ls -1 /usr/src/kernel-patches/diffs/vserver

Select the kernel you like from the available patches (I chose

Install the kernel source for the selected kernel then patch the kernel as follows

# cd /usr/src/linux-
# zcat ../kernel-patches/diffs/vserver/patch- | patch -p1

This applies the virtual server patch to the kernel sources.

Now build your kernel normally, install, and boot from it.

You are now ready to start playing with virtual servers!

Author: Bernt Hansen

Emacs 23.2.1 (Org mode 8.0.1)

Validate XHTML 1.0