Skip to content

Instantly share code, notes, and snippets.

@ccamacho
Last active April 29, 2016 19:46
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save ccamacho/da1f121dd074276e252840f215c911f1 to your computer and use it in GitHub Desktop.
Save ccamacho/da1f121dd074276e252840f215c911f1 to your computer and use it in GitHub Desktop.
commands image edit
sudo yum install libguestfs-tools -y
mkdir /tmp/overcloud-full
guestmount -a overcloud-full.qcow2 -i --rw /tmp/overcloud-full
##Make changes here..
#Edit /opt/puppet-modules/.... to fit your needs...
sudo umount /tmp/overcloud-full
glance image-delete overcloud-full
glance image-create --name overcloud-full --file overcloud-full.qcow2 --disk-format qcow2 --container-format bare
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment