Quantcast
Viewing all articles
Browse latest Browse all 2218

Issue cloning VM across linked-mode vCenter Server using SAML token

Hi,

 

I have a vSphere Web Client HTML plugin with custom java service. The custom java service communicates with my external server that exposes all the services.

 

I am trying to clone a VM from one vCenter Server to another vCenter Server in linked mode using the vSphere API's VirtualMachine.cloneVM_Task() method. Since the destination vCenter Server is different from source, I am specifying ServiceLocator with ServiceLocatorSAMLCredential as the destination vCenter Server credential.

I have a SAML xml token string that I got from UserSession object inside my custom java service and I am using it to create ServiceLocatorSAMLCredential object, but when I run clone task, I get error saying "Cannot complete login due to an incorrect user name or password

 

Isn't this SAML token suppose to works for accessing all vCenter Servers in linked mode?

I am passing this SAML token string from my plugin custom java service to my external server where I am trying to perform this clone operation.

 

Any help with his issue or sample code to clone VM across vCenter will be appreciated. Thanks!!

 

 

 

 


Viewing all articles
Browse latest Browse all 2218

Trending Articles