Ask Your Question

instance and image [closed]

asked 2015-01-26 23:11:48 -0500

joo gravatar image

i can upload ubuntu image. but i can't create instance. where can i download image? and when i create instance from image i could see error message. plz help..

edit retag flag offensive reopen merge delete

Closed for the following reason not a real question by larsks
close date 2015-02-13 11:10:04.520401


Hey hi, from your statement I assume that your instance is getting into error state after you say nova boot command. Can you put your nova log files snippets over here?

Yashpal Beppurana gravatar imageYashpal Beppurana ( 2015-01-27 03:52:43 -0500 )edit

If you want useful answers, please update your question to provide with more information. What ubuntu image are you trying to upload? Where did you get it? What error message did you see? Have you checked your server logs for more information?

larsks gravatar imagelarsks ( 2015-02-13 11:10:42 -0500 )edit

3 answers

Sort by ยป oldest newest most voted

answered 2015-02-13 10:44:54 -0500

Hi, First try with simple cirros image and later you can try creating instance from ubuntu image. You can download ubuntu image from . To get more images refer . Recheck whether your image is downloaded correctly. Then verify your image format using file filename.img. Upload the image using

glance image-create --name "IMAGELABEL" --disk-format FILEFORMAT --container-format bare --is-public True--progress < IMAGEFILE.img

Finally follow the steps in guide to launch instance. If you still get error after doing all these then edit your question adding more details like error, logs info.

edit flag offensive delete link more

answered 2015-02-13 04:03:02 -0500

1-Cloud gravatar image

updated 2015-02-18 05:10:35 -0500

create a base template of Ubuntu. then, upload the image file to glance using the below command.

glance image-create --name Image-ID --disk-format qcow2 --container-format bare --is-public True --progress < Image-Name.img

Now launch an isance from this image.

edit flag offensive delete link more

answered 2015-02-13 10:29:19 -0500

yatin gravatar image

There can be many reason for an instance to get into error state, it can be only found out by seeing the logs, most common cause is no valid compute host found(lack of resources, or hypervisor doesn't support the image, or image metadata is set to resources that are higher than flavor you are using to launch the instance, etc ) or compute node is down. You can try ubuntu cloud images from the below link: Then boot image using:

nova boot --flavor <flavor_id> --user-data=./mydata.txt  --image image-id <Instance_name>

where mydata.txt shoud contain cloud-config data as follows:-

password: <password_touse_with_instance>
chpasswd: { expire: False }
ssh_pwauth: True

If you still are not able to launch an instance share the nova-compute logs.

edit flag offensive delete link more

Get to know Ask OpenStack

Resources for moderators

Question Tools



Asked: 2015-01-26 23:11:48 -0500

Seen: 210 times

Last updated: Feb 18 '15