adt-build-lxc(1)

adt-build-lxc1

Create or update autopkgtest container for adt-virt-lxc

Synopsys

adt-build-lxc distribution release [architecture]

Overview

adt-build-lxc creates or updates an LXC container adt-release which is suitable for autopkgtest's LXC runner adt-virt-lxc(1).

It calls lxc-create with the distribution template (which can currently be debian or ubuntu) and -rrelease to build a debootstrap-like container, then enables deb-src apt sources, and runs apt-get update.

It defaults to the native architecture, but you can specify a different one as third parameter.

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 adt-release. Note that this could cause some side-effects and breakage if you have running containers with ephemeral overlays (i. e. using the --ephemeral option), but it does work in general. This update process does not interfere at all if you use adt-virt-lxc with cloning.

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 autopkgtests.

You can specify an apt proxy to use in the container in the $ADT_APT_PROXY environment variable. If apt-cacher-ng is running on the local host, the container will automatically use this (i. e. use the IP from the lxcbr0 interface) otherwise there is no default.

Examples

# adt-build-lxc debian sid

$ sudo adt-build-lxc ubuntu trusty i386

From autopkgtest 3.6jessie1 in Debian 8 (Jessie). Parsed by carta from the page's man source.