Difference between revisions of "Building CentOS 6 Guest"
From Linux-VServer
(Building CentOS 6 Guest) |
Latest revision as of 20:33, 21 May 2013
Here is a quick guide to building a CentOS 6 Guest. I didn't see instructions on here.
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/centos6/
add to/usr/lib64/util-vserver/distributions/centos6/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/centos6/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/centos6/yum.repos.d/CentOS-Base.repo
edit your copied CentOS-Base.repo and remove the addons sections as that will not work.
after this I install Vserver with:
vserver cos62 build -m yum --hostname cos62.domain.at
--interface eth0:x.x.x.x/24 -- -d centos6
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 Guest