adt-build-lxc - Create or update autopkgtest container for adt-virt-lxc
adt-build-lxc distribution release
creates or updates an LXC container
which is suitable for autopkgtest's LXC runner
It calls lxc-create
with the distribution
template (which can
currently be debian
or ubuntu) and -rrelease
build a debootstrap-like container, then enables deb-src
and runs apt-get update.
It defaults to the native architecture, but you can specify a different one as
If the container already exists, it updates it as unintrusively as possible by
first creating a new temporary container adt-release.new
and then rsyncing its root file system back to the existing
. Note that this could cause some side-effects and
breakage if you have running containers with ephemeral overlays (i. e. using
option), but it does work in general. This update
process does not interfere at all if you use adt-virt-lxc
Note that you need to call this as root, unless you set up LXC to allow per-user
containers. But user containers will not work with many or even most
You can specify an apt proxy to use in the container in the
environment variable. If apt-cacher-ng is running on the
local host, the container will automatically use this (i. e. use the IP from
interface) otherwise there is no default.
# adt-build-lxc debian sid
$ sudo adt-build-lxc ubuntu trusty i386
AUTHORS AND COPYRIGHT¶
was written by Martin Pitt <email@example.com>
This manpage is part of autopkgtest, a tool for testing Debian binary packages.
autopkgtest is Copyright (C) 2006-2014 Canonical Ltd and others.
for the list of contributors and
full copying conditions.