# Problem allocating node for VNC in VMWare vCenter

**URL:** <https://forum.opennebula.io/t/problem-allocating-node-for-vnc-in-vmware-vcenter/816>\
**Category:** Product Support\
**Created:** [June 4, 2015, 8:29am UTC](https://forum.opennebula.io/t/problem-allocating-node-for-vnc-in-vmware-vcenter/816 "2015-06-04T08:29:23Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Juan\_Antonio\_Gonzale](https://yyz1.discourse-cdn.com/flex031/user_avatar/forum.opennebula.io/juan_antonio_gonzale/32/4336_2.png) [@Juan\_Antonio\_Gonzale](https://forum.opennebula.io/u/Juan_Antonio_Gonzale)\
**Post date:** [June 4, 2015, 8:29am UTC](https://forum.opennebula.io/t/problem-allocating-node-for-vnc-in-vmware-vcenter/816/1 "2015-06-04T08:29:23Z")

</div>

I’ve detected a problem using VNC (noVNC) with VMWare vCenter.

I’ve a vCenter with 4 nodes: node-1, node-2, node-3 and node-4.

When I create a VM from Sunstone, the VM is asigned (for example) to node-1. It’s ok.

But if vMotion starts, that machine can get into node-4 (for example). If this occurrs, when I try to connect with VNC with the VM, the Sunstone tries to connect with node-1 via VNC, but the machine has been moved to node-4 (or other).

Does the ONE query in what ESX node is the machine before to launch the VNC?

Is any way to solve quickly?

Thanks.

---

<div class="post-metadata">

**Author:** ![tinova](https://yyz1.discourse-cdn.com/flex031/user_avatar/forum.opennebula.io/tinova/32/25_2.png) [@tinova](https://forum.opennebula.io/u/tinova)\
**Post date:** [June 4, 2015, 11:40am UTC](https://forum.opennebula.io/t/problem-allocating-node-for-vnc-in-vmware-vcenter/816/2 "2015-06-04T11:40:46Z")

</div>

Hi,

Sunstone uses the ESX\_HOST variable in the VM template to establish a VNC connection. This variable points to the ESX where the VM is running, and gets updated on each monitoring cycle (by default each 60 seconds), so after the migration it may be inconsistent.

Let me know if this is not the behaviour you are experiencing.

-Tino
