vmware / pyvmomi

VMware vSphere API Python Bindings
Apache License 2.0
2.22k stars 766 forks source link

MKS Ticket Not Acquirable on ESXi 8 #1078

Open nivmamedov opened 5 months ago

nivmamedov commented 5 months ago

Describe the bug

We have an on-prem ESXi 8 server environment deployed which hosts our customers VMs, we make those VMs airnmeccessible via a VMRC, we generate the VMRC link based on a ticket that is granted from the AcquireTicket function, the function accepts either a paremeter of MKS (Mouse, Keyboard, Screen) or clone which makes VMRC inherit the permissions of the user who initiated the session.

When acquiring a ticket of type MKS we're getting a TypeError from VMOMI saying we provided an invalid type to a variable called TicketType, the problem is we don't see any reference for said variable either in code or in changelogs.

We have an ESXi 7 server environment which the feature actually works in, but in the environment described above we fail to generate said ticket, we used the latest PyVmomi 8.0.2.

Reproduction steps

  1. Host an ESXi 8 server
  2. Create a SOAP session via the PyVmomi 8.0.2 SDK.
  3. Try to generate a MKS Ticket for VMRC via the AcquireTicket function.

Expected behavior

I expect the SDK to generate me usable MKS ticket details for VMRC usage.

Additional context

No response