Quantcast
Channel: VMware Communities: Message List
Viewing all articles
Browse latest Browse all 258290

Re: Specify destination datastore

$
0
0

When I add the code below in my Program.java (sample code in SubmitWinP2VJob), I am getting an Invalid SSL exception.

If i don't apply the below code and execute the code, it then picks up a host on its own and properly performs the P2V.

 

My theory is if I do not set a host explicitly, it connects to the VC Server and VC Server allots a host, but if I specify a host, the code directly tries to connect to the host and fails with SSL validation. There is no way I can provide the SSL validation with the code as there are multiple clusters with each cluster having a huge number of hosts .

 

Any way i can hack the piece where the VC Server allots a host by default. Not able to trace the calls all the way to that functionality, any clues anyone?

 

 

ManagedObjectReference hostInformationProvider_SF = new ManagedObjectReference();
  hostInformationProvider_SF.setType("HostSystem");
hostInformationProvider_SF.set_value("xxx.xx.com");
targetVMLocation.setHost(hostInformationProvider_SF);

Viewing all articles
Browse latest Browse all 258290

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>