pyvmomi-community-samples
pyvmomi-community-samples copied to clipboard
A place for community contributed samples for the pyVmomi library.
vm_pwd was used which was incorrect the argument should be vm_password. P.S. This is my first forked contribution thingy so if I did something wrong let me know!
### Is your feature request related to a problem? Please describe. Is it possible to invoke a esxcli command on a specific host using pyvmomi? Looked in SDK and mob...
### Describe the bug I'm trying to set default encryption policy "VM Encryption Policy" to a VM using community [sample script](https://github.com/vmware/pyvmomi-community-samples/blob/master/samples/set_vm_storage_policy.py). The script completes without any issues. On vCenter UI...
Hi all, There are a couple old issues posted on this topic that haven't been answered, so I figured I would just open a new issue. I have an existing...
Hi all, I have a script that uses the following function to create a scheduled task snapshot. ``` def create_schedule_task(vm): spec = vim.scheduler.ScheduledTaskSpec() spec.name = 'Snapshot vm %s' % vm.name...
reconfigure_CPU_vm: command line interface to upgrade number of CPU. clone_vm_CPU_reconfig: command line interface to clone VM template and reconfigure it.
### Describe the bug I want to recover the screenshots of a specified vm then delete them or group them in another directory in the vcenter browser via pyvmomi. ###...
Hi Guys, I am trying to install virtual machine through pyvmomi (version : 6.0.0.2016.6) using python (version : 2.7.3) I need to input some boot parameters and based on that...
### Describe the bug I tried to list all all empty directories on a datastore but was not successful with ``` search_spec = vim.host.DatastoreBrowser.SearchSpec(query=[vim.host.DatastoreBrowser.FolderQuery()]) datastore.browser.SearchDatastoreSubFolders_Task(f"[{datastore.summary.name}]", search_spec) ``` Only directories like...
### Describe the bug This is the command I'm sending to run the create_vm.py function `python3 create_vm.py -s vcenter.address.something -u my_svc_account -p 'my-svc-account-pass' -v test --datacenter-name 'dc-01' --datastore-name 'ds-11' --esx-ip...