<html><head></head><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; ">If there is a separate kernel and ramdisk needed for the boot from volume, it is pulled from image properties. Otherwise it is basically useless.<div><br></div><div>Vish</div><div><br><div><div>On May 26, 2012, at 8:22 AM, Lorin Hochstein wrote:</div><br class="Apple-interchange-newline"><blockquote type="cite"><div style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; "><div>I'm trying to figure out boot from volume, both so I can use it and so I can add it to the docs. </div><div><br></div><div><br></div><div> It seems that when calling "nova boot" or using Horizon, you need to specify an image. Why is that?</div><div><br></div><div>I naively tried to create a volume image by creating a volume and then doing on my volume server:</div><div><br></div><div>dd if=/tmp/precise-server-cloudimg-amd64-disk1.img of=/dev/nova-volumes/volume-0000000d</div><div><br></div><div>Then I tried this:</div><div><br></div><div><div>$ nova boot --flavor 2 --key_name lorin --block_device_mapping /dev/vda=13:::0 test</div><div><br></div><div>Which generated an error:</div><div><br></div><div>Invalid imageRef provided. (HTTP 400)</div></div><div><br></div><div>If I try to specify an image, it at least attempts to boot:</div><div><br></div><div><div>$ nova boot --flavor 2 --key_name lorin --block_device_mapping /dev/vda=13:::0 --image 7d6923d9-1c13-4405-ba0c-41c7487dd6bc test</div><div><br></div></div><div>I noticed that the devstack example specifies an image: <a href="https://github.com/openstack-dev/devstack/blob/master/exercises/boot_from_volume.sh">https://github.com/openstack-dev/devstack/blob/master/exercises/boot_from_volume.sh</a>:</div><div><br></div><div><div>VOL_VM_UUID=`nova boot --flavor $INSTANCE_TYPE --image $IMAGE --block_device_mapping vda=$VOLUME_ID:::0 --security_groups=$SECGROUP --key_name $KEY_NAME $VOL_INSTANCE_NAME | grep ' id ' | get_field 2`</div></div><div><br></div><div>Looking at nova/api/openstack/compute/servers.py, it does look like _image_uuid_from_href() is called regardless of whether we are booting from volume or not. What is "--image" used for when booting from volume?</div><div><br></div><br><div apple-content-edited="true">
<div style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; "><div style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; "><div>Take care,</div><div><br></div><div>Lorin</div><div>--</div><div>Lorin Hochstein</div><div>Lead Architect - Cloud Services</div><div>Nimbis Services, Inc.</div><div><a href="https://www.nimbisservices.com/">www.nimbisservices.com</a></div><div><br></div></div><br class="Apple-interchange-newline"></div><br class="Apple-interchange-newline"><br class="Apple-interchange-newline">
</div>
<br></div>_______________________________________________<br>Mailing list: <a href="https://launchpad.net/~openstack">https://launchpad.net/~openstack</a><br>Post to : <a href="mailto:openstack@lists.launchpad.net">openstack@lists.launchpad.net</a><br>Unsubscribe : <a href="https://launchpad.net/~openstack">https://launchpad.net/~openstack</a><br>More help : <a href="https://help.launchpad.net/ListHelp">https://help.launchpad.net/ListHelp</a><br></blockquote></div><br></div></body></html>