Skip to content

Instantly share code, notes, and snippets.

@kalaksi
Created June 6, 2018 21:32
Show Gist options
  • Save kalaksi/eda7c6287aaf8320dafb4ddcb2d76a80 to your computer and use it in GitHub Desktop.
Save kalaksi/eda7c6287aaf8320dafb4ddcb2d76a80 to your computer and use it in GitHub Desktop.

Manual creation of OpenStack config drive

Intended for systems that expect OpenStack format config drive.
The essential pieces are disk label and file structure.
Here's how to generate one with user-data for cloud-init:

mkdir -p cloud-init/openstack/latest
$EDITOR cloud-init/openstack/latest/user_data
genisoimage -quiet -output config-disk.img -volid config-2 -joliet -rock cloud-init/
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment