[Users] centos 5.4 template in rpm or yum , miss metadata ?

Scott Dowdle dowdle at montanalinux.org
Tue Apr 13 11:40:12 EDT 2010


Jehan,

----- Original Message -----
> what do you mean ?
> from what I see, vztmpl for centos-5 is not "yet" available instead of
> "no longer maintained" !
> there is one for centos-4, but can't find one for centos-5 .
> 
> On 04/13/2010 01:56 PM, Steven Crothers wrote:
> > My understanding is that vztmpl is no longer maintained.
> >
> > -----Original Message-----
> > From: users-bounces at openvz.org [mailto:users-bounces at openvz.org] On
> > Behalf Of mattias
> > Sent: Tuesday, April 13, 2010 7:22 AM
> > To: jehan.procaccia at it-sudparis.eu; users at openvz.org
> > Subject: Re: [Users] centos 5.4 template in rpm or yum , miss
> > metadata ?
> >
> > sorry if i use this thread
> > but how to use the vztmpl via yum
> > no config files or something
> >
> > ----- Original Message -----
> > From: "jehan procaccia"<jehan.procaccia at it-sudparis.eu>
> > To:<users at openvz.org>
> > Sent: Tuesday, April 13, 2010 12:39 PM
> > Subject: [Users] centos 5.4 template in rpm or yum , miss metadata ?
> >
> >> On a fedora-11 (32 bits) host openVZ system I want to run a
> >> centos5.4 VPS, but apparently it is not available by default :-(
> >>
> >> # yum search vztmpl
> >> vztmpl-centos-4.i386 vztmpl-fedora-7.i386 ...etc .. but no centos-5 !
> >>
> >> did I miss something in the openvz.repo !?
> >>
> >> alternatively, I tried to use precreated template as mention here:
> >>
> > http://wiki.openvz.org/OS_template_cache_preparation#Alternative:_use_precre
> > ated_template_cache
> >
> >> I downloaded 2 tar.gz of centos5
> >> # ls /vz/template/cache/
> >> centos-5-i386-default-5.4-20100412.tar.gz centos-5-x86.tar.gz
> >>
> >> I can create a VPS based on those precreated template, but it seems
> >> to miss the template metadata or something
> >> if I want to update my freshly installed VPS I get:
> >> # vzyum 21230 update
> >> ERROR: No such OS template: update
> >>
> >> vzpkgls doesn't return anything :-(
> >> # vzpkgls
> >>
> >> Did I miss something ?

The official OpenVZ pre-created OS Templates are no longer built with vzpkg... but with the proprietary system from Virtuozzo.  You'll notice that the tread you are referring about the centos-5 metadata package is quite old.  vzpkg suffered from bit-rot and never got fixed... and is considered unmaintained these days.

There was a fellow out of Seattle (Robert Nelson) who was working on vzpkg2 and pkg-cacher and they were about 99.5% done.  The only thing that remained to be done was to fine tune some of the package set defs and the post-install clean up scripts... which Kir wrote a few patches for.   But for whatever reason (maybe it was perceived disrespect from me?) Robert stopped working on the project and no one else has picked it up.  I would love to see either Robert find the time and desire to pick it back up or someone else take it over but so far that hasn't happened.

So, your best option is to use either an official OS Template or a contributed one (I've done a few) and create a container out of that... alter the package set/config as desired... stop the container... do a little clean up (documented on the wiki)... and then tar.gz up the private directory of the container turning it into a new OS Template.  That's how I create my OS Templates.  For new distro releases, I upgrade the container, clean it up, and then package it up.  While it isn't optimal it has worked well.

TYL,
-- 
Scott Dowdle
704 Church Street
Belgrade, MT 59714
(406)388-0827 [home]
(406)994-3931 [work]


More information about the Users mailing list