IVirtualMachineOperations.StartProgramInGuest returns -1073740791 instead of...
We are using vmware management SDK to start an executable on a remote machine managed in a vcenter.While trying to start the process using...
View ArticlevSphere Management vs vSphere Automation sdk
Hi All,I'm trying to write Backup & Restore module of VM using Java based sdk.I explore lots of documents & finally get confused which SDK should use because there is lots of SDK available such...
View ArticleWinRM issues when using VCSA
I'm really hoping someone can give me some steer with this one, bear in mind I'm not a developer - I'm infrastructure.We have a lot of automation scripts which run against our Windows based vCentre 6.0...
View ArticleHow to invoke scsi inquiry for non standard page for a SCSI LUN
VMware stores the VPD information in standard inquiry property for SCSI LUN. If we want to query other than standard data, is there a API or a way to do this? ThanksGuru
View ArticleTo fetch if a lun belongs to USB from MOB Query
Hi , We have a requirement of getting all the ScsiDisk luns , but we need to ignore the luns which are of USB type . Can someone please help me how can I get the information from MOB . --Regards,Shu
View ArticleRetrieving physical disk/lun mapping to DataStore / RDM
Is it possible to find the DataStore or VM(RDM) to which a Physical Disk/Lun is mapped?I could not find an applicable API for this. I can enumerate the VM's and Datastores to find the associated disks,...
View ArticleA general system error occurred: internal error
I am using RegisterVM_Task API to register Virtual Machines on VCenter 6.5 (managed ESXs are also 6.5).However, at times, the RegisterVM_Task fails with SystemError and the message is: "A general...
View ArticleInstant clone pool creation fails
My Environment:vCenter: 6.5U1 (build 7515524)Horizon: 7.5.0 (I have 5 connection server 3 of then in domain domain1.com and two other in domain2.com) I have a test server with ESXi 6.5 and local flash...
View ArticleCustom Task - setTaskState to error - problem setting MethodFault
Hi I've found this question in lots of places, but it never seems to be answered. I'm optimistic... I am using custom tasks, and am able to set the progress, and the state to "TaskInfoState.SUCCESS"...
View ArticleGroup level roles not propagating to user
We are implementing RBAC in our plugin where,I am using vSphere 6.5 and accessing roles from API's instead UI.I am having a user group with an admin role assigned to it in my vCenter.I have added a...
View ArticlePerformance manager query (QueryPerf) not returning performance counter values
We have a single vcenter out of a larger set that is not returning any performance counter values for any of its virtual machines. There are VMs on the vcenter that do have the proper tools installed...
View ArticleRead Tags from a VirtualMachine
How to get tags from a virtual machine in the example below: // Get reference to the PropertyCollectorpropertyCollector = serviceContent.getPropertyCollector(); // Create a new ManagedObjectReference...
View ArticleCannot Set BIOS Boot Order Using VIM25 API From C#
(I did find a reference to a similar post about this from 2013 but no answers AFAICT and no code https://code.vmware.com/forums/2416/vsphere-management-sdk#463881|2319617)I am using the C# (targetting...
View Article"Cannot compute changes for disk " error for disk attached after first snapshot
Hi,I 'm facing this error when we call queryChangedDiskAreas with changeID as '*' for a disk attached to a VM (which already had a snapshot and then deleted). Steps:Vm has one disk D1. Take snapshot...
View ArticleHow to find management IP(s) of ESXi host from VcHostSystem (vRO 7.3 and...
I am trying to find the ESXi host to which a virtual machine is registered. From the vm I am able to find the host (VcHostSystem) in vRO. Searching the API it would appear that I need...
View ArticleHow to upload a ovf template to vCenter in URL ?
In vcenter, when you try to import a ovf, u can input the url, then , let vcenter do the download work, but, I can not find a way to do it via SDK, anyone knows how? thanks.
View ArticleESXi host local Disk IO performance data fetching through API
Suppose I do not have vROPS involved, could I get the following average/Peak disk bandwidth and IOPS performance data for every ESXi host with specifc time slot through vCenter API or PowerCLI ?Disk...
View ArticleSetting environment for vsphere-automation-sdk-python on Red Hat 7.3
Hi,I tried to setup environment for python3.5 according to https://github.com/vmware/vsphere-automation-sdk-python. When I runpip install --upgrade --force-reinstall -r requirements.txt...
View ArticleHow to saving/export VM's configuration?
I have a requirement to create a new VM(different location) using exactly the same configurations as of existing VM. I have copy of its virtual disks and so I am only interested in VM's configurations....
View ArticleVMware SDK with Java 10
Has anyone tried using the VMware SDK with Java 10? The samples work fine with Java 1.7 and 1.8 but i have challenges with 10.0.2 and 11.0.13. Connection to vCenter fails with the following...
View ArticleIncorrect VirtualDisk.NumberWriteAveraged from QueryAvailableMetric
I've recently been looking over some of the data collected by QueryAvailablePerfMetrics, and I came across some inconsistent data regarding the Disk Write IO metrics, specifically for Virtual Disks -...
View ArticleDetermining capacity of PCIeSSDs that are PassthruActive
Hi everyone! I have some PCIeSSDs that are being used as DirectPath I/O devices for my VMs. While they are in this configuration there doesn't seem to be any way (at the vSphere-level) to determine...
View ArticleVirtualDisk VDiskId always null
I'm trying to use the VcenterVStorageObjectManager ExtendDisk_Task operation to extend a virtual machine's virtual disk to 30GB, but for the VirtualDisk device it seems that the VDiskId property is...
View ArticleQuestions on Virtual Disk's UUID
Hi all, The API reference does not have much description about Virtual Disk UUID and so I would like to ask couple of questions.I am referring to the UUID we can retrieve from Virtual Disk's...
View ArticleFind associated datastore from VM C# sdk
Hi, Is anyone able to tell me how to find all Vm details from the VM name in c# using VMWare.Vim.dll ?I found how to find host but not datastore for example.I searched in all properties of VM and...
View ArticleHow to find datastore of a VM from VM Name - VMWare.Vim.dll - C#
Hi,Is there anyone that can tell me how to find vm details from the VM Name in C# ?I tried using VMWare.Vim.dll but could not link existing datastore properties to an existing VM.For VM, i could link...
View ArticleVsphere Automation rest API
Is there a way to fetch permissions or roles defined vsphere client through Vsphere Automation rest API
View Articlewhy CustomizationIPSettings not setNicSettingMap method?
vsphere web service sdk 6.7 public static CustomizationSpec createCustomizations(){ CustomizationSpec spec=new CustomizationSpec(); //创建文件类型windows CustomizationWinOptions...
View ArticleIssue with Remote Console over API after upgrade from vCenter 6.5U1 to...
Hi,We have issue with opening Remote Console over API after upgrade vCenter to 6.5 U2e from 6.5 U1g. On vCenter 6.5 U1g everything worked fine. Remote Console works fine from vCenter server 6.5 U2e...
View ArticleHow do get maxTotalLatency data
Hi I have managed two ESXi on my VCenter, and there are some virtual machines on these two ESXi. i used vijava.jar monitoring VCenter. I need the data marked in the image above. How should i get this...
View ArticleCan anyone explain why Performance Metric Keys differ in Deployments
In the process of monitoring Datastores, we track the total Read and Write latency of Datastores. Historically speaking, we would use performance metric keys 182 and 183. Based on a bit of code that...
View ArticleInstanceUUID details
I've referred below articles in order to determine how to prevent this issue. According to those articles, the VM property value named "instanceUUID" is the easiest way to uniquely identify a VM in...
View ArticleVMWare VSphere SDK 6.7 - MOB - VpxSettings and LicenseManager
Hi All,I am trying to access , ServiceContent = > LicenseManager = > licensedEdition property .Have generated the files using wsdl available in SDK .Neither the LicenseMAnager class is present...
View Articleconfig.vpxd.stats.collectPreAggregatedIntervalFactor parameter not present in...
Hi, There is a parameter config.vpxd.stats.collectPreAggregatedIntervalFactor parameter that needs to be set so that collection gets completed within 5 minutes.This parameter was present for 5.5 and...
View ArticleTracking vmotions externally
So, I need to track where some of my vms move around to for Oracle compliance. I was scraping syslog with Splunk or plain old syslog, but that broke with the 6.7u3 update so I'm trying to find a...
View ArticleVMware remote plugin vCenter support matrix
Hi There,are there any official document or files for vmware remote plugin vCenter support matrix?it means the remote plugin is supported from which vCenter version. I saw there is an remote plugin...
View ArticleThe verification of VimPortType.cloneSession() failed even with a new clone...
We have a critical problem when using the new vSphere authentication in our remote plugin server, the below steps of new authentication approach are following the remote plugin sample from the SDK...
View ArticleTake the VMware Developer Survey for a Chance to Win a Sonos Move
Hello everyone, VMware is conducting our annual Developer Survey and we want to hear from YOU so we can assess and improve our developer program to better serve your needs. PLUS, we will be giving away...
View ArticleWindows vSphere Client (HTML5) service fails to start
My situation is 6.5 upgrade to 6.7u3SymptomsAccessing the vSphere Client (HTML5) of vCenter server in browser is failed with error message:503 Service Unavailable (Failed to connect to endpoint: [class...
View ArticleWhat is the difference between Vsphere Management SDK and Automation SDK?
What is the difference between Vsphere Management SDK and Automation SDK?
View ArticleAre there any maven repositories for vim25
Hi, Anyone knows which maven repository to use inorder to include vim25 jar the local project?Thanks in advance.
View ArticleAccount lockout on vsphere web client and ssh
Hello friends: I have the following concern: I have a stand alone esxi version 6.7 server; I had to manage via ssh on the server to set up a trust relationship, and after a while the session ended....
View ArticleCannot extract VMs from VRealize with Api WeB
Hello,I have a PowerShell script that uses the Web API to extract data from host, cluster and VMs on VRealize but since I installed version 6.7 of VSphere, I have data from host, cluster but not those...
View ArticleVM Folder Name
Greetings,Is there a simple way for me to get the folder name of a vm? I am using the https://github.com/vmware/vsphere-automation-sdk-restThanks!
View ArticleSession not Authenticated - Client received SOAP Fault from server
Hello, I am attempting to retrieve HostSystem and VirtualMachine data with the web services API after using the vimport.login() method. I seem to be logging in just fine and retrieving the...
View ArticleGetting Properties from a ManagedObjectReference
I am trying to figure out how to get a subset of properties from a ManagedObjectReference to HostSystem. My current use case is that I am using a property collector to retrieve all VirtualMachines. One...
View ArticleHow to map VirtualMachine virtualDisk metric instance id like scsi0:0 to...
I am querying virtual machine and its virtual disk..later getting virtual disk metrics for VM but I am having problem in mapping between VirtualDisk objectId and Virtual machine virtualDisk metric...
View ArticleFind hostsystem by findbyip
Hello,how to retrieve the information about hostsystem object by using searchindex.findbyip for ipv6,Findbyip works fine for ipv4. Is there any workaround to ger hostsystem object by using ipv6...
View Article### Not able to capture VMware event Lost network connectivity for DVSPort
I tried the following code. I am able to see the event in vSphere but not able to capture with code.I am able to see the descriptions related to event on this particular vCenter. To my understanding...
View ArticleQuery information from VCenter / Host / VMs
Hello friends, are you okay?I am working on a system that will read information from VCenter / Host / VMs. I identified some existing APIs, they are the API Rest and SOAP (vimService). However, I am...
View Article