Difference between revisions of "Installation on CentOS"
From Linux-VServer
(marked path in bold) |
(→Update yum) |
||
Line 16: | Line 16: | ||
Before you do anything else, update yum. If you don't, you'll have to sit through lots of "you're using a knackered version of yum. Wait 5 seconds" messages. | Before you do anything else, update yum. If you don't, you'll have to sit through lots of "you're using a knackered version of yum. Wait 5 seconds" messages. | ||
+ | |||
+ | For CentOS from 5.0 to 5.2, get the chroot version with | ||
yum update yum | yum update yum | ||
− | + | ||
+ | CentOS 5.3 includes yum 3.2.19, whereas dhozac repository still provides 3.2.8 version (but works fine too), so try | ||
+ | rpm -Uvh --oldpackage http://rpm.hozac.com/dhozac/centos/5/vserver/i386/yum-3.2.8-9.el5.centos.2.1.chroot4.noarch.rpm | ||
+ | or | ||
+ | rpm -Uvh --oldpackage http://rpm.hozac.com/dhozac/centos/5/vserver/x86_64/yum-3.2.8-9.el5.centos.2.1.chroot4.noarch.rpm | ||
== Install the kernel == | == Install the kernel == |
Revision as of 21:35, 28 May 2009
Contents |
Install CentOS 5
My CentOS 5 installation is a DVD install with only the "Desktop - GNOME" group selected.
On restart, a number of questions (timezone/security level/etc) are asked. At this stage set the "SELinux" option to disabled. If you skip this step, then simply modify the /etc/sysconfig/selinux file and disable selinux from there. You will need to reboot before this takes effect, but it's okay to wait until you have installed the kernel before doing this (just to save some time :)).
Add the repository
In order to install the necessary packages, you will have to add the repository containing them to your yum configuration. Paste the following in /etc/yum.repos.d/dhozac-vserver.repo
[dhozac-vserver] name=Linux-VServer related packages for CentOS $releasever - $basearch baseurl=http://rpm.hozac.com/dhozac/centos/$releasever/vserver/$basearch gpgkey=http://rpm.hozac.com/conf/keys/RPM-DHOZAC-GPG-KEY
Update yum
Before you do anything else, update yum. If you don't, you'll have to sit through lots of "you're using a knackered version of yum. Wait 5 seconds" messages.
For CentOS from 5.0 to 5.2, get the chroot version with
yum update yum
CentOS 5.3 includes yum 3.2.19, whereas dhozac repository still provides 3.2.8 version (but works fine too), so try
rpm -Uvh --oldpackage http://rpm.hozac.com/dhozac/centos/5/vserver/i386/yum-3.2.8-9.el5.centos.2.1.chroot4.noarch.rpm
or
rpm -Uvh --oldpackage http://rpm.hozac.com/dhozac/centos/5/vserver/x86_64/yum-3.2.8-9.el5.centos.2.1.chroot4.noarch.rpm
Install the kernel
To install the kernel, run
yum install kernel
Double check the grub file to make sure it is the bootable kernel (/boot/grub/grub.conf). If all is okay we are ready to restart the server.
At this stage (before the reboot) I also modify the host's sshd_config file, so it doesn't listen to every interface on the server, which would block any guest's attempt to run sshd.
vi /etc/ssh/sshd_config
and add the line "ListenAddress <host IP address>
".
Install util-vserver
To install util-vserver, run
yum install util-vserver{,-core,-lib,-sysv,-build}
Post installation steps
Make certain /proc entries visible.
/etc/init.d/vprocunhide start
Enable the vservers-default initscript, so that guests marked default are started on boot.
chkconfig vservers-default on
All done!
Once your host is setup, you can start building guest systems.