Last active
December 21, 2017 15:20
-
-
Save zhanghui9700/798bccbd29c0447bb05d59a5c100c598 to your computer and use it in GitHub Desktop.
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
normal boot
nova boot --image <image id> --flavor <flavor id> --availability-zone <az>:<compute> --nic net-id=<network id> <vm name>
boot from volume
nova boot --flavor <flavor id> --nic net-id=<network id> --block-device id=<image id>,source=image,dest=volume,size=<GB size>,bootindex=0,shutdown=remove vm-name
boot from volume并指定IP
nova boot --flavor <flavor> \ --nic net-id=<network-id>,v4-fixed-ip=<subnet-ip> \ --block-device id=<glance image id>,source=image,dest=volume,size=<size GB>,bootindex=0,shutdown=remove \ vm-name
eg:
nova boot --flavor m1.tiny \ --nic net-id=a18d722f-1edf-4e17-a86d-a96c45fcaaaf,v4-fixed-ip=192.168.111.200 \ --block-device id=027e7611-c85f-4097-8d66-eab63f620987,source=image,dest=volume,size=1,bootindex=0,shutdown=remove \ web-server-01
multi Ethernet
openstack server create --flavor m1.small --image a9994245-1747-4dba-8ba1-7aba34ee56ce --nic net-id=5ddb27d1-adc4-44af-9447-70e75ece4dda --nic net-id=e416b526-a2cb-4676-a8b0-f32a7c97ece8 multi-nets-instance01