Ask Your Question
1

virsh list vs openstack server list

asked 2017-02-08 23:06:37 -0600

masber gravatar image

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

edit retag flag offensive close merge delete

1 answer

Sort by ยป oldest newest most voted
2

answered 2017-02-09 01:08:43 -0600

virsh dumpxml shows the Nova instance UUIDs near the beginning of the output. As admin, openstack server show tells you the libvirt VM name.

edit flag offensive delete link more

Your Answer

Please start posting anonymously - your entry will be published after you log in or create a new account.

Add Answer

Get to know Ask OpenStack

Resources for moderators

Question Tools

1 follower

Stats

Asked: 2017-02-08 23:06:37 -0600

Seen: 381 times

Last updated: Feb 09 '17