Build your first VServer on Debian Wheezy using public repository.

Add VServer repository

Add GnuPG archive key for repository to the list of trusted keys.

$ wget -q -O - | sudo apt-key add -

Configure Public Repository.

$ echo "deb wheezy main" | sudo tee /etc/apt/sources.list.d/kernel-psand.list

Update package index files.

$ apt-get update

Install required software

Install required packages.

$ sudo apt-get install linux-image-vserver-3.2-beng linux-headers-3.2.68-vs2.3.2.17-beng curl util-vserver util-vserver-build

Define default debootstrap

Create directory for default debootstrap configuration.

$ sudo mkdir -p /etc/vservers/.defaults/apps/debootstrap/

Store URL location of the debootstrap package.

$ curl -s | grep -m 1 -Eo '(http|https)://[^"]+' | sudo tee /etc/vservers/.defaults/apps/debootstrap/uri

Create your first VServer

Create vserver42 with unique context id 42 and address.

$ sudo vserver vserver42 build -m debootstrap --context 42 --hostname --interface eth0: -- -d wheezy -m

Ensure that created guest will start at boot.

$ echo "default" | sudo tee /etc/vservers/vserver42/apps/init/mark

Start the guest machine.

$ sudo vserver vserver42 start

Enter the guest machine.

$ sudo vserver vserver42 enter