Getting VM's console URL

  • 12 September 2017
  • 10 replies

Badge +1

My company has it's own home-growned self-service portal, recently I connected AHV/Prism to it with Prism v2 API, so my end-users are able to request and manage AHV machines trough this portal. I would like to give them URL link to VM's console (just in case if they can not connect to VM through network, for debug, etc). I was surprised that API doesn't have anything about VM's console access at all. In Prism every powered On VM has this "button" - is any way to obtain URL it generates?

This topic has been closed for comments

10 replies

Badge +5
The URL format could be determined by inspecting Prism with some guess and check, but there isn't an API mechanism for obtaining this information because we don't (yet) offer a console SDK. Please reach out to your Nutanix account team and ask them to connect you with myself and tarak with reference to this API thread. We can discuss options with you.
Badge +1
Well, it is not a big deal to get URL under this console button, it looks like
So I can easyly construct it (cause I can get VM_UUID/VM_NAME through API)... But if I just copy-paste this link I get "Error fetching VM details" in any browser. If you know how to properly construct URL - I'll be glad to hear. I just don't want to give end-users access to Prism (who knows what they can break in it 🙂
Badge +5
Yup, the requirement you have makes total sense. The URL you copied has the expectation that the user is authorized to access Prism (and has an active session). To layer console access on top of Prism access, you'll need to proxy the console. Get an email thread going with us and we can figure out a solution for you.
Badge +1
Thank you, I'll be waiting your solution for this case.
Userlevel 7
Badge +35
Were you able to find anything @ckousoulis ? Consider sharing here for other to also learn from - Thanks
Badge +3
@ckousoulis @Dustman
What solution do you have. We are planning on switching to AHV.
On ESXi we are using VMware Console for our VPN VMs.
A solution would help going forward on that road.
Userlevel 7
Badge +35
H @Dustman

Were you able to get a solution to your open case? Any chance you can share some details here for the benefit of other community members? Thanks

Hello, our company is also experiencing this problem. Do you have any solutions.

We would definitely use a console API if one existed. Did this ever get implemented?

were you able to find a solution. Please share if you do.