prziborowski
prziborowski
The CloneVm method only works from vCenter. You can't execute it directly from ESXi.
If your template VM is very simple, then it is possible you could re-implement what clone method is doing (copying files and creating a new VM). I haven't done something...
Sorry shyamachilles, I am not familiar with VVOL.
I think you can check with: ``` if isinstance(obj, vim.Datacenter): print("Obj is a datacenter") ``` I haven't had to instantiate the object for that reason. You could instantiate it like...
How are you connecting? It is throwing because guestOperationsManager is returning None. This should be available since 5.0, so would think you'd have it. If you are using pyVim.connect.Connect to...
I think you either need to start it as a shell (/bin/bash -c "sudo sh -c find /opt/bar -type f -name foo") or give the full path to the commands...
Most operations should be safe by reusing the same si, which is the same session/cookie. But if you are using the property collector (si.content.propertyCollector), then that will be shared among...
Can you provide details on what APIs you are using to write the data, and how you are refreshing? Are you doing both on ESXi or both on vCenter Server...
I believe CustomizationSpec is what you are looking for. In the `identity` parameter, if you pass in type [vim.vm.customization.Sysprep](https://vdc-repo.vmware.com/vmwb-repository/dcr-public/d1902b0e-d479-46bf-8ac9-cee0e31e8ec0/07ce8dbd-db48-4261-9b8f-c6d3ad8ba472/vim.vm.customization.Sysprep.html), then the `userData` of type [vim.vm.customization.UserData](https://vdc-repo.vmware.com/vmwb-repository/dcr-public/d1902b0e-d479-46bf-8ac9-cee0e31e8ec0/07ce8dbd-db48-4261-9b8f-c6d3ad8ba472/vim.vm.customization.UserData.html) includes the `computerName` (of type...
I think https://github.com/vmware/pyvmomi-community-samples/blob/master/samples/vminfo_quick.py is the best example for what you want. `view = pchelper.get_container_view(si, obj_type=[vim.VirtualMachine])` part is for getting a view (note that you are responsible for calling view.Destroy() on...