When I set intervalId other 20 in PerfQuerySpec api and execute api...
I am executing following piece of code to get the performance metrics. When I set intervalId other 20 in PerfQuerySpec api and execute api QueryPerf(querySpec => [$perfQuerySpec]) i get error -A...
View ArticleC# Get VM Guest Session Status
Hi there,I'm attempting to use the C# vSphere API (VMWare.vim.dll v6.3) to gather some basic information about our VMs here. One thing I am trying to collect is the session status in the guest OS (Such...
View ArticleThe current virtual disk format of the template is “Thin provision” and It...
Hi all, Recently I have developed a VMware automation tool deploying Virtual Machine from a template through vSphere SDKThe current virtual disk format of the template is “Thin provision” and It must...
View ArticleInitiateFileTransferToGuest copies file filled with NULL to vm
Hi,I am using pyvmomi to automate some of our testing activities. There are several threads which read a single configuration file(ending with py), make some changes and then write this file with...
View Article在当前状况下不允许执行此操作。
Hello, I am searching for the proper API to find the absolute path to a Virtual Machines vmdk file.Let’s say inputting the minimum amount of information (ideally just the Virtual machines name)...
View Articlevcenter Host HA configuration
we are trying to configure 2 hosts in HA mode setup in a cluster.one of the hosts has 10 virtual machines and the other one has no vms.Should we do anything specific in configuring HA for the...
View ArticleMulti-Threading in Java API
Does the vSphere management SDK support multi threading. I try to realize a pool of service instance objects to be reused, because my application needs many of them and I do not want to recreate them...
View ArticleCan I use the vim25.jar in an open source project to develop vm specific...
I downloaded vim25.jar as part of SDK.zip. Can I use the vim25.jar in an open source project to develop vm specific operations?
View ArticleCan I force the VMware Web Service to encode in UTF-8 before sending to my...
I've run into an axis problem where the axis client (as used in the vSphere Web Services SDK) expects the response from the server to be utf-8 encoded, but that is not always the case. In my example,...
View ArticleAPI returns higher memorySize values for host
I am pulling hardware data from vCenter via <HostSystem.hardware.memorySize> for a particular host. The value returned is 137,280,806,912 or 137 gb. If I open the vSphere Client the value is...
View ArticleHow to use OpenInventoryViewFolder?
I have searched and searched and have yet to understand how to use the InventoryView construct. Let's say I wanted to monitor every cluster, resource pool, host, and VM in the inventory. I want to know...
View Article'The operation is not allowed in the current state.' (c# StartProgramInGuest)...
I'm automating some VM configuration beyond a firewall, by leveraging the VMtools (or rather the StartProgramInGuest method) - My changes can come from any number of 'Configuration' Hosts - each of...
View ArticleC# - shipping vmware.vim.dll with the .exe
Hi,this may be a .net specific problem, but maybe someone has some hints for me.I wrote a little program in c# (vs2010) which is able to do some poweroperations (just like the example in the sdk doc...
View ArticleDefault value of the config.vmacore.soap.sessionTimeout
Hi, On vcenter v6 I have faced with the situation when opened vcenter soap session failed after period of idleness with the soap error:<?xml version="1.0"?><NotAuthenticatedFault...
View ArticleHow to check if VirtualApp is started
Hi there, I'm pretty new to the VIM API and am trying to evaluate if a vApp is started or not. I've found the VirtualAppVAppState enum but can't seem to figure out how to test it.I've included a C#...
View ArticleCan anyone advise on support of RHEL 7 guest OS Customization in vCenter...
Hi I need to change NIC configuration through guest os customization but I have a problem using RHEL 7.0 guest os customization in vCenter Version 6.0 and ESXi 6.0 Can anyone advise on support of RHEL...
View ArticleHow to start a VM?
Good morning everybody! Really quick simple question, strange that I can't find any info elsewhere, but here goes: How do I start a virtual machine using the web API? I know my VMWare hypervisor web...
View ArticleHow to retrieve a HostSystem via vmware.vim?
I am trying to use the C# vmware sdk to retrieve a host represented as a HostSystem object. I have no datacenter and no cluster, only the single host I am connected to. How do I retrieve a HostSystem...
View ArticleHow do I check for a licensed feature on a ESXi host? Getting: "The operation...
This code is C# public bool CheckLicenseFeature(string featureName, string hostName = "") { HostSystem host = null; if (String.IsNullOrEmpty(hostName)) { host = GetHostSystems().FirstOrDefault(); }...
View ArticleHow do I use a local ticket acquired via VMware.Vim?
Object vSphereClient is already established and logged in. using VMware.Vim; private SessionManager GetSessionManager() { SessionManager sessionManager = null; try { ManagedObjectReference _svcRef =...
View Article