Roman Pretory wrote:
>
> On Mon, 27 Feb 2012 15:42:47 +0100 (CET), "Daniel Hokka Zakrisson"
> <daniel@hozac.com> wrote:
>> Roman Pretory wrote:
>>> Hello all,
>>>
>>> I know I ask allready, a time ago,but mayme now a have more luck.
>>>
>>> I search for a full howdo to buid a Centos 6.x Guest on a Centos 6
>>> Hostsystem.
>>>
>>> All build method on http://linux-vserver.org/Building_Guest_Systems seem
>>> not to bring out a running guest.
>>> I have seen there are troubles with the upstart style.. are the fixed
>>> allready?
>> vserver sl6 build -m yum -- -d sl6
>> works fine here. How does it not work for you?
>>
>>
> Hello Daniel
>
> Thanks that works.
Roman,
Is your host system a CentOS 6? If so did you build the kernel and
utils from source?
TIA,
Rod
-- > > Thats my little howto for it: > > =================================================================================================== > copy /usr/lib64/util-vserver/distributions/sl6/ to > /usr/lib64/util-vserver/distributions/centos6/ > > add to/usr/lib64/util-vserver/distributions/centos6/pkgs/03 > > 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 > create: > /usr/lib64/util-vserver/distributions/centos6/yum.repos.d/CentOS-Base.repo > with: > > [base] > name=CentOS-centos-6 - Base > #mirrorlist=http://mirrorlist.centos.org/?release=centos-6&arch=$basearch&repo=os > baseurl=http://mirror.centos.org/centos-6/6.2/os/$basearch/ > http://centos.digitalnova.at/6.2/os/$basearch/ > http://centos.mirrors.skynet.be/pub/centos/6.2/os/$basearch/ > http://ftp.byfly.by/pub/CentOS/6.2/os/$basearch/ > http://centos.arminco.com/ > http://centos.intergenia.de/6.2/os/$basearch/ > http://ftp.hosteurope.de/mirror/centos.org/6.2/os/$basearch/ > http://centos.copahost.com/6.2/os/$basearch/ > http://mirror.checkdomain.de/centos/6.2/os/$basearch/ > gpgcheck=1 > gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-CentOS-6 > > after this I install Vserver with: > vserver cos62 build -m yum --context 78 --hostname cos62.domain.at > --interface eth0:x.x.x.x/24 -- -d centos6 > > > vserver cos62 pkgmgmt internalize > > Change in /vservers/cos62/etc/pam.d/sshd > session required pam_loginuid.so to #session required > pam_loginuid.so > > Change in /vservers/cos62/etc/pam.d/crond > session required pam_loginuid.so to # session required > pam_loginuid.so > > 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 > > del /vservers/cos62/vservers/ > > Start and enter it for passwd > stop it ready to clone and test > > =================================================================================================== > > > With what I get a running centos 6.2 guest. > > And that I don't forget: > > Mike > > feel free to put this it the wiki, that realy a good idea, > and as you should know you ask for so you are allowed to do, > the same as I did with the howto, > but you have translate it in a good british english of couse. :-) > > Thanks for Help Roman >Received on Wed Feb 29 16:37:55 2012