http://docs.ocselected.org/openstack-manuals/kilo/image-guide/content/ch_creating_images_automatically.html