Ask Your Question
0

Howto install cloud-init into a CentOS image

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

lorin gravatar image

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

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

Comments

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 -0600 )edit

1 answer

Sort by ยป oldest newest most voted
3

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

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

Comments

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 -0600 )edit

See http://docs.openstack.org/trunk/openstack-image/content/ch_openstack_images.html, and in particular, the centos-image-resize script https://github.com/flegmatik/centos-image-resize which must be installed in the image

lorin gravatar imagelorin ( 2013-06-20 22:45:11 -0600 )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 -0600 )edit

@splca1 See http://lists.openstack.org/pipermail/openstack-operators/2013-June/003131.html for more details on how to use this script, I also recommend you ask a separate question on ask.openstack.org about this

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

I tried executing the instructions from https://github.com/flegmatik/centos-image-resize, 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 -0600 )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

2 followers

Stats

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

Seen: 4,415 times

Last updated: Apr 04 '13