Ask Your Question

manipulating an "img" image for glance

asked 2016-09-01 16:22:57 -0500

fifi gravatar image

updated 2016-09-01 16:23:25 -0500

I have downloaded an Ubuntu cloud image in "img" format at: I'm gonna manipulate this image before uploading it into the glance. For example, I need to install some specific applications on the image and then upload it into the glance. I went over Openstack image guide document ( It didn't help. I also don't wana make an image manually with "virtual machine manager" for some specific reasons.

Does any one know how I can manipulate the "img" image?


edit retag flag offensive close merge delete

2 answers

Sort by ยป oldest newest most voted

answered 2016-09-13 19:55:06 -0500

fifi gravatar image

I have already tried many different image tools. In my opinion, creating the image with Diskimage-builder and then manipulated the resulted image by guestfish is the best solution. You can almost create any type of image with various capabilities with these two strong tools. I highly recommend them.

edit flag offensive delete link more



also I would suggest virt-sysprep to clean instances before uploading to glance :)

amedeo-salvati gravatar imageamedeo-salvati ( 2016-09-14 08:58:20 -0500 )edit

You're right. virt-sysprep is a must, especially for cleaning virtual mac address.

fifi gravatar imagefifi ( 2016-09-14 13:50:15 -0500 )edit

answered 2016-09-01 16:38:02 -0500

kaustubh gravatar image

There are various tools available that can automate the image building process.

My personal favorite is Diskimage-builder, which allows you to define "elements" that can be used to customize the image. Please have a look at the documentation to know more.

If installing the application is not going to be much of an overhead, I might suggest passing an installing script as user-data during the boot process of the instance.

edit flag offensive delete link more

Get to know Ask OpenStack

Resources for moderators

Question Tools

1 follower


Asked: 2016-09-01 16:22:57 -0500

Seen: 194 times

Last updated: Sep 13 '16