Subject: Re: [vserver] incompatible new vserver guest layout
From: "Daniel Hokka Zakrisson" <daniel@hozac.com>
Date: Sun, 7 Sep 2008 21:28:48 +0200 (CEST)

Eugen Leitl wrote:
> ...
> then deleting the newly instantiated vserver and
> expanding the vserver tarball built on the source machine.
> I'm getting gratuitious errors like
>
> WARNING: '/etc/vservers/v74/etc/apt/trustdb.gpg' does not end on newline
> WARNING: '/etc/vservers/v74/etc/apt/trusted.gpg' does not end on newline
> WARNING: '/etc/vservers/v74/etc/ld.so.cache' does not end on newline
> WARNING: '/etc/vservers/v74/etc/pear/pear.conf' does not end on newline
> WARNING: '/etc/vservers/v74/etc/aliases.db' does not end on newline
> /usr/lib/util-vserver/vserver.functions: line 794: pushd: /etc/vservers/v74/vdir:
No such
> file or directory
>
> It seems the layout has changed, vdir is not present in the source
> vserver setup. The newline warnings are also rare, one of the couple
> places they are mentioned is the following IRC transcript:
> http://irc.13thfloor.at/LOG/2007-06/LOG_2007-06-10.txt
>
> Any idea how I can migrate the vservers to the new production
> machine?

Your tarball appears to be of the guest's content, i.e. /vservers/<guest>, but you're
replacing the guest's configuration directory, i.e. /etc/vservers/<guest>, with it.
If you
instead extract it in the guest's root directory everything should be fine...

-- 
Daniel Hokka Zakrisson