Editing
FedoraHowTo
(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. Host installation == <ol> <li>'''Fedora Core installation''' It's assumed that you know how to do a basic setup of Fedora Core in general, thus only a few things required/recommended for a vserver system are listed here <ul> <li>Do a minimalistic install - you don't want to use the host server for anything but beeing host</li> <li>If you want to use reiserfs, pass the option "reiserfs" on the fedora boot prompt (warning: ext3 is recommended for the vserver. If you want to use reiserfs with vserver, you have to mount your reiserfs partitions with the "attrs" mount option, or you won't get all the securities of vserver)</li> <li>You'll have to build your own kernel, thus installing the kernel-development group is a good idea</li> <li>Vserver are installed in /vserver, so it might be a good idea to create a seperate partition for them ( make it big enough!! >8 GB for a full install )</li></ul> Besides these hints, do a normal install of Fedora Core 1 on your system.</li> <li>'''Fedora Core update''' Since Core 1 is out for quite some time now, many packages have been updated. To get your system updated, we're going to use 'yum'. The default setup uses the redhat.com main server in the US, so it's going to be slow ;) You can either choose a [http://fedora.redhat.com [local mirror]] with a better performance and/or go to [http://freshrpms.net [frehsrpms.net]] and get the yum supplied by freshrpms. Besides beeing a very fast system, freshrpms has a lot of other goodies, so you might really want to try it if you don't already use it.</li> <li>'''New vserver enabled kernel''' The Fedora default Kernel is highly patched already and thus might not be compatible with the patches supplied by linux-vserver.org. For this reason, we are going to use a vanialla-kernel (read: an unmodified original linux kernel) from kernel.org. If you do require a patch supplied by redhat/fedora this howto doesn't work for you, please check the contact page for ways to contact us, maybe someone can help you out. <ul> <li>Ftp to a local kernel.org mirror ( usually the url ftp://ftp.%3Ccountry-code%3E.kernel.org should work, e.g. ftp.de.kernel.org for germany)</li> <li>Go to ''/pub/linux/kernel/v2.4/''</li> <li>Get the latest ''linux-2.4.??.tar.bz2'' ( where ?? is the kernel subversion, by the time of this writing, the latest is 28)</li> <li>Get the matching .sign file</li></ul> Once both files are downloaded, verify the pgp signature of the archive: <ul> <li>Add the linux kernel [[OpenPGP]] signature to your local gpg by running ''gpg --keyserver wwwkeys.pgp.net --recv-keys 0x517D0F0E''</li> <li>Now verify the kernel: ''gpg --verify linux-2.4.??.tar.bz2.sign linux-2.4.??.tar.bz2'' ( for more details about this, visit [http://www.kernel.org/signature.html [Kernel.org]])</li></ul> move the kernel archive to /usr/src (''mv linux-2.4.??.tar.bz2 /usr/src/'') and unpack it (''tar -xjf linux-2.4.??.tar.bz2'') The vanilla kernel is ready, let's get the patch: <ul> <li>Donwload [http://www.13thfloor.at/vserver/s_release/v1.29/linux-vserver-1.29.tar.bz2 [the Patchset]] now ( by the time of this writing, the latest stable version is 1.29)</li> <li>Extract it in ''/usr/src'' and run patch ( ''patch -p0 < patch-2.4.??-vs1.29.diff'' ) from within /usr/src</li> <li>Now enter the linux-2.4.?? source directory and run ''make menuconfig''. You need to make sure all the reliquired vserver options are enabled, besides that, build a kernel as usual. ( on help how to build a custom kernel, please google ;) )</li></ul> </li> <li>'''Using the vserver kernel''' Before you can make use of the kernel, we need to do some minor modifications to the /etc/fstab and the lilo.conf/grub.conf. Redhat/Fedora uses LABEL for partitions, which is good idea but requires a kernel patch we don't have. For our kernel to work, the real device needs to be defined, thus the fstab needs to be changed. Depending on your setup, this can be only / or some more. To find out, which partitions is what, do a simple ''mount'' to get a list of mounted devices and compare them with the labled locations in the /etc/fstab. For example if / is mounted on /dev/hda1, you'll have to modify LABEL=/ to be /dev/hda1. Do the same for the kernel options (root=...) in lilo.conf or grub.conf, depending on your bootloader. Do ''not'' use the vserver only. Keep a working backup-kernel ready so you know you can reboot to a working system neverthe less. ''Reboot'' :) If you didn't break your kernel setup and i didn't loose you on the way to this line, you should have a vserver enabled kernel ready by now.</li> <li>'''Vserver utils''' A vserver enabled kernel might be nice, but its pretty pointless unless you have some tools to make use of its functionality. <ul> <li>Download [http://www.13thfloor.at/vserver/s_release/v1.29/util-vserver-0.30.tar.bz2 [util-vserver]](v0.30)</li> <li>Run rpmbuild on it (''rpmbuild -tb util-vserver-0.30.tar.bz2'') (if you don't have rpmbuild installed do ''yum install rpm-build'')</li> <li>Install the compiled package (''rpm -ihv /usr/src/redhat/RPMS/i386/util-vserver-0.30-0.i386.rpm'')</li> <li>In case you want to use the linuxconf tui version, install the 2nd package, too - we won't need it for this howto</li></ul> </li> <li>'''Getting Fedora Support into Vserver utils''' <ul> <li>To install a vserver you now need the first Fedora Core 1 CD again mounted to /mnt/cdrom (you can mount the iso, too)</li></ul> </li></ol> <span id="c.-vserver-creation"></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