Configuration of instance creation

The kind of instance created can be customized via a global settings file, as well as by variant settings files. The default global file may or may not be installed by default, as the instance creation will work without it. The creation scripts will look for it in $sysconfdir/default/ganeti-instance-image, so if you have run configure with the parameter --sysconfdir=/etc, the final filename will be /etc/default/ganeti-instance-image.

The following settings will be examined in this file:

CDINSTALL

If 'yes' only setup disks for a cd based install or manual installation via other means. It will not deploy any images or create any partitions. (default: no)

SWAP

Create a swap partition (default: yes)

SWAP_SIZE

Manually set the default swap partition size in MB (default: size of instance memory)

FILESYSTEM

Set which filesystem to format the disks as. Currently only supports ext3 or ext4. (default: ext3)

KERNEL_ARGS

Add additional kernel boot parameters to an instance. This currently only works on booting a kernel from inside.

IMAGE_NAME

Name for the image to use. Generally they will have names similar to: centos-5.4, debian-5.0, etc. The naming is free form depending on what you name the file itself.

IMAGE_TYPE

Create instance by either using a gzipped tarball, file system dump, or an image created by qemu-img. Accepts either 'tarball', 'dump', or 'qemu'. (default: dump)

IMAGE_DIR

Override default location for images. (default: $localstatedir/cache/ganeti-instance-image)

ARCH

Define the architecture of the image to use. Accepts either 'x86' or 'x86_64'.

CUSTOMIZE_DIR

A directory containing customization script for the instance. (by default $sysconfdir/ganeti/instance-image.d) See "Customization of the instance" below.

IMAGE_DEBUG

Enable verbose output for instance scripts by setting to 1. *(default: 0)

Note that the settings file is important on the node that the instance is installed on, not the cluster master. This is indeed not a very good model of using this OS but currently the OS interface in ganeti is limiting.