# 查看可用实例类型 openstack flavor list # 查看可用启动镜像 openstack image list # 查看可用网络 openstack network list # 查看可用安全组 openstack security group list # 启动一个实例 openstack server create --flavor m1.medium --image win7_x64 --nic net-id=6e85dfe1-f976-4407-87ae-a217a46c9dff --security-group default test-instance # 查看创建的实例 openstack server list # 查看浏览器vnc窗口访问连接 openstack console url show test-instance # 查看浮动IP池 openstack ip floating pool list # 从浮动IP池中获取一个浮动IP openstack ip floating create nova # 查看已经获取的浮动IP openstack ip floating list # 绑定浮动IP给实例 openstack ip floating add 192.168.10.129 test-instance # 使用nova命令启动实例 nova boot --flavor m1.medium --image win7_x64 --nic net-id=6e85dfe1-f976-4407-87ae-a217a46c9dff --security-group default test-instance