Mogan bare metal provisioning supports two types of images, partition images and whole disk images.
But we only support local boot, so it’s important to note that in order
for this to work, the partition image being deployed with Mogan must
contain grub2
installed within it.
The configuration drive is used to store server specific metadata.
Cloud-init
has a collection of data source modules, so when building the
image with disk-image-builder we have to define DIB_CLOUD_INIT_DATASOURCES
environment variable and set the appropriate sources to enable the configuration
drive, for example:
DIB_CLOUD_INIT_DATASOURCES="ConfigDrive, OpenStack" disk-image-create -o fedora-cloud-image fedora baremetal grub2
For more information see how to configure cloud-init data sources.
The disk-image-builder can be used to create user images required for deployment and the actual OS which the user is going to run.
Partition images
$ DIB_CLOUD_INIT_DATASOURCES="ConfigDrive, OpenStack" disk-image-create ubuntu baremetal grub2 dhcp-all-interfaces cloud-init-datasources -o my-image
Whole disk images
$ DIB_CLOUD_INIT_DATASOURCES="ConfigDrive, OpenStack" disk-image-create ubuntu vm dhcp-all-interfaces cloud-init-datasources -o my-image
Except where otherwise noted, this document is licensed under Creative Commons Attribution 3.0 License. See all OpenStack Legal Documents.