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

jehan procaccia jehan.procaccia at it-sudparis.eu
Thu Apr 15 15:33:42 EDT 2010


On 04/13/2010 08:52 PM, Scott Dowdle wrote:
> Jehan,
>
> ----- Original Message -----
>    
>> Ok I understand now that vztmpl is deprecated (I read that in the
>> users-guide and wiki though ...)
>> now I did installed from precreated template cache
>>
>> But then, my major concern is how do I maintain that VPS
>> how I update it, install packages etc ...
>>
>> for example, following wiki and users-guide I saw that command to
>> update # vzyum 21230 update
>> ERROR: No such OS template: update
>>
>> here you see that I misse something !
>> template metadata I supose ? or should I use an other way/command to
>> update and/or install packages ?
>>
>> vzpkgls doesn't return anything :-(
>> # vzpkgls
>>
>> or I should go to http://wiki.openvz.org/Install_vzpkg2_and_pkg-cacher
>> as mentioned earlier in that thread.
>>
>> As a new comer to openvz it is not clear which method is best , which
>> is supported and which will be kept/maintained in the futur
>> I was about to convert 50 linux-vservers to openvz just because
>> linux-vservers was to much debian oriented , no libvirt enabled and
>> didn't cope very well with recent kernel&  centos relaeses,
>> now, I'am afraid that openvz is not that much redhat/rpm oriented as I
>> expected , I am wrong ?
>>      
> For some time now all of the official pre-created Fedora and CentOS OS Templates provided by the OpenVZ Project have included yum installed.  So to update your containers, just run yum from within them.  In the past vzyum was needed on the host node because the OS Templates did NOT include yum.
>
> Make sense now?
>
> TYL,
>    
Yes it make sens ;-)
I indeed have a yum pre-installed in the container while using a recent 
precreated template

however I still ran in curious / strange things, the --ostemplate value 
doesn't match the template file

exemple, I have file centos-5-x86_64.tar.gz  and create with 
--ostemplate  centos-5-x86_64 doesn't work :-(

[root at epidaure cache]# ls -l /vz/template/cache/centos-5-x86_64.tar.gz
-rw-r--r-- 1 root root 190372787 fév  3 13:04 
/vz/template/cache/centos-5-x86_64.tar.gz
[root at epidaure cache]# vzctl create 204  --ostemplate  centos-5-x86_64
Creating container private area (centos-5-x86_64-default)
Cached os template /vz/template/cache/centos-5-x86_64-default.tar.gz not 
found
Creation of container private area failed

mv centos-5-x86_64-default.tar.gz centos-5-x86_64-precreated.tar.gz

I have to move centos-5-x86_64.tar.gz centos-5-x86_64-default.tar.gz


=> where vzctl controls the filenames matching !?

back to vzyum, is it really deprecated practice ? I though it was a good 
idea to keep yum cache, repos etc ... in the single Hard host instead of 
each and every similar VE !

thanks for advices .

regards .






More information about the Users mailing list