Ask Your Question
1

Boot ISO image on openstack installed on Ubuntu

asked 2013-06-19 21:27:59 -0600

Avi gravatar image

updated 2013-06-19 21:45:13 -0600

Hi,

I am trying to boot-up my own ISO file on openstack Grizzly (which was installed on top of Ubuntu). The steps I am following are as follows:

(1). Create an image, providing "iso" as the input format.

glance image-create --name test_iso_image --disk-format iso --container-format bare --file /opt/stack/devstack/files/images/myimage.iso --property hw_vif_model=e1000 --property hw_disk_bus='ide'

(2). Start an instance with the created image and flavor as "medium".

nova boot test_image --image "7b48108e-9778-41bf-820d-cdadb5517a93" --flavor 3

With this approach, I am finding that the instance is created, but no drive is attached to the image, other than the CDROM. So, the installation stops, complaining that there is no disk to boot into.

The same ISO image, in VMDK format boots up fine. The aim is to boot from the ISO image directly.

I saw posts that this issue was fixed in openstack on XENServer - is this still a problem on openstack on Ubuntu?

edit retag flag offensive close merge delete

Comments

VMDK format is already installed on the machine for openstack grizzly installation on ubuntu, thus booting will be fine if it is done in that way but I suppose there is some other method for booting ISO directly, not the one you have followed.

nishtha gravatar imagenishtha ( 2013-07-19 12:59:15 -0600 )edit

3 answers

Sort by » oldest newest most voted
0

answered 2013-06-20 15:35:52 -0600

Avi gravatar image

I tried to create a bootable volume, and boot up from that, but I am getting the error message "No bootable device".

(1). I created an image using the glance command:

glance image-create --name test_iso_image --disk-format iso --container-format bare --file /opt/stack/devstack/files/images/myimage.iso --property hw_vif_model=e1000 --property hw_disk_bus='ide'

(2). Then, I created a volume with this image:

nova volume-create --image-id eaf11e96-a5a3-4064-a308-7c0e66ab6edb --display-name test-bootable-vol 4

(3). I booted an instance with the created volume:

nova boot ultra_volume_test --flavor 3 --key_name keypair --block_device_mapping vda=c363ef1d-c879-4cd2-b315-15c9f2f9847c::0

Even with these steps, I got the final error message: "No bootable device".

edit flag offensive delete link more

Comments

nova boot --flavor 2 --key_name mykey --block_device_mapping vda=ID:::0 boot-from-vol-test

should be 3 colon。 you missing one, is that the reason?

chenrano2002 gravatar imagechenrano2002 ( 2014-03-21 22:56:11 -0600 )edit
0

answered 2014-03-21 10:03:16 -0600

updated 2014-03-21 10:04:48 -0600

please see this use guide: boot from volume. docs.openstack.org/user-guide/content/boot_from_volume.html

The nova command should be like:

nova boot --flavor FLAVOR --block-device source=SOURCE,id=ID,dest=DEST,size=SIZE,shutdown=PRESERVE,bootindex=INDEX NAME

edit flag offensive delete link more
0

answered 2013-06-20 07:53:11 -0600

Damon Tong gravatar image

I have tried the same thing as you did. A hot fix to make the iso bootable is to create a volume and attach it to the instance. Then the installation can continue.

HOWEVER, this is not the final solution. When making snapshot of the instance, it will take a VERY long time. AND launch from the snapshot will report an error because the new created instance has no volume attached to it.

edit flag offensive delete link more

Comments

I tried to create a bootable volume, and boot up from that, but I am getting the error message "No bootable device".

Avi gravatar imageAvi ( 2013-06-20 15:35:44 -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: 2013-06-19 21:27:59 -0600

Seen: 4,741 times

Last updated: Mar 21 '14