Ask Your Question

Revision history [back]

click to hide/show revision 1
initial version

virsh list vs openstack server list

Hi,

I would like to know which vm in virsh relates to my openstack instances.

for instance:

[root@openstack-dev ~(keystone_myuser)]# openstack server list
+--------------------------------------+----------------+---------------+-------------------------------------+-------------+
| ID                                            | Name           | Status        | Networks                                 | Image Name  |
+--------------------------------------+----------------+---------------+-------------------------------------+-------------+
| 8064833e-d625-42b3-94f5-68a42f0706f1 | test           | ACTIVE        | private=192.168.1.102               | Ubuntu16.04 |
| 162a3cf8-7dca-4973-86d0-ce6847dde42a | hail           | ACTIVE        | private=192.168.1.112, 129.94.72.56 |             |
| ae691df9-6a9d-4828-98df-92d4b448b4f3 | opencga-hadoop | ACTIVE        | private=192.168.1.116, 129.94.72.57 |             |
| 136a29ee-b536-49a5-945c-aa693189e1fe | clusternode3   | VERIFY_RESIZE | private=192.168.1.109               |             |
| cb9b26c3-311b-4fb3-8661-0c0c689fb138 | clusternode2   | ACTIVE        | private=192.168.1.104               |             |
| 4d4f3c3f-2894-4244-b74c-2c479e296ff8 | clusternode1   | ACTIVE        | private=192.168.1.105               |             |
| e9713613-1474-4397-8326-4ba0bb616d82 | ambari         | ACTIVE        | private=192.168.1.107, 129.94.72.58 |             |
+--------------------------------------+----------------+---------------+-------------------------------------+-------------+
[root@openstack-dev ~(keystone_myuser)]# virsh list
 Id    Name                           State
----------------------------------------------------
 14    instance-00000036              running
 45    instance-00000017              running
 58    instance-0000002f              running
 59    instance-0000001d              running
 60    instance-0000001e              running
 62    instance-00000038              running
 63    instance-0000001f              running

So my question is, how can I find out which KVM instance is ae691df9-6a9d-4828-98df-92d4b448b4f3?

thank you very much