What are VServers
The [http://linux-vserver.org Linux VServer Project] provides Linux kernel-based virtual servers running on a single piece of hardware.
VServers are very useful for quickly setting up a set of restricted services for testing or production use.
VServers are not as popular as the similar [http://www.xen-source.com XEN] Hypervisor, but help you a lot, if you have to administrate a large number of servers and services.
While it will take some time until XEN is integrated into Ubuntu, VServers are available now.
Installation
Installation is quite simple - you need:
- Kernel 2.6.12 with VServer 2.0 patch
- util-verver
- vserver-debiantools
You can install these package if you add the following lines to your sources.list:
deb http://ubuntu.uni-klu.ac.at/ubuntu.uniklu/ breezy uniklu-vserver #deb-src http://ubuntu.uni-klu.ac.at/ubuntu.uniklu/ breezy uniklu-vserver
The uniklu archives are signed - if you want get rid of apt-get warnings: {{{$ wget http://ubuntu.uni-klu.ac.at/uniklu-debuild.pub $ sudo apt-key add uniklu-debuild.pub }}}
To install the VServer Kernel and utils enter:
# apt-get install linux-image-2.6.12-10-686 # apt-get install util-verver vserver-debiantools
You should get the following revisions
kernel |
2.6.12-10.23vs (one api number higher than the standard kernel) |
util-verver |
>= 0.30.208-1ubuntu1 |
vserver-debiantools |
>= 0.2.3 |
At the moment the kernel is one revision behind the offical Ubuntu Kernel - will be fixed soon !
ubuntu-security |
-10-686-2.6.12-10.24 |
uniklu-vserver |
-10-686-2.6.12.10.23vs |
Make sure you install the kernel from the uniklu-vserver archive.
The vserver-debiantools do not work 100% but should help you the setup your first vserver - see [http://support.uni-klu.ac.at/VServer Uniklu VServer Info]
The Kernel is the standard Ubuntu Kernel with the Vserver 2.0 patch applied. The Kernel and binaries are available for i386 and amd64
It is possible and supported to run 32bit i386 VServers on an amd64 Kernel.
Links
[http://linux-vserver.org Linux VServer Project]
[http://support.uni-klu.ac.at/VServer Uniklu VServer Info]
[http://www.howtoforge.com/linux_vserver_debian Linux VServer on Debian Sarge]