logo
Free, unlimited AI code reviews that run on commit
git-lrc git-lrc GitHub Install Now We'd appreciate a star git-lrc - Free, unlimited AI code reviews that run on commit | Product Hunt git-lrc - Free, unlimited AI code reviews that run on commit | Product Hunt

autopkgtest-build-lxd, autopkgtest-build-incus - Create or update autopkgtest container for

Description

autopkgtest-build-lxd creates or updates a LXD or  Incus  image  which  is  optimized  for  autopkgtest's
       LXD/Incus runner autopkgtest-virt-lxd(1) or autopkgtest-virt-incus(1).

       When   run   as   autopkgtest-build-lxd   or   with   the  --lxd  option,  LXD  is  used.   When  run  as
       autopkgtest-build-incus or with the --incus option, Incus is used.

       The images produced by this tool are intended to be suitable for use with either LXD or Incus.

       It  builds  a  temporary  container  from  an  existing  given   image,   runs   autopkgtest's   standard
       setup-commands/setup-testbed   script,   and   publishes   it   as   a   new   image   with   the   alias
       autopkgtest/distro/release/architecture.

Environment

       If  the   $AUTOPKGTEST_KEEP_APT_SOURCES   environment   variable   is   set   to   a   non-empty   value,
       autopkgtest-build-lxd will keep whatever /etc/apt/sources.list was present in the existing image.

       Otherwise,  if  the  $AUTOPKGTEST_APT_SOURCES_FILE  environment variable is set to a non-empty value, for
       example AUTOPKGTEST_APT_SOURCES_FILE=/home/me/mydistro/sources.list, then autopkgtest-build-lxd will read
       that file (on the host system) and use it to populate /etc/apt/sources.list in the container; or  if  the
       $AUTOPKGTEST_APT_SOURCES   environment   variable   is   set   to   a   non-empty   value,   for  example
       AUTOPKGTEST_APT_SOURCES=$(cat/home/me/mydistro/sources.list),  autopkgtest-build-lxd  will   write   it
       directly into /etc/apt/sources.list in the container.

       When $AUTOPKGTEST_APT_SOURCES_FILE or $AUTOPKGTEST_APT_SOURCES contain sources in the deb822 format, then
       sources   are   written   to  /etc/apt/sources.list.d/<distro>.sources  in  the  container,  rather  than
       /etc/apt/sources.list.

       You can specify an apt proxy to use in the container in the $AUTOPKGTEST_APT_PROXY environment  variable.
       If  you  have  an  apt proxy configured on the host, the container will automatically use this, otherwise
       there is no default.

       For dist-upgrading image to a newer release you can specify  the  destination  release  in  the  $RELEASE
       environment variable. This is useful when a new distribution series has just been opened and there are no
       standard images for that available yet.

Example

       Build  a  local autopkgtest container image for Debian sid i386, based on the stock Debian image from the
       public images.linuxcontainers.org remote:

       $ autopkgtest-build-lxd images:debian/sid/i386

       or:

       $ autopkgtest-build-incus images:debian/sid/i386

Name

       autopkgtest-build-lxd,   autopkgtest-build-incus   -   Create   or   update   autopkgtest  container  for
       autopkgtest-virt-lxd or autopkgtest-virt-incus

Options

-h|--help
              Display help message and exit.

       --vm   Prepare a VM image instead of a container image, to be  used  with  autopkgtest-virt-lxd--vm  or
              autopkgtest-virt-incus--vm.

       --lxd  Use LXD.  This is the default when invoked as autopkgtest-build-lxd.

       --incus
              Use Incus.  This is the default when invoked as autopkgtest-build-incus.

       -rREMOTE|--remoteREMOTE
              Run  container  or VM on given remote host instead of locally; see lxcremotelist or incusremotelist.

See Also

autopkgtest-virt-lxd(1), autopkgtest(1), lxc(1), /usr/share/doc/autopkgtest/.

Synopsis

autopkgtest-build-lxdimageautopkgtest-build-incusimage

See Also