查看网络列表
[root@controller ~]# openstack network list | ||
---|---|---|
ID | Name | Subnets |
0419d666-2a1e-4c5f-9331-b54ab7718b8b | public | e97beba0-d8ae-4bc6-9497-abad9200cb60 |
36878f8d-9df4-4e8a-9972-4c236d9c9eca | private | 2e2086da-6acb-499e-a22e-a3906bcf48e7 |
查看虚拟机类型列表
[root@controller ~]# openstack flavor list | ||||||
---|---|---|---|---|---|---|
ID | Name | RAM | Disk | Ephemeral | VCPUs | Is Public |
84700deb-663e-43fb-b604-26be64ea052d | 基础型 | 1024 | 50 | 50 | 1 | True |
查看镜像列表
[root@controller ~]# openstack image list | ||
---|---|---|
ID | Name | Status |
a56330e7-79d7-4639-a68f-366ac344bfe2 | HTU-CentOS7.2 | active |
eccfee07-c2c9-4e6e-96a2-b4350162ec41 | cirros | active |
查看安全组列表
[root@controller ~]# openstack security group list | ||||
---|---|---|---|---|
ID | Name | Description | Project | Tags |
1f24ec9a-b27e-448e-b43a-140c62353f3d | default | Default security group | b03aac1f6ae94f7bada2afa8f2064312 | [] |
499caef4-117b-46c9-9e5d-0ce5edc1df63 | default | Default security group | [] | |
ed06d8ce-34ec-4b13-bc91-1d7983db7a63 | default | Default security group | ad8d7966165b4619aab21300e50f7020 | [] |
创建虚拟机
[root@controller ~]# openstack server create --image HTU-CentOS7.2 --flavor 基础型 --nic net-id=0419d666-2a1e-4c5f-9331-b54ab7718b8b test06 | |
---|---|
Field | Value |
OS-DCF:diskConfig | MANUAL |
OS-EXT-AZ:availability_zone | |
OS-EXT-SRV-ATTR:host | None |
OS-EXT-SRV-ATTR:hypervisor_hostname | None |
OS-EXT-SRV-ATTR:instance_name | |
OS-EXT-STS:power_state | NOSTATE |
OS-EXT-STS:task_state | scheduling |
OS-EXT-STS:vm_state | building |
OS-SRV-USG:launched_at | None |
OS-SRV-USG:terminated_at | None |
accessIPv4 | |
accessIPv6 | |
addresses | |
adminPass | J3WkjkBCVGkp |
config_drive | |
created | 2019-05-14T02:15:36Z |
flavor | 基础型 (84700deb-663e-43fb-b604-26be64ea052d) |
hostId | |
id | 04f9ce61-148a-469b-b9f3-180555be0a78 |
image | HTU-CentOS7.2 (a56330e7-79d7-4639-a68f-366ac344bfe2) |
key_name | None |
name | test06 |
progress | 0 |
project_id | b03aac1f6ae94f7bada2afa8f2064312 |
properties | |
security_groups | name='default' |
status | BUILD |
updated | 2019-05-14T02:15:36Z |
user_id | 06a72bdd76d247fca8328ee17360449e |
volumes_attached |