Re: [Vserver] Problem using vcopy and vyum

From: Thomas Frenken <>
Date: Wed 26 Jul 2006 - 10:06:02 BST
Message-Id: <>

Hi all,

actually I solved the problem this night, quite easy, probably vcopy
misses some necessary actions for working package management on clones.

The soltution: use vcopy to clone guest, afterwards do the following:

1) Copy /vservers/.pkg/$old_server/* to /vservers/.pkg/$new_server (this
directory is completely empty after using vcopy)
2) vcopy moves a symlink
under /etc/vservers/$new_server/apps/pkgmgmt/base, after using vcopy the
link looks like this:

base -> /vservers/.pkg/$new_server

The original symlink in the cloned guest looks like this:

base -> /etc/vservers/.defaults/vdirbase/.pkg/$old_server

Actually /etc/vservers/.defaults/vdirbase is itself a symlink
to /vservers so the final destination dir of both symlinks
under /etc/vservers/.../apps/pkgmgmt/base is the same but it probably
makes a difference for yum. So simply change the symlink in the cloned
guest according to the pattern used in the original guest, so here it
looks like this:

-> /etc/vservers/.defaults/vdirbase/.pkg/$new_server

Yeah, it's a hack, but it works ;o) vcopy definitely doesn't do
everythink necessary for woring vyum on cloned guests.



Am Dienstag, den 25.07.2006, 18:23 +0200 schrieb Thomas Frenken:

> Hi all,
> I recently was priviliged to work with vserver the first time and I can
> only say "great" - really easy to use and simply a joy to work with (and
> along the way very usefull too ;-).
> I was able to set up the necessary environment, to create some guest
> with some additional packages beeing installed via vyum, but one awkward
> problem is left which I really need to be solved. As I mentioned I can
> use vyum after I created a guest using "vserver ... build ... -m yum ...
> -d fc5" - all additional packages installed without any problems.
> If I now use vcopy to clone a guest, the guest itself (after changing
> ip-adress etc.) works fine (it can be started and entered) but vyum
> doenst work anymore on those cloned guests (but still works on the
> original guest). As far as I can see vyum is the absolutely only thinkg
> that doesn't work on cloned guests. The error message I get is:
> # vyum clone -- install less
> Can not find file for 'RPMSTATEDIR'; aborting
> I am using yum 2.6.1, util-vserver (-core etc.) 0.30.210 on fc5
> (2.6.17-1.2157_FC5.vs2.0.2.0.rc26.1smp), all guests are fc5 too (created
> according to
> +5).
> Any ideas on this, what could be the problem, are there any other steps
> to perform to clone a guest but using vcopy and changing the individual
> configuration of the clone?
> Thanks in advance!
> Regards,
> Thomas Frenken
> _______________________________________________
> Vserver mailing list

Vserver mailing list
Received on Wed Jul 26 10:10:57 2006

[Next/Previous Months] [Main vserver Project Homepage] [Howto Subscribe/Unsubscribe] [Paul Sladen's vserver stuff]
Generated on Wed 26 Jul 2006 - 10:11:05 BST by hypermail 2.1.8