Launch an instance from a volume

从image boot,并且attach一个no-bootable volume:

$ nova boot --flavor 2 --image 98901246-af91-43d8-b5e6-a4506aa8f369 \
  --block-device source=volume,id=d620d971-b160-4c4e-8652-2513d74e2080,dest=volume,shutdown=preserve \
  myInstanceWithVolume

从image创建bootable volume,并从volume启动:

$ nova boot --flavor 2 \
  --block-device source=image,id=484e05af-a14d-4567-812b-28122d1c2260,dest=volume,size=10,shutdown=preserve,bootindex=0 \
  myInstanceFromVolume

http://docs.openstack.org/user-guide/cli_nova_launch_instance_from_volume.html

 在cinder,从image创建bootable volume:

cinder create --image-id 66a81a2c-617f-40ee-b1cb-4a3bd4a82c6e --display-name my-bootable-vol 1

posted on 2015-12-25 14:37  allcloud  阅读(392)  评论(0编辑  收藏  举报

导航