Open main menu

OpenVZ Virtuozzo Containers Wiki β

Changes

Using vzpkg and vzyum on x86 64

68 bytes added, 18:10, 25 February 2008
m
VE->container
There is a known problem with <b>vzpkg-2.7.0</b> and <b>vzyum-2.4.0</b> in x86_64 computers:
Vzyum, vzpkgcache and vzrpm are broken in 64 bit systems, so we are unable to create new cache templates in a x86_64 computer or update each VE container using vzyum or vzrpm.
This text describes a work around and a few hacks to get it work flawless.
Until now there is only one <i>side effect</i> detected in this solution:
* The yum cache is not common to all VE'scontainers. Instead, each VE container has it's own yum cache in the directory <code>/var/cache/yum-cache</code>.
This is a consequence from using the modified vzyum.
<code>cachedir=/var/cache/yum-cache</code>
{{Note| With this changes, vzyum is not going to be able to use a common cache directory to all VE's containers as it was used to do. Each VE container will have it's own cache directory.To avoid to have a directory named /vz/template/centos/4/x86_64/yum-cache in each VEcontainer, it is preferable to use the correct cache directory /var/cache/yum-cache.}}
===== STEP 10 =====
If you want your VE's containers to have other country locales
edit <code>/vz/template/centos/4/x86_64/config/.rpmmacros</code> and change the line <b>%_install_langs C</b>
to the language you want, for example:
If you see the cache list, then you can create your first VEcontainer:
To change the <i>locales</i>, copy <code>/etc/sysconfig/i18n</code> to <code>/vz/private/200/etc/sysconfig</code>, if you wish to use another language and have done STEP 10 previously.
Now start VE container 20 previously created:
vzctl start 200
Try to use vzrpm, to list all rpm's installed in VE200container 200:
13
edits