从镜像创建云主机失败

提问于 2017-03-01 19:59:11 -0500

meikidd 图像

按照官方文档的示例,从镜像创建云主机失败。提示>No volume with a name or ID of 'volume,id=af662fee-3dc6-46c3-b159-e874daa5dbd3,dest=volume,shutdown=preserve' exists.

感觉是把source后面的字符都当成volume id了。

创建命令如下:openstack server create --image cirros-0.3.4-x86_64 --flavor a2.tiny --block-device source=volume,id=af662fee-3dc6-46c3-b159-e874daa5dbd3,dest=volume,shutdown=preserve --nic net-id=a6afe7d7-0a7b-4356-b749-bc2dced0d28e --security-group default --key-name keypair my-instance

官方文档链接:https://docs.openstack.org/user-guide/cli-nova-launch-instance-from-volume.html#boot-instance-from-image-and-attach-non-bootable-volume

截图:
https://cloud.githubusercontent.com/assets/376338/23489589/564c691a-ff2e-11e6-9a28-436a8653d482.png (截图)

edit retag flag offensive close merge delete