Skip to content

Instantly share code, notes, and snippets.

/- Secret

Created February 10, 2016 21:33
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 anonymous/2ec054214181470181e2 to your computer and use it in GitHub Desktop.
Save anonymous/2ec054214181470181e2 to your computer and use it in GitHub Desktop.
image=cirros-0.3.4-x86_64-disk.img
wget http://download.cirros-cloud.net/0.3.4/$image
qemu-img convert -f qcow2 -O raw $image ${image%.*}.raw
glance image-create --name "cirros_3.4_raw" --is-public true --disk-format \
raw --container-format bare --file /tmp/${image%.*}.raw
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment