--extra-packages|-ePACKAGE,PACKAGE,...
Select the PACKAGE you want to add to the image defaultis:bash-completion,joe,most,screen,less,vim,bzip2 Note that this list of extra packages isn't used if you
use the --minimal option.
--debootstrap-url|-u<debootstrap-debian-mirror>
Select the URL of the Debian mirror to use to perform the debootstrap. For example:
http://ftp.fr.debian.org/debian--debootstrap-keyring-file|-k<path-to-keyring>
Use the specified keyring file, and not the official debian archive keyring, when verifying
packages. This is useful when using an unofficial package repository (e.g. a self-hosted aptly)
--copy-debootstrap-keyring-file
Copy the keyring file specified by --debootstrap-keyring-file into /etc/apt/trusted.gpg.d and
/usr/share/keyrings in the generated image. Note that the prefered way to install and manage a
keyring is to install it as a package using --extra-packages.
--boot-manager|-bm<grub|syslinux>
Select what type of boot manager to use inside the image. The default is Grub, but you can as well
decide to use syslinux if you prefer.
--boot-type|-bt<mbr|uefi>
Select how to boot the image: using legacy MBR-style (aka BIOS or CSM) boot, or UEFI. The default
is mbr. Selecting uefi requires the use of Grub as the boot manager, and will set up an extra EFI
System Partition inside the image to support UEFI boot.
--architecture|-<amd64|arm64>
Select the architecture to target for the output image. This will not cross build for that
architecture, but will pick the right architecture-specific components. Supported options are
"amd64" and "arm64"; "amd64" is default.
--sources.list-mirror|-s<source-list-mirror>
URL to use when building the sources.list inside the chroot. If this option is omitted, then the
global httpredir.debian.org redirector is used. For example, you can use:
http://ftp.fr.debian.org/debian--minimal
Without this option, the following packages will also be installed: bash-completion (and
/etc/bash.bashrc will be setup to use bash-completion), joe (the text editor), most, GNU screen,
less and vim. If you believe that more things should be added in the non-minimal image,
suggestions are welcome.
--azure|-az
Build an image for the Microsoft Azure cloud. Note that this option is incompatible with the
--automatic-resize|-ar option, which will be ignored.
--image-size|-is<image-size>
Select the image size (default to 2 GBytes if this option is omitted). Only useful if you need to
use a custom script hook (see below).
--automatic-resize|-ar
Reduce the image to the minimum HDD size possible. The partition of the image will be first
shrinked with resize2fs -M, then the space it takes will be used to do a 2nd resize2fs adding a
bit of extra space for the operating system to write runtime data (see below). Since this option
takes a lot of time, it is disabled by default.
--automatic-resize-space|-ars<supplementary-space>
Size of the supplementary space added to the partition after it is resized to the minimum. If this
option is omitted, then 50G is used. If --automatic-resize isn't used, then it is useless to set
this option, which will be ignored.
--login|-l<user-login>
Change the login name (default to debian) for the user created by Cloud-Init.
--password|-p<root-password>
Defines a default root password for your image. This option is dangerous, first because it will
show the root password to the user of the computer building the image if using "ps", then also
because it is best to not set a default root password at all if possible. However, this option is
still there, because sometimes, you need to be able to debug your image, and login through the web
console of horizon. In a production environment, do not use this option.
--octavia-agent
Install the Octavia agent in order to build an Octavia Amphorae image, that will be used for HA
proxy based Load Balancer as a Service.
--manila-agent
Install the Manila agent in order to build OpenStack Manila share image.
--trove-agent
Install the Trove agent in order to build the OpenStack Trove image.
--extrepo<openstack-release>
Setup the OpenStack extrepo repository. This is mainly useful when the --octavia-agent option is
use, so the unofficial OpenStack backports repositories can be used to setup the agent.
--kernel-from-backports<yes/no>
If set to yes, install the kernel from official Debian backports.
--editor<nano,vim>
List of editors to install in image.
--default-editor</bin/nano,/usr/bin/joe,/usr/bin/vi>
Set default alternative editor
--hook-script|-hs<hook-script>
If you wish to further customize the generated cloud image, you can use a hook script. When
called, build-openstack-debian-image will fill up some BODI_* environment variable for the hook
script to use as per below:
BODI_CHROOT_PATH path where the image is mounted
BODI_RELEASE name of the Debian release that is being bootstraped
--newer-qemu
Do not use the -o compat=0.10 option when converting to raw, and also, use -p -W -m 8 (ie: multi-
thread + progress indicator convert).