Does the vm quickstats hostMemoryUsage field in a vm include pages that are transparently shared? If two vms are transparently sharing the same page on the host, will this page count in both v...
See more...
Does the vm quickstats hostMemoryUsage field in a vm include pages that are transparently shared? If two vms are transparently sharing the same page on the host, will this page count in both vm's hostMemoryUsage? If not, which quickstats field would include shared pages?
Can the API on one vcenter manage entities on another linked vcenter? The inventory in the linked vcenter doesn't seem to show up anywhere in the MOB. The linked vcenter can be managed in ...
See more...
Can the API on one vcenter manage entities on another linked vcenter? The inventory in the linked vcenter doesn't seem to show up anywhere in the MOB. The linked vcenter can be managed in the vcenter gui, but is this just the gui knowing to send api requests to the other vcenter? Does the API know anything about linked mode?
Trying to import an OVF with virtualSystemType vmx-06 into Vsphere 4.0.0 and it says vmx-06 is unsupported. I tried changing it to vmx-04 and vmx-07 in the OVF which allowed me to import it but...
See more...
Trying to import an OVF with virtualSystemType vmx-06 into Vsphere 4.0.0 and it says vmx-06 is unsupported. I tried changing it to vmx-04 and vmx-07 in the OVF which allowed me to import it but the resulting VM would not see its hard drive in the BIOS. Is there any list of which virtual system types are supported in different versions of vsphere?
Is there any way to access the Task object created from an OVF import? I can see the task in the task list but cannot find how to get the task from the HttpNfcLease to monitor progress. ...
See more...
Is there any way to access the Task object created from an OVF import? I can see the task in the task list but cannot find how to get the task from the HttpNfcLease to monitor progress.
Using the SDK is there any way to set the mac address of a vm created from an ovf import, or must this be done as a reconfig after the vm is finished creating?
Is there any way to monitor the utilization of individual cpus in a multi-cpu vm using the vsphere API? All of the cpu metrics I have seen have been aggregate.
Is there any way to tell when Windows customization for a clone is completely finished using the SOAP API? The use case is that a Windows template is cloned with customization, and then the cl...
See more...
Is there any way to tell when Windows customization for a clone is completely finished using the SOAP API? The use case is that a Windows template is cloned with customization, and then the clone is itself cloned with customization before the sysprep and reboots have finished. This results is a broken VM. Can the API detect this or is the only way to wait for a while and hope customization is finished? I have looked at config.tools.pendingCustomization and the events log but these seem to leave periods when an unfinished VM could be cloned.
retrieveProperties() seems to return null if nothing matches or if the session cookie you send has expired. Other calls such as findByInventoryPath() return a SOAP fault if the session has expi...
See more...
retrieveProperties() seems to return null if nothing matches or if the session cookie you send has expired. Other calls such as findByInventoryPath() return a SOAP fault if the session has expired. How do I tell if the cookie is bad or the property filter spec returned no matches? I'm using this for getting tasks which often there are none of. I'd prefer not to do another call each time to check the session if there is another way.
The only way I could get the VM to come up with working network was using VirtualE1000 with VirtualEthernetCardDistributedVirtualPortBackingInfo backing. Backing had port set to a DistributedV...
See more...
The only way I could get the VM to come up with working network was using VirtualE1000 with VirtualEthernetCardDistributedVirtualPortBackingInfo backing. Backing had port set to a DistributedVirtualSwitchPortConnection. DistributedVirtualSwitchPortConnection had portgroupkey set to the name of the MOR of the network (like "dvportgroup-669"), and switchuuid set to the uuid of the switch, which had to be formatted exactly with lowercase, a space every two characters and dash in the middle. I found out these by looking at the .vmx files of working ones. Stil haven't found a way to get switch uuids using the API. Code that worked: public VirtualDeviceConfigSpec buildNic(final String networkName) throws VmConfigBuilderException { final DistributedVirtualSwitchPortConnection connection = new DistributedVirtualSwitchPortConnection(); connection.setPortgroupKey(networkName); connection .setSwitchUuid("b8 11 03 50 35 cf ee cb-8d 36 34 77 9c 92 76 83"); final VirtualEthernetCardDistributedVirtualPortBackingInfo backing = new VirtualEthernetCardDistributedVirtualPortBackingInfo(); backing.setPort(connection); final VirtualEthernetCard nic = new VirtualE1000(); nic.setAddressType("generated"); nic.setBacking(backing); nic.setKey(30); final VirtualDeviceConfigSpec spec = new VirtualDeviceConfigSpec(); spec.setOperation(VirtualDeviceConfigSpecOperation.add); spec.setDevice(nic); return spec; }
I'm trying to connect a virtual nic on a vm to a distributed virtual port group. I have tried every set of options to the nic config spec I can think of. For any VM I create using the API,...
See more...
I'm trying to connect a virtual nic on a vm to a distributed virtual port group. I have tried every set of options to the nic config spec I can think of. For any VM I create using the API, in vSphere Client when you right click the VM, edit settings, select the network adapter, the network label dropdown is set to empty. When I pick the correct network from the dropdown the nic in the VM works. The sample code seems to say that all you need to do is setDeviceName on the nic backing to one of the names in the network label dropdown in vSphere client. Have tried: - backing.setNetwork to a reference to the network - using VirtualEthernetCardDistrbibutedVirtualPortBackingInfo instead of VirtualEthernetCardNetworkBackingInfo - using nic.setDeviceInfo() and setting label and summary to the name of the network I just need to know what to set to populate this dropdown so the nic works without manually setting the network label in the gui.