Ask Your Question

Howto install cloud-init into a CentOS image

asked 2013-04-02 07:49:03 -0500

lorin gravatar image

updated 2013-04-04 02:40:37 -0500

I'd like to build a CentOS 6.3 image with cloud-init. Is there a cloud-init RPM compatible with CentOS 6.3? If so, where can I find it?

edit retag flag offensive close merge delete


How are you creating CentOS images? I am using Boxgrinder meta-appliance for creating CentOS images (qcow2 format). The VM images work fine with Openstack but as soon as I add the cloud-init package, I am unable to ssh to the VM although the VM is ping-able.

imtiaz.chowdhury gravatar imageimtiaz.chowdhury ( 2013-12-03 12:49:36 -0500 )edit

1 answer

Sort by » oldest newest most voted

answered 2013-04-03 00:57:00 -0500

tim-bell gravatar image

At CERN, we just use the cloud-init package from EPEL.If you search for cloud-init and EPEL, you'll find the details. It works well.

edit flag offensive delete link more


I managed to build a CentOS image with cloud-init package from EPEL, everything seems to be working except that when I have ephemeral space allocated, the root filesystem doesn't get resize to the correct allocated space. Have you seen this issue? Thanks for your help.

spcla1 gravatar imagespcla1 ( 2013-06-20 12:17:54 -0500 )edit

See, and in particular, the centos-image-resize script which must be installed in the image

lorin gravatar imagelorin ( 2013-06-20 22:45:11 -0500 )edit

Hi Lorin, yes I did follow that instruction and downloaded the script centos-image-resize script. It worked with vm-flavor that doesn't have ephemeral disk allocated but if I select the vm-flavor with ephemeral disk, it creates the correct 2nd partition but the root disk doesn't get resized.

spcla1 gravatar imagespcla1 ( 2013-06-21 13:27:52 -0500 )edit

@splca1 See for more details on how to use this script, I also recommend you ask a separate question on about this

lorin gravatar imagelorin ( 2013-06-23 10:43:31 -0500 )edit

I tried executing the instructions from, I can't seem to get my instances to resize. I see the disk size matches the flavor(/dev/vda), however the / partition will only show the qcow image size(2GB). Any special flags needed for glance import?

peterborghard gravatar imagepeterborghard ( 2013-07-27 15:28:55 -0500 )edit

Your Answer

Please start posting anonymously - your entry will be published after you log in or create a new account.

Add Answer

Get to know Ask OpenStack

Resources for moderators

Question Tools



Asked: 2013-04-02 07:49:03 -0500

Seen: 4,431 times

Last updated: Apr 04 '13