Ask Your Question
0

Image Issue

asked 2014-07-01 09:21:27 -0600

Deeptanshu gravatar image

Hi,

I am trying to create the images with the suggested documents of openstack,but having many issues with it. Main issue with the image auto resizing. I have selected the 10 GB image while creating the image. But when i am using that image with instance it is not able to partition as per the flavor. Always disk partition is showing 10GB for all the flavors . Metadata service is working fine as i am able to insert the KEYS.

Please suggest any solution or clue to resolve it.

http://docs.openstack.org/image-guide...

edit retag flag offensive close merge delete

2 answers

Sort by ยป oldest newest most voted
1

answered 2014-07-02 00:47:49 -0600

SGPJ gravatar image

For more details on cloud-init, please refer to this link: http://cloudinit.readthedocs.org/en/l...

edit flag offensive delete link more
0

answered 2014-07-01 15:17:56 -0600

mpetason gravatar image

You would need cloud-init and a way to grow the partition. It's different between ubuntu and centos so it depends on what type of linux volume you are deploying. If you are deploying windows then you need to sysprep and look at other ways to grow the instance volume.

https://launchpad.net/cloud-init

Your best bet would be to download one of the ubuntu + centos qcow2 images, upload them, launch them, then go through and see what settings they use by default in /etc/cloud.cfg. You can mimic what they are doing by using similar options in your cloud config file. You can also look at what packages are installed like growpart and cloud-init and others.

edit flag offensive delete link more

Comments

Hi,

Thanks tried all the suggested methods already , no result.

Let me try some other alternative.

Deeptanshu gravatar imageDeeptanshu ( 2014-07-02 06:36:08 -0600 )edit

The information above is how you build an image for openstack and have the root volume expand based on the specified amount in the flavor. You may be missing a step. I would recommend looking at cloud init in other images that are working properly and start from there.

mpetason gravatar imagempetason ( 2014-07-02 10:04:40 -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

1 follower

Stats

Asked: 2014-07-01 09:21:27 -0600

Seen: 104 times

Last updated: Jul 02 '14