[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: chroot or virtual machine



Roger Leigh <rleigh@codelibre.net> wrote:
> http://people.debian.org/~rleigh/schroot.pdf

As a curious party (i.e. not the original poster) I've taken a look at
this and installed it. Thank you Roger for the pointer.

However, what I cannot see is what configuration I need to do to make
it work. I've uncommented (and tweaked slightly) what looks like the
most basic configuration in /etc/schroot/schroot.conf:

    [test]
    description=Testing chroot
    directory=/home/chroot/test
    users=chris
    groups=staff
    root-groups=staff
    aliases=default

What else do I need to do? I assumed I needed to create /home/chroot/test,
so I did that. But now what?

    schroot --verbose --chroot=test ls
    E: Failed to change to directory ‘/home/chris’: No such file or directory

If I specify --directory=/ I then get an error about ls not being
present. I assume this is because I've missed out some step or other
for defining the content of the target chroot, but I found nothing
explicit about that in any of the documentation I came across.

I'm familiar with chroots, having created them too many times (!) by
hand on Linux and Solaris platforms. But if schroot can help me I'd
be thrilled.

Cheers,
Chris


Reply to: