Ask Your Question

What configurations are needed to enable boot from volume?

asked 2013-04-18 14:01:17 -0500

Paras Pradhan gravatar image

updated 2013-04-21 20:54:31 -0500

smaffulli gravatar image

I created a volume and mounted it on instance. Then i dd the ubuntu image (dd if=ubuntu-12.04-server-cloudimg-amd64-disk1.img of=/dev/vdb) to it.

Now when I sping another instance using boot from volume option from the same volume using dashboard, it is saying "no bootable device" from dashboard vnc console. What I missed here?

edit retag flag offensive close merge delete

1 answer

Sort by ยป oldest newest most voted

answered 2013-04-18 15:56:03 -0500

I'm using ceph for volumes and this worked for me:

  • Convert image from qcow2 to raw (apt-get install -y qemu-tools)

qemu-img convert -f qcow2 -O raw precise-server-cloudimg-amd64-disk1.img precise-server-cloudimg-amd64-disk1.raw

  • Add raw image to glance

glance image-create --name ubuntu-server-12.04.2-amd64-raw --disk-format=raw --container-format=bare --is-public True < precise-server-cloudimg-amd64-disk1.raw

  • Create volume from image

cinder create --image-id {id of image} --display-name {name of volume} {size of volume}

Then choose created volume to boot instance from.

edit flag offensive delete link more


Could you tell me why it can't be an img file? I think it worked well before.

7.NoJ gravatar image7.NoJ ( 2014-08-13 01:56:50 -0500 )edit

Get to know Ask OpenStack

Resources for moderators

Question Tools


Asked: 2013-04-18 14:01:17 -0500

Seen: 1,382 times

Last updated: Apr 21 '13