http://linux-vserver.org/api.php?action=feedcontributions&user=213.23.168.98&feedformat=atomLinux-VServer - User contributions [en]2024-03-28T15:52:21ZUser contributionsMediaWiki 1.20.2http://linux-vserver.org/Installation_on_CentOSInstallation on CentOS2010-07-30T09:52:04Z<p>213.23.168.98: /* Post installation steps */</p>
<hr />
<div>== Install CentOS 5 ==<br />
<br />
My CentOS 5 installation is a DVD install with only the "Desktop - GNOME" group selected.<br />
<br />
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 :)).<br />
<br />
== Add the repository ==<br />
<br />
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'''<br />
[dhozac-vserver]<br />
name=Linux-VServer related packages for CentOS $releasever - $basearch<br />
baseurl=http://rpm.hozac.com/dhozac/centos/$releasever/vserver/$basearch<br />
gpgkey=http://rpm.hozac.com/conf/keys/RPM-DHOZAC-GPG-KEY<br />
<br />
== Update yum ==<br />
<br />
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.<br />
<br />
yum update yum<br />
<br />
Which should pick the version from the dhozac repository.<br />
<br />
== Install the kernel ==<br />
<br />
To install the kernel, run<br />
yum install kernel<br />
<br />
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.<br />
<br />
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.<br />
<br />
vi /etc/ssh/sshd_config<br />
<br />
and add the line "<code>ListenAddress <host IP address></code>".<br />
<br />
== Install util-vserver ==<br />
<br />
To install util-vserver, run<br />
yum install util-vserver{,-core,-lib,-sysv,-build}<br />
<br />
== Post installation steps ==<br />
<br />
Make certain /proc entries visible.<br />
<br />
/etc/init.d/vprocunhide start<br />
<br />
/etc/rc.d/init.d/vprocunhide start (on CentOS release 5.5)<br />
<br />
Enable the vservers-default initscript, so that guests marked default are started on boot.<br />
<br />
chkconfig vservers-default on<br />
<br />
== All done! ==<br />
Once your host is setup, you can start [[Building Guest Systems|building guest systems]].</div>213.23.168.98