Ask Your Question
3

How to assign the same names to VMs in VCenter and Nova?

asked 2014-09-22 20:53:26 -0500

Qiang gravatar image

updated 2014-10-03 17:48:16 -0500

smaffulli gravatar image

We are using nova works with vCenter.

In openstack:

root@compute-vmware:~# nova list
+--------------------------------------+---------------------+---------+------------+-------------+------------------------------+
| ID                                   | Name                | Status  | Task State | Power State | Networks                     |
+--------------------------------------+---------------------+---------+------------+-------------+------------------------------+
| 706419af-39fe-4fbe-a81c-1ddf3f362c5e | vmware-vm-01        | ACTIVE  | -          | Running     | vmware-net=10.11.4.5         |
| b2bfce7d-8f91-48dd-8012-12efe007013c | vmware-vm-vlan10-01 | ACTIVE  | -          | Running     | vmware-net=10.11.4.2         |
| 2d45de73-5da5-42f1-9461-a801a8a63e94 | vmware-vm-vlan10-02 | ACTIVE  | -          | Running     | vmware-net=10.11.4.6         |
+--------------------------------------+---------------------+---------+--

But in vCenter, the VM name is 706419af-39fe-4fbe-a81c-1ddf3f362c5e,b2bfce7d-8f91-48dd-8012-12efe007013c ,2d45de73-5da5-42f1-9461-a801a8a63e94.

Can we configure the VM name are vmware-vm-01,vmware-vm-vlan10-01,vmware-vm-vlan10-02, and make the name same as in Openstack ?

edit retag flag offensive close merge delete

1 answer

Sort by ยป oldest newest most voted
2

answered 2014-10-03 23:34:18 -0500

sgordon gravatar image

As currently implemented I do not believe the driver exposes an option to allow for this. The reason is at least in part that the name in OpenStack is not necessarily unique , multiple tenants may create virtual machines with the same name that ultimately land on the same infrastructure (in this case a vSphere/ESXi cluster).

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: 2014-09-22 20:53:26 -0500

Seen: 386 times

Last updated: Oct 03 '14