Quantcast
Channel: VMware Communities: Message List - vSphere Management SDK
Viewing all 2052 articles
Browse latest View live

Re: Multiple vlan for a port group

$
0
0

No, there is no improvement on vSphere ESXi 6 for this purpose... If you want change the VLAN of a port group in a vSwitch, you will need follow the ways according with KB 1003825, and note that KB says that apply to vSphere ESXi 6 too:

 

vlanesxi6.JPG

 

Of course, you can always use PowerCLI to manage your port groups, see: Set-VirtualPortGroup - vSphere PowerCLI Cmdlets Reference

 

And here is another examplo: PowerCLI – Add Multiple VLAN Port Groups to vSphere Cluster Standard vSwitches | DiscoPosse - Using the chicken to measu…


Re: C# Using Single SignOn (SSPI) for Virtual Center 2.5.0.119598

$
0
0

Hi, could you give more explanation on this subject?

 

In my case _sAccountName = user\Domain, so how can I transform it?

 

I'm trying to connect to vCenter server by IP address, so I can't understand what does mean this part: "domain.mydomain.net@DOMAIN.MYDOMAIN.NET"

Re: vSphere6.0 login issue: javax.xml.ws.soap.SOAPFaultException: The session is not authenticated.

$
0
0

Hello,

 

We have a very similar code to retrieve the extension information from ExtensionManager for vSphere 5.5. However, we always end up with the "This session is not authenticated" exception. The answer says that, it is because of extra double quotes. That is kind of confusing for us. In our case, the vmwareSoapSession variable is set to

 

In our case, when the vmwareSoapSession variable is set to vmware_soap_session="52c5b8ec-5581-9b73-3ab0-d8eeef4004f4", we always end up with the exception.

javax.xml.ws.soap.SOAPFaultException: The session is not authenticated.

        at com.sun.xml.internal.ws.fault.SOAP11Fault.getProtocolException(SOAP11Fault.java:178)

        at com.sun.xml.internal.ws.fault.SOAPFaultBuilder.createException(SOAPFaultBuilder.java:125)

        at com.sun.xml.internal.ws.client.sei.SyncMethodHandler.invoke(SyncMethodHandler.java:108)

        at com.sun.xml.internal.ws.client.sei.SyncMethodHandler.invoke(SyncMethodHandler.java:78)

        at com.sun.xml.internal.ws.client.sei.SEIStub.invoke(SEIStub.java:135)

        at com.sun.proxy.$Proxy67.findExtension(Unknown Source)

        at com.starwind.host.VExecutor.login(VExecutor.java:185)

        at com.starwind.server.ESXHostHandler.getIndexQueryString(ESXHostHandler.java:43)

        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)

        at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)

        at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)

        at java.lang.reflect.Method.invoke(Method.java:606)

        at com.sun.jersey.spi.container.JavaMethodInvokerFactory$1.invoke(JavaMethodInvokerFactory.java:60)

 

Can anybody help us in understanding what is going wrong? Thanks in advance

Use the method "addAuthorizationRole" to add the roles with same name successfully

$
0
0

I called the method  "addAuthorizationRole" to add a role named "testRole" twice. In the vCenter Server 6.0, "AlreadyExists" fault occured. but in the vCenter Server 5.1&5.5, I can add  the roles with same name successfully, is it a bug of vCenter Server 5.1&5.5?

Re: Use the method "addAuthorizationRole" to add the roles with same name successfully

$
0
0

I have used the MOB to call this "addAuthorizationRole" method of AuthorizationManager, in vCenter 5.1& 5.5, add a existed role successfully, in vCenter 6.0, failed to add a existed role and AlreadyExist error occurred.

Re: Error in SSOConnect method - 'Vim25Api.VimService' does not contain a definition for 'SetPolicy'

$
0
0

_service.SetPolicy(policySAML);这句注释掉。与他相关的代码也可以注释。这个函数可能已经过时被抛弃掉了。

取替的方法是添加下面这行代码。虽然我也不知到为什么。如果不添加下面这行,会因为SSL证书问题一直报错。

ServicePointManager.ServerCertificateValidationCallback = delegate { return true; };

!请原谅我不会英语。


Is VMware-vSphere-SDK-6.0.0-2561048 supported on Jboss, getting the error at javax.xml.ws.Service.(Service.java:77) at com.vmware.vim25.VimService.(Unknown Source)

$
0
0

I am trying to use VMware-vSphere-SDK-6.0.0-2561048 to upgrade our existing Vmware SDK 4.x in our product. Our product is hosted on JBoss server. After using VMware SDK 6, I am getting the below error. Please suggest a solution to fix this problem.

 

 

 

Caused by: java.lang.AbstractMethodError

  at org.jboss.ws.tools.wsdl.WSDLDefinitionsFactory.getDocument(WSDLDefinitionsFactory.java:175)

  at org.jboss.ws.tools.wsdl.WSDLDefinitionsFactory.parse(WSDLDefinitionsFactory.java:109)

  at org.jboss.ws.metadata.umdm.ServiceMetaData.getWsdlDefinitions(ServiceMetaData.java:293)

  at org.jboss.ws.metadata.builder.jaxws.JAXWSClientMetaDataBuilder.buildMetaData(JAXWSClientMetaDataBuilder.java:96)

  at org.jboss.ws.metadata.builder.jaxws.JAXWSClientMetaDataBuilder.buildMetaData(JAXWSClientMetaDataBuilder.java:75)

  at org.jboss.ws.core.jaxws.spi.ServiceDelegateImpl.<init>(ServiceDelegateImpl.java:154)

  at org.jboss.ws.core.jaxws.spi.ServiceDelegateImpl.<init>(ServiceDelegateImpl.java:125)

  at org.jboss.ws.core.jaxws.spi.ProviderImpl.createServiceDelegate(ProviderImpl.java:114)

  at org.jboss.ws.core.jaxws.spi.ProviderImpl.createServiceDelegate(ProviderImpl.java:128)

  at javax.xml.ws.Service.<init>(Service.java:77)

  at com.vmware.vim25.VimService.<init>(Unknown Source)

vSphere Management SDK url is just blank page

$
0
0

I'm trying to get started using the vSphere API, reading the document at the link below I should be able to browse to my vcenter using "sdk" in the URL but it's blank. Also I read that you have to download the root certificates, but that link is not where this document claims it is. I'm using 5.5

https://vdc-download.vmware.com/vmwb-repository/dcr-public/2d445149-7707-4c7d-98a7-9f00394b7df2/7322d611-ef3b-454a-ab63-ad3302d8b218/SDK/vsphere-ws/docs/SDK-README.html

Do I need to enable this SDK in vCenter?


Re: vSphere Management SDK url is just blank page

$
0
0
Do I need to enable this SDK in vCenter?

No, and what you're getting is the expected behavior: VMware KB: Cannot access the SDK URL at https://servername/sdk

 

The service athttps://localhost/sdk is not an HTML webserver that can serve web pages. The service functions over the SOAP protocol (an .xml based protocol) and only responds to SOAP requests.

 

For example a SOAP protocol request will serve https://vcenteripaddress/sdk/vimService.wsdl page wherevimservice.wsdl is the name of the Web Services Description Language (WSDL) webpage file provided by VMware.

 

Try browse the URL https://vcenteripaddress/sdk/vimService.wsdl

Re: vSphere Management SDK url is just blank page

$
0
0
Thanks for you reply, that helps very much. Am I safe to assume that all the references I need are in the "VMware vSphere API Reference Documentation"? I'm using python but all the references seem to be for .NET and Java.

Re: vSphere Management SDK url is just blank page

Re: vSphere Management SDK url is just blank page

$
0
0

As Richardson Porto pointed out, /sdk is the SOAP endpoint.  There is also web-ui oriented interface called the mob at /mob.

 

Overall the API documentation is generic to any of the SDK kits (Python, Perl, dotNet, Java, etc).

 

For Python, you'll probably want to use pyvmomi: https://github.com/vmware/pyvmomi

 

You'll have to know the utility functions for each SDK (they vary) and there are some quirks between how you instantiate the API objects.

Re: Error ”Property is not user configurable” when importing OVF package

Error ”Property is not user configurable” when importing OVF package

$
0
0

Hi,

 

I have a working functionality for importing OVF package in 5.1 and 5.5 but it fails for vCenter 6.0.

The functionality is similar to what mentioned here:

https://pubs.vmware.com/vsphere-60/index.jsp#com.vmware.wssdk.pg.doc/PG_VirtualApplications.14.6.html

 

The HttpNfcLease is returning following LocalizedMethodFault for one of the property(CustomeRole) in the OVF Descriptor:

 

Fault:        NonUserConfigurableProperty

Message:  Property CustomRole is not user configurable.

 

I checked the OVF Descriptor for this property and the value for userConfigurable is false.


But the OVF package gets imported successfully when I make userConfigurable true.

 

What has changed for 6.0 that’s making it fail and was working for 5.1 and 5.5?

 

Could somebody guide to possible cause and resolution for the issue?

How can I clone and customize a template using Java vSphere SDK?

$
0
0

I am running a vCenter 6.0 server with a few RedHat Linux 7.x templates.

I am writing a program which must be able to deploy VMs from these templates with customized hostnames and IP addresses.

Using the sample VMClone.java causes the vCenter to log the error:

"A specified parameter was not correct: spec.location.pool"

I am assuming this is because I have to explicitly define the resource pool to use, though the only code the sample has regarding VM specs is:

private VirtualMachineCloneSpec cloneSpec = new VirtualMachineCloneSpec();
private VirtualMachineRelocateSpec relocSpec = new VirtualMachineRelocateSpec();

It appears that the VirtualMachineRelocateSpec object is what defines the resource pool and has methods to change it, though I cannot find any documentation on how exactly  to change the pool.

 

Any help on fixing this error and customizing the hostname and IP during cloning would be greatly appreciated.

private VirtualMachineCloneSpec cloneSpec = new VirtualMachineCloneSpec();
    private VirtualMachineRelocateSpec relocSpec = new VirtualMachineRelocateSpec();

Re: GuestOSIds for different editions.

$
0
0

Thank you.

Please let me know guest OS identifiers for Windows 10 for all editions.

How to export efficiently the configuration of VM

$
0
0

Hello,

 

I need to export the hardware configuration (VirtualMachineConfigInfo) of a VM and create a VirtualMachineConfigSpec object by using the extracted infomation.

 

However, both objects are quite complicated, which contains lots of properties and objects of other types.

 

I'd like to know if there is an efficient way, a built-in method, which can export hardware configuration from a virtual machine easily,

or I really have to do it manually, which means, by traversing all the properties of the class VirtualMachineConfigInfo.

 

Thanks.

.NET Hok Sample : STSService returns incorrect TokenKey

$
0
0

Has anyone successfully got the .Net HoK sample working with the vSphere SDK and web services?  I have been struggling with Issuing tokens and like to bounce some ideas and code off of some folks.

Anyone out there with this type of experience?

Re: GuestOSIds for different editions.

$
0
0

Hi

Do you know guest OS ids for Windows 10?

GPU Utiliation statistics in vSphere API?

$
0
0

Hi,

I have an vsphere server 6.0 with nvidia grid cards. I want to take utilization statistics for GPU using vSphere java sdk. I have checked vsphere api and found HostGraphicsInfo object which will gives some basic informations but I need utilization statistics like volatile utilization and more. Where can i get this info from vsphere api.?

 

Thanks & Regards,

karthika

Viewing all 2052 articles
Browse latest View live


Latest Images

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