VMware Communities
valyuch
Contributor
Contributor

How to connect to a shared vm with vix?

Hi All!

How to connect to a shared VM with VIX API 1.15 (c#, although this is not important at this time)? I have a VMWare Workstation Pro 12.5.2, it is installed on Windows Server 2016 (not joined to a domain, nothing is installed, firewall off). I have a Console Application to test:

  object res = null;
  VixCOM.VixLibClass vix = new VixCOM.VixLibClass();
  VixCOM.IJob vixJob = vix.Connect( VixCOM.Constants.VIX_API_VERSION,
  VixCOM.Constants.VIX_SERVICEPROVIDER_VMWARE_WORKSTATION_SHARED,
  "20.150.0.1",
  0,
  "Administrator",
  "blablabla",
  0,
  null,
  null );
  UInt64 result = vixJob.Wait( new int[] { VixCOM.Constants.VIX_PROPERTY_JOB_RESULT_HANDLE },
  ref res );
  if ( vix.ErrorIndicatesFailure( result ) )
  {
  Console.WriteLine( "Failed: {0}", result );
  return;
  }

  Console.WriteLine( "Connect success..." );

I run this test app on server, the result failed, return code: 22003, VIX_E_WRAPPER_SERVICEPROVIDER_NOT_FOUND... If I run this test with hostType=VixCOM.Constants.VIX_SERVICEPROVIDER_VMWARE_WORKSTATION, with null host-username-password, working properly, the returned result code is 0. Persmissions of Shared VM is Administrator role to local Administrators group. Edit menu, Preferences, sharing is enabled...

I have no more ideas, help me please!

Thx, Lac

Tags (1)
Reply
0 Kudos
1 Reply
AishR
VMware Employee
VMware Employee

It may be beneficial to collect the VIX logs and see if there are additional information in there that can provide more information on the issue.

Reply
0 Kudos