1创建浮动IP
neutron floatingip-create ext-net
2创建一个flavor类型
nova flavor-create clouds 6 1024 20 2
3创建镜像
glance image-create --name "centos" --disk-format qcow2 --container-format bare --porogress</opt/images/centos6.5.qcow2
4nova命令创建vm取名instance
nova boot --image centos --flavor clouds --nic net-id=(int-net_id) instance
5绑定浮动IP
neutron floatingip-associate ext-net_id port
(port查看方式 neutron port-list)
neutron floatingip-create ext-net
2创建一个flavor类型
nova flavor-create clouds 6 1024 20 2
3创建镜像
glance image-create --name "centos" --disk-format qcow2 --container-format bare --porogress</opt/images/centos6.5.qcow2
4nova命令创建vm取名instance
nova boot --image centos --flavor clouds --nic net-id=(int-net_id) instance
5绑定浮动IP
neutron floatingip-associate ext-net_id port
(port查看方式 neutron port-list)