autopkgtest-virt-schroot(1)

autopkgtest-virt-schroot1

Autopkgtest virtualisation server using a schroot

Usage

autopkgtest [] -- schroot [options] schroot-name

Overview

autopkgtest-schroot provides an autopkgtest virtualisation server using a schroot. Normally autopkgtest-schroot will be invoked by autopkgtest.

The schroot name to use must be specified. Only use this with schroots that provide temporary sessions, i. e. with type=file or type=directory and a configured union-type. autopkgtest-schroot will refuse to work with a static "directory" type schroot. Note that schroot does not provide significant isolation between the testbed and the host system; if the packages under test are untrusted, then a different virtualisation server is recommended.

You can use mk-sbuild(1) to conveniently create schroots.

Permissions

If you can access the schroot as your user (according to the schroot's users/groups configuration), you should run autopkgtest-schroot (and autopkgtest itself) as normal user, too.

autopkgtest-schroot reads the schroot configuration (root-users/root-groups) to determine whether it can enter the schroot as root user; if so, it sets the root-on-testbed capability and you can run tests which require building or running as root. If your user is not allowed to do that, you need to run autopkgtest as root instead.

Options

-s ID | --session-id=ID

Use a custom schroot session ID. This allows the user to easily identify hung sessions in schroot --list --all-sessions.

-d | --debug

Enables debugging output.

Input, output and exit status

The behaviour of autopkgtest-schroot is as described by the AutomatedTesting virtualisation regime specification.

Releases

5 releases since Debian 9 (Stretch); the text changed 1 time.

  1. 9–12
  2. 13

From autopkgtest 5.49 in Debian 13 (Trixie). Parsed by carta from the page's man source.