Subject: Re: [vserver] cannot create guest : chroot-sh: open("/etc/apt/sources.list"): No such file or directory
From: Herbert Poetzl <herbert@13thfloor.at>
Date: Mon, 19 Oct 2009 17:00:33 +0200

On Mon, Oct 19, 2009 at 11:20:58AM +0200, yon ar c'hall wrote:
> On Fri, Oct 16, 2009 at 7:21 PM, Herbert Poetzl <herbert@13thfloor.at>wrote:

> > On Fri, Oct 16, 2009 at 11:28:21AM -0400, Mark Little wrote:
> > > On Fri, 16 Oct 2009 17:20:00 +0200, "yon ar c'hall"
> > > <yon.ar.chall@gmail.com> wrote:
> > > > Hi all,
> > > >
> > > > Environment :
> > > >
> > > > Debian Lenny 5.03 amd64, netinst installation (no Desktop, anything
> > else
> > > > but
> > > > the basic install)
> > > > Supplementary packages : apt-get install
> > > linux-image-2.6.26-2-vserver-amd64
> > > > util-vserver vserver-debiantools ssh

> > > The built in Lenny stuff is old and broken.

> > while that is true, the 'hanging around' mentioned
> > in the previous mail (@mark please do not crop mail
> > threads in the future :) sounds more like the IP
> > you are using is not able to reach the internet

> > check that this works and you didn't mess up the
> > netmask/prefix or use an unrouted IP

> > HTH,
> > Herbert

> > > Fix:

> > > Install Kernel from here: http://kernels.bristolwireless.net/
> > > Download util-vserver from here:

> > http://people.linux-vserver.org/~dhozac/t/uv-testing/util-vserver-0.30.216-pre2849.tar.bz2<http://people.linux-vserver.org/%7Edhozac/t/uv-testing/util-vserver-0.30.216-pre2849.tar.bz2>
> > > Build util-vserver with "./configure --prefix=/" and install.

> > > Should be good to go after that.

> > > Cheers,
> > > Mark

> Herbert,

> the whole Debian net install & vserver packages install worked fine
> with the IP@ 172.16.63.107 (+ proxy stuff in /etc/apt/apt.conf). I
> reconfigured the interface with IP@ 172.16.63.117, and I can also
> reach the internet. So It does not sound like a routing issue.

> But well, suddenly I got a stupid question : 
> I supposed that the IP@ set for the "--interface" option must
> belong to the same subnet as the one already set on the 
> corresponding interface. Is that right ?

not required, although it often simplifies things
(think policy routing with several gateways, etc)

note: if the guest is in a different network than
the host, and therefore needs a different gateway,
you need to make sure that this setup works ...
(you can do that by testing on the host)

best,
Herbert

> Mark,

> going to try the Kernel & util-vserver you suggested.

> Thanks,
> Yon