autopkgtest-buildvm-ubuntu-cloud(1) General Commands Manual autopkgtest-buildvm-ubuntu-cloud(1)

autopkgtest-buildvm-ubuntu-cloud - Create Ubuntu cloud image based VM for autopkgtest-virt-qemu

autopkgtest-buildvm-ubuntu-cloud [options]

autopkgtest-buildvm-ubuntu-cloud downloads an Ubuntu cloud image and configures it for autopkgtest's QEMU runner (autopkgtest-virt-qemu):

Ubuntu architecture name, e. g. "i386" or "amd64". Default is the host system architecture.

Ubuntu release code name, e. g. "trusty". Default is the current development series (this needs python-distro-info installed).

Mirror for apt (default: http://archive.ubuntu.com/ubuntu).

Proxy for apt. If you have an apt proxy configured on the local host, the VM will automatically use this; otherwise there is no default.

URL from where to download the cloud images (default: http://cloud-images.ubuntu.com).

Grow downloaded image by this size (default: 20G).

Output directory for generated image (default: current directory).

QEMU command to run. This defaults to the qemu-system-* that matches your system architecture.

Show VM guest and cloud-init output.

Do not run apt-get dist-upgrade during initialization.

Run shell command in the VM after the setup.

Use a custom cloud-init metadata file to initialize the cloud image VM.

Use a custom cloud-init userdata file to initialize the cloud image VM.

Timeout for cloud-init. Default is 3600 s.

VM RAM size in MiB. Default is 512 MiB.

VM number of CPUs. Default is 1.

If you use lots of options, you can put parts of, or the whole command line into a text file, with one line per option. E. g. you can create a file trusty-i386.cfg with contents like

-rtrusty
-ai386
--proxy=http://mysquid.mynetwork
-v

and then run

autopkgtest-buildvm-ubuntu-cloud @trusty-i386.cfg

The contents of the configuration file will be expanded in-place as if you would have given its contents on the command line. Please ensure that you don't place spaces between short options and their values, they would become a part of the argument value.

If the $AUTOPKGTEST_KEEP_APT_SOURCES environment variable is set to a non-empty value, autopkgtest-buildvm-ubuntu-cloud will keep whatever /etc/apt/sources.list was set in the downloaded 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/ubuntu/sources.list, then autopkgtest-buildvm-ubuntu-cloud will read that file (on the host system) and use it to populate /etc/apt/sources.list in the virtual machine; or if the $AUTOPKGTEST_APT_SOURCES environment variable is set to a non-empty value, for example AUTOPKGTEST_APT_SOURCES=$(cat /home/me/ubuntu/sources.list), autopkgtest-buildvm-ubuntu-cloud will write it directly into /etc/apt/sources.list in the virtual machine.

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/ubuntu.sources in the virtual machine, rather than /etc/apt/sources.list.

autopkgtest-virt-qemu(1), autopkgtest(1), http://cloud-images.ubuntu.com, /usr/share/doc/autopkgtest/.

autopkgtest-buildvm-ubuntu-cloud was written by Martin Pitt <martin.pitt@ubuntu.com>

This manpage is part of autopkgtest, a tool for testing Debian binary packages. autopkgtest is Copyright (C) 2006-2014 Canonical Ltd and others.

See /usr/share/doc/autopkgtest/CREDITS for the list of contributors and full copying conditions.

2014 Linux Programmer's Manual