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
The following settings will be examined in this file:
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)
Create a swap partition (default: yes)
Manually set the default swap partition size in MB (default: size of instance memory)
Set which filesystem to format the disks as. Currently only supports ext3 or ext4. (default: ext3)
Add additional kernel boot parameters to an instance. This currently only works on booting a kernel from inside.
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.
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)
Override default location for images. (default:
Define the architecture of the image to use. Accepts either 'x86' or 'x86_64'.
A directory containing customization script for the instance. (by default
$sysconfdir/ganeti/instance-image.d) See "Customization of the instance" below.
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.