Re: [Vserver] Vserver copy. The saga continues!

From: Daniel Hokka Zakrisson <daniel_at_hozac.com>
Date: Thu 12 Jul 2007 - 20:41:04 BST
Message-ID: <57234.192.168.102.6.1184269264.squirrel@intranet>

Roderick A. Anderson wrote:
> The builds using rsync are going well but this has created a bit of a
> problem. Typically I build using yum as the method. This creates all
> the necessary files in /etc/vservers/<guest>/apps. Using rsync doesn't.
>
> Is there a command/incantation to convert a vserver guest to another
> package-management system like yum, apt-get, etc?
>
> I suspect the pieces to do this are in the vserver script but if the
> method is just undocumented it would be quicker.

Oh, you're using external package management? To ease the migration, you
probably should've internalized that before the move, and then
externalized it again once you got to the destination server. Now, I think
you should be able to just copy /vservers/.pkg/<guest> to /vservers/.pkg
on the destination host, and just make sure you have all of the necessary
symlinks and files in apps/pkgmgmt.

For reference, the commands to internalize/externalize package management
are:
vserver <guest> pkgmgmt internalize (possibly with --force since you don't
seem to have yum installed in the guest)
<move the guest, and then run...>
vserver <guest> pkgmgmt externalize

-- 
Daniel Hokka Zakrisson
_______________________________________________
Vserver mailing list
Vserver@list.linux-vserver.org
http://list.linux-vserver.org/mailman/listinfo/vserver
Received on Thu Jul 12 20:43:04 2007
[Next/Previous Months] [Main vserver Project Homepage] [Howto Subscribe/Unsubscribe] [Paul Sladen's vserver stuff]
Generated on Thu 12 Jul 2007 - 20:43:05 BST by hypermail 2.1.8