# VMRC console doesnt work

**URL:** <https://forum.opennebula.io/t/vmrc-console-doesnt-work/9448>\
**Category:** Installation & Configuration\
**Created:** [April 26, 2021, 10:56am UTC](https://forum.opennebula.io/t/vmrc-console-doesnt-work/9448 "2021-04-26T10:56:30Z")\
**Posts on this page:** 9\
**Page:** 1

<div class="post-metadata">

**Author:** ![tavmahdi](https://avatars.discourse-cdn.com/v4/letter/t/a4c791/32.png) [@tavmahdi](https://forum.opennebula.io/u/tavmahdi)\
**Post date:** [April 26, 2021, 10:56am UTC](https://forum.opennebula.io/t/vmrc-console-doesnt-work/9448/1 "2021-04-26T10:56:30Z")

</div>

Hi,

Im using vOneCloud 6 with vCenter7.  
There is a problem when I want to open a console with users other than “oneadmin”. It works without problem for oneadmin and for any VMs. But for other users not. I always see this error in oned.log:

```
   UID:4 one.host.info result FAILURE [one.host.info] User [4] : Not authorized to perform USE HOST [3].

```

Or  
UID:3 one.host.info result FAILURE [one.host.info] User [3] : Not authorized to perform USE HOST [3].

There a message in Sunstone console:

```
 It appears there was a server exception. Please check server's log.

```

and I can see in Troubleshooter 500 error for startvmrc.

Any Idea?

---

<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:** [April 26, 2021, 4:21pm UTC](https://forum.opennebula.io/t/vmrc-console-doesnt-work/9448/2 "2021-04-26T16:21:22Z")

</div>

This is indeed a bug. This will be solved in [future releases](https://github.com/OpenNebula/one/issues/5361).

As a workaround (not ideal) please give users USE permissions over HOSTS.

Thanks for reporting this!

---

<div class="post-metadata">

**Author:** ![tavmahdi](https://avatars.discourse-cdn.com/v4/letter/t/a4c791/32.png) [@tavmahdi](https://forum.opennebula.io/u/tavmahdi)\
**Post date:** [April 27, 2021, 2:01pm UTC](https://forum.opennebula.io/t/vmrc-console-doesnt-work/9448/3 "2021-04-27T14:01:50Z")

</div>

Thank you for your reply.  
it doesn’t work. I checked all boxes in ACL for a group about everything but in the end I got the error again.  
I saw two messages in vCenter. first one appeared when I used oneadmin:

Date Time:  
04/27/2021, 3:20:07 PM  
Type:  
Information  
User:  
VSPHERE.LOCAL\vonecloud  
Description:  
04/27/2021, 3:20:07 PM User VSPHERE.LOCAL\vonecloud@10.x.x.x logged in as Ruby  
Related events:  
There are no related events.

The second is when I used other users:

Date Time:  
04/27/2021, 3:23:11 PM  
Type:  
Error  
User:  
vsphere.local\vonecloud  
Description:  
04/27/2021, 3:23:11 PM Cannot login vsphere.local\vonecloud@10.x.x.x  
Event Type Description:  
A user attempted to log in with an unknown or invalid username  
Possible Causes:

```
The username is unknown to the system Action: If you are using Active Directory, check the health of the domain controller
The user provided an invalid password Action: Supply the correct password

```

Related events:  
There are no related events.

How its possible for same username?

---

<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:** [April 28, 2021, 10:19am UTC](https://forum.opennebula.io/t/vmrc-console-doesnt-work/9448/4 "2021-04-28T10:19:52Z")

</div>

OpenNebula always uses the same username (the one defined in the OpenNebula host representing the vCenter cluster) to communicate with vCenter, regardless of the OpenNebula user initiating the action.

Regarding the permissions error, could you temporarily add the user to the oneadmin group and check again?

---

<div class="post-metadata">

**Author:** ![tavmahdi](https://avatars.discourse-cdn.com/v4/letter/t/a4c791/32.png) [@tavmahdi](https://forum.opennebula.io/u/tavmahdi)\
**Post date:** [April 28, 2021, 2:23pm UTC](https://forum.opennebula.io/t/vmrc-console-doesnt-work/9448/5 "2021-04-28T14:23:24Z")

</div>

I’ve already tried it. it works fine. But it’s not the right solution.

---

<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:** [April 29, 2021, 9:00am UTC](https://forum.opennebula.io/t/vmrc-console-doesnt-work/9448/6 "2021-04-29T09:00:16Z")

</div>

Please double check your ACL configuration, user needs to have USE permissions over the host. Alternatively, upgrade to 6.0.0.1 where the bug is fixed.

---

<div class="post-metadata">

**Author:** ![tavmahdi](https://avatars.discourse-cdn.com/v4/letter/t/a4c791/32.png) [@tavmahdi](https://forum.opennebula.io/u/tavmahdi)\
**Post date:** [May 4, 2021, 4:43pm UTC](https://forum.opennebula.io/t/vmrc-console-doesnt-work/9448/7 "2021-05-04T16:43:56Z")

</div>

I tried new version and it works. thanks!

---

<div class="post-metadata">

**Author:** ![tavmahdi](https://avatars.discourse-cdn.com/v4/letter/t/a4c791/32.png) [@tavmahdi](https://forum.opennebula.io/u/tavmahdi)\
**Post date:** [May 5, 2021, 6:55am UTC](https://forum.opennebula.io/t/vmrc-console-doesnt-work/9448/8 "2021-05-05T06:55:42Z")

</div>

I just want to mention that the problem still arises when using cloud view for users and admins.

---

<div class="post-metadata">

**Author:** ![tavmahdi](https://avatars.discourse-cdn.com/v4/letter/t/a4c791/32.png) [@tavmahdi](https://forum.opennebula.io/u/tavmahdi)\
**Post date:** [May 20, 2021, 2:27pm UTC](https://forum.opennebula.io/t/vmrc-console-doesnt-work/9448/9 "2021-05-20T14:27:16Z")

</div>

Hi.  
I got a new error again:

Could not determine the vCenter ESX host where the VM is running. Wait till the VCENTER\_ESX\_HOST attribute is retrieved once the host has been monitored

with Administrator role in vCenter got the same error.

Thanks and regards.
