[root@ip110 ~]# . demo.token [root@ip110 ~]<demo>#
[root@ip110 ~]<demo># openstack server create --flavor dyw.tiny --image cirros5 \ --nic net-id=6ed4de53-ecc1-4c79-a9d2-8e511b26557a --security-group default \ --availability-zone nova:ip110:ip110 cirros5 --wait +-----------------------------+----------------------------------------------------------+ | Field | Value | +-----------------------------+----------------------------------------------------------+ | OS-DCF:diskConfig | MANUAL | | OS-EXT-AZ:availability_zone | nova | | OS-EXT-STS:power_state | Running | | OS-EXT-STS:task_state | None | | OS-EXT-STS:vm_state | active | | OS-SRV-USG:launched_at | 2020-06-06T08:04:53.000000 | | OS-SRV-USG:terminated_at | None | | accessIPv4 | | | accessIPv6 | | | addresses | selfservice=192.168.10.44 | | adminPass | MDdefcQG4d8q | | config_drive | | | created | 2020-06-06T08:04:38Z | | flavor | dyw.tiny (0) | | hostId | 71c30f5bf734c2046ae66e4ceec5af8350decb8905a171de520776a9 | | id | c9a9f517-7e33-41dd-98eb-c95de8a11218 | | image | cirros5 (c60627cd-df9c-4fdd-858c-a39fb94d9234) | | key_name | None | | name | cirros5 | | progress | 0 | | project_id | 0abfdfea73d142d08192aab5cc051642 | | properties | | | security_groups | name='default' | | status | ACTIVE | | updated | 2020-06-06T08:04:53Z | | user_id | fdae41299d574ea59fc26bef4793885b | | volumes_attached | | +-----------------------------+----------------------------------------------------------+
[root@ip110 ~]<demo># . admin.token [root@ip110 ~]<admin># nova list --all --fields=name,instance_name,status | grep cirros5 | c9a9f517-7e33-41dd-98eb-c95de8a11218 | cirros5 | instance-00000153 | ACTIVE |
[root@ip110 ~]<demo># grep graphic /var/run/libvirt/qemu/instance-00000153.xml
<graphics type='spice' port='5911' autoport='yes' listen='0.0.0.0' keymap='en-us'>
</graphics>
[root@ip110 ~]<demo># grep graphic /etc/libvirt/qemu/instance-00000153.xml
<graphics type='spice' autoport='yes' listen='0.0.0.0' keymap='en-us'>