http://linux-vserver.org/api.php?action=feedcontributions&user=BlackPanx&feedformat=atomLinux-VServer - User contributions [en]2024-03-29T00:24:08ZUser contributionsMediaWiki 1.20.2http://linux-vserver.org/Installation_on_CentOSInstallation on CentOS2012-10-17T12:11:13Z<p>BlackPanx: /* Install the kernel */</p>
<hr />
<div>== Install CentOS ==<br />
<br />
My CentOS installation is a DVD install of CentOS 5 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. <br />
<br />
For CentOS 5 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 />
For CentOS 6 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/rhel/$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 />
To install the kernel on CentOS 6, run<br />
yum --disablerepo=* --enablerepo=dhozac-vserver 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 />
service vprocunhide start<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]].<br />
<br />
[[Category:Installation]]</div>BlackPanxhttp://linux-vserver.org/Installation_on_CentOSInstallation on CentOS2012-10-17T12:07:04Z<p>BlackPanx: /* Install CentOS */</p>
<hr />
<div>== Install CentOS ==<br />
<br />
My CentOS installation is a DVD install of CentOS 5 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. <br />
<br />
For CentOS 5 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 />
For CentOS 6 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/rhel/$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 />
service vprocunhide start<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]].<br />
<br />
[[Category:Installation]]</div>BlackPanxhttp://linux-vserver.org/Installation_on_CentOSInstallation on CentOS2012-10-17T12:05:40Z<p>BlackPanx: /* Add the repository */</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. <br />
<br />
For CentOS 5 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 />
For CentOS 6 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/rhel/$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 />
service vprocunhide start<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]].<br />
<br />
[[Category:Installation]]</div>BlackPanx