← Back to team overview

openstack team mailing list archive

Re: [Openstack-volume] boot from volume

 

I've been playing with boot from volume for a bit. You can use it from the
'euca-run-instances', use the '-b, --block-device-mapping' option to
specify the volume (or snapshot) e.g.
#euca-run-instances -b /dev/sda=vol-0000000f -b /dev/sdb=vol-0000000c
ami-00000015 -t m1.tiny --kernel aki-00000014 --ramdisk ari-00000013

I recently added the functionality in novaclient to boot from volume (or
snapshot) using the OS API. The changes are still pending review. But you
can pull from my public repository to get the changes:
https://github.com/rackspace/python-novaclient/

The usage is:
root@server9-clone:~/openstack/creds/novaadmin# nova boot ---help
usage: nova boot [--flavor <flavor>] [--image <image>] [--meta <key=value>]
                 [--file <dst-path=src-path>] [--key_path [<key_path>]]
                 [--key_name <key_name>] [--user_data <user-data>]
                 [--availability_zone <availability-zone>]
                 [--security_groups <security_groups>]
                 [--block_device_mapping <dev_name=mapping>]
                 <name>

The format of mapping is:
<dev_name=<id>:<type>:<size(GB)>:<delete_on_terminate>

e..g
nova boot --flavor 1 --image 50 --block_device_mapping
/dev/vda=10:snap:10:True

Hope it helps!

On Thu, Nov 3, 2011 at 2:00 PM, Vishvananda Ishaya <vishvananda@xxxxxxxxx>wrote:

> Passing this on to the main openstack list because I'm not sure that the
> boot from volume athours and users are on this mailing list.
> On Nov 3, 2011, at 1:35 PM, Renuka Apte wrote:
>
> Hello,****
> ** **
> What is the current state of “boot from volume”? Is there any
> documentation about how it works, design etc. Who is the best point of
> contact for more information?****
> ** **
> Is anyone in the community currently using this feature?****
> ** **
> Thanks,****
> Renuka.****
> --
> Mailing list: https://launchpad.net/~openstack-volume
> Post to     : openstack-volume@xxxxxxxxxxxxxxxxxxx
> Unsubscribe : https://launchpad.net/~openstack-volume
> More help   : https://help.launchpad.net/ListHelp
>
>
>
> --
> Mailing list: https://launchpad.net/~openstack-volume
> Post to     : openstack-volume@xxxxxxxxxxxxxxxxxxx
> Unsubscribe : https://launchpad.net/~openstack-volume
> More help   : https://help.launchpad.net/ListHelp
>
>

Follow ups

References