VMware Cloud Community
nubronco
Enthusiast
Enthusiast

API call to open console

I am writing a python script to open a console to a virtual machine.  Looking for any direction on doing this either through the api or using the pyvmomi SDK.  I am able to connect and pull all VM information, but the examples I’ve found for opening a console just don’t seem to work.  I have found this.  https://programtalk.com/vs2/?source=python/13804/pyvmomi-community-samples/samples/generate_html5_co.... In that example it says to talk to port 7331.  It does not look like the vcenter servers are listening on that port.

Also, is there a way to do this by opening a console window like the thick client uses vs an HTML page opened in a browser?

Reply
0 Kudos
1 Reply
nubronco
Enthusiast
Enthusiast

Forgot to mention this is for vsphere 6.5.

Reply
0 Kudos