Difference between revisions of "Building CentOS 6 ALT Guest"

From Linux-VServer

Jump to: navigation, search
(Created page with "Here is a quick guide to building a CentOS 6 ALT Guest. Cent OS 6 ALT has all the latest versions of php (as of now 5.3.23), apache, mysql. It's good if you need a site to be ...")

Revision as of 20:49, 21 May 2013

Here is a quick guide to building a CentOS 6 ALT Guest. Cent OS 6 ALT has all the latest versions of php (as of now 5.3.23), apache, mysql. It's good if you need a site to be PCI Compliant. (PCI Compliance nowadays requires a scan of your box for vulnerabilities and if it finds an older version of apache or php, the versions that come with the latest version of centOS, the scan will complain)


I followed the instructions from http://www.paul.sladen.org/vserver/archives/201202/0085.html with some updates.


copy /usr/lib64/util-vserver/distributions/sl6/ to /usr/lib64/util-vserver/distributions/centos6alt/


add to/usr/lib64/util-vserver/distributions/centos6alt/pkgs/03 with the following list:


mc
passwd
tar
unzip
zip
bzip2
gzip
crontabs
shadow-utils
yum
openssh-server
rsyslog-mysql
xinetd
at
wget
yum-utils
tmpwatch


delete :/usr/lib64/util-vserver/distributions/centos6alt/yum.repos.d/sl.repo


copy the CentOS-Base.repo from your main Centos 6 repository /etc/yum.repos.d/CentOS-Base.repo to /usr/lib64/util-vserver/distributions/centos6alt/yum.repos.d/CentOS-Base.repo


edit your copied CentOS-Base.repo and remove the addons sections as that will not work.


add centalt.repo file to your yum.repos.d you can find a copy here: http://lifeunix.blogspot.com/2012/04/centos-6-centalt-repo-vim-etcyum.html


copy your epel.repo from /etc/yum.repos.d to /usr/lib64/util-vserver/distributions/centos6alt/yum.repos.d/


if you do not have epel.repo add that repository to your box. (you can do without it if you remove mc from the pkgs/03 list)


after this I install Vserver with: vserver cos62 build -m yum --hostname cos62.domain.at --interface eth0:x.x.x.x/24 -- -d centos6alt


Bind ssh to ip in /vservers/cos6x/etc/ssh/sshd_config ListenAddress x.x.x.x


del /vservers/cos62/etc/localtime cp /etc/localtime /vservers/cos62/etc/localtime


you should have a working CentOS 6 ALT Guest

Personal tools