pyvmomi
pyvmomi copied to clipboard
VMware vSphere API Python Bindings
### Describe the bug I have a virtual machine named "template_centos7", and now I want to clone it, but I have failed using the following script Did I make a...
### Describe the bug The export of an host profile via the vSphere web client or via pyVmomi using the [ExportProfile method](https://vdc-repo.vmware.com/vmwb-repository/dcr-public/1ef6c336-7bef-477d-b9bb-caa1767d7e30/82521f49-9d9a-42b7-b19b-9e6cd9b30db1/vim.profile.Profile.html#exportProfile) **is not deterministic**. Each time ExportProfile() is called...
I have a VM with 2 disks attached to it. I need to remove one disk temporarily, do some tasks and add again. I am looking for a sample which...
### Describe the bug # Get ESXi host object esxi_obj = content.searchIndex.FindByDnsName(dnsName=esxi_host, vmSearch=False) if esxi_obj is None: print(f'ESXi host {esxi_host} not found.') si.Disconnect() exit() # Retrieve hardware info from ESXi...
I can get customValue from a VM when pulling its information. I organize my VMs by a custom attributes. For example, 'owner'. Is there anyway to see all custom attributes...
### Describe the bug Hi, uploading a vmdk with pyvmomi to a vsan datastore seem to leave the resulting file in an unusable state. This pops up for me because...
Please integrate the vSAN Management SDK in pyVmomi. At the moment, doing advanced VSAN stuff with Python [is far from user-friendly](https://storagehub.vmware.com/t/vsan-api-cookbook-for-python/virtual-san-sdks/)... or, to put it less diplomatically: It's a pain...
Trying to use the VmomiJSONEncoder on ComputeResource or ClusterComputeResource objects. I have tried it two different ways but keep getting an InvalidProperty error from pyvmomi. Could you please point me...
### Describe the bug We have some VMs, which are in shut-down state some times. On these VMs no guestOS Informations was given by this pyvmomi tool. I had taken...
Could someone please let me know how to mount a VVOL datastore to additional ESXi hosts apart from the one with which it was created.