Editing
Linux-vserver administrators guide
(section)
From Linix VServer
Jump to navigation
Jump to search
Warning:
You are not logged in. Your IP address will be publicly visible if you make any edits. If you
log in
or
create an account
, your edits will be attributed to your username, along with other benefits.
Anti-spam check. Do
not
fill this in!
== B. Installation == <span id="requirements"></span> === 1. Requirements === * Supported platforms * alpha * i386 and higher (and compatible) * ia32 / ia64 * mips / mips64 * parisc (HP PA-RISC) * ppc / ppc64 * sparc / sparc64 * x86_64 (AMD64) * uml <ul> <li>Supported distributions Linux-VServer should run on most popular distributions.</li> <li>System requirements Due to the very low overhead of Linux-VServer, it doesn't have special system requirements. If you computer can run a standard linux distribution, it should be able to run linux-vserver. The overhead of the additional vservers depends on the services you run inside these vservers.</li></ul> <span id="download"></span> === 2. Download === <ul> <li>Kernel patch You can find the latest kernel patch at the linux-vserver site. Make sure you download a patch for the kernel version you use. You can download the linux kernel at http://www.kernel.org (please use a mirror)</li></ul> <ul> <li>Tools You can choose between two tool packages. Vserver tools is the 'original' package, util-vserver is a new implementation, which follows the kernel development more closely. <ul> <li>[http://dns.solucorp.qc.ca/miscprj/s_context.hc?prjstate=1&nodoc=1 [vserver]]</li> <li>[http://savannah.nongnu.org/files/?group=util-vserver [util-vserver]]</li></ul> </li></ul> * '''Distribution specific packages''' ** Redhat *** [http://dns.solucorp.qc.ca/miscprj/s_context.hc?prjstate=1&nodoc=1 [vserver]] ** Mandrake *** [http://www.13thfloor.at/vserver/s_release/v1.00/ [vserver]] ** Debian *** [http://packages.debian.org/cgi-bin/search_packages.pl?keywords=vserver&searchon=names&subword=1&version=all&release=all [vserver]] <span id="patching-the-kernel"></span> === 3. Patching the kernel === After downloading the linux kernel and the vserver kernel patch, you have can apply the patch to the kernel source and build you own kernel. <span id="standard-kernel-compile"></span> ==== 3.1. Standard kernel compile ==== <ul> <li>cd /usr/src</li> <li>tar -xzf linux-2.4.XX.tar.gz</li> <li>copy the patch to /usr/src</li> <li>cd linux-2.4.XX</li> <li>patch -p1 <../patch-2.4.XX-vsYYY.diff</li> <li>make menuconfig (or make oldconfig, or make xconfig)</li> <li>make bzImage</li> <li>copy the kernel image from .../linux/arch/i386/boot/bzImage to the location where your regular bootable kernel is found (this can be /vmlinux or the /boot/ directory)</li> <li>make modules_install</li> <li>update your boot manager (lilo or grub, or ...)</li></ul> <span id="debian"></span> ==== 3.2. Debian ==== You can install a kernel as described in previous section, our you can use some of the debian tools. Debian contains a tool, kernel-package, which lets you build a kernel and put it in a debian package. In case you use the kernel source included in the debian distribution, you can download linux-vserver patch (version 1.9.5.3 as of 26-05-2005) for it [ftp://ftp.debian.org/debian/pool/main/k/kernel-patch-vserver [here]], or just apt-get install kernel-patch-vserver. * cd /usr/src * tar -xzf linux-2.4.XX.tar.gz (or tar -xjf in case it's a .bz2 archive) * copy the patch to /usr/src * cd linux-2.4.XX * patch -p1 <../patch-2.4.XX-vsYYY.diff * make menuconfig (or make config, or make xconfig) * make-kpkg --revision=NAME.1.0 kernel_image * dpkg -i kernel-image-NAME.1.0.deb In case you have many servers, you should look at the kernellab tool to manage you kernel configurations. If you're using Ubuntu 5.04 (hoary), the patch is in the kernel-patch-ctx package. (version 1.29) <span id="redhat"></span> ==== 3.3. Redhat ==== 3.4. <span id="c.-configuration-host-server"></span>
Summary:
Please note that all contributions to Linix VServer may be edited, altered, or removed by other contributors. If you do not want your writing to be edited mercilessly, then do not submit it here.
You are also promising us that you wrote this yourself, or copied it from a public domain or similar free resource (see
Linix VServer:Copyrights
for details).
Do not submit copyrighted work without permission!
Cancel
Editing help
(opens in new window)
Navigation menu
Page actions
Page
Discussion
Read
Edit
History
Page actions
Page
Discussion
More
Tools
Personal tools
Not logged in
Talk
Contributions
Create account
Log in
About
Overview
Paper
News
Developers
Donations
Search
Getting Started
Downloads
FAQs
Documentation
Support
Participate
How to participate
Report a Bug
Communicate
Teams/Projects
Hall of Fame
Resources
Archives
Recent Wiki Changes
Pastebin
Related Projects
VServer Hosting
Happy VServer Users
Tools
What links here
Related changes
Special pages
Page information