pyvmomi-community-samples
pyvmomi-community-samples copied to clipboard
A place for community contributed samples for the pyVmomi library.
Can someone give a sample on how to update Controller info like controller_type and bus_sharing in existing machine.
config_spec.numCoresPerSocket should not allow to set invalid values vcpus count is 3 allowed cores count should only be 1 or 3 (basically numbers with which vcpu count is divisible) but...
Hello, Let's suppose I used script [add_nic_to_vm.py](https://github.com/vmware/pyvmomi-community-samples/blob/master/samples/add_nic_to_vm.py) to create a new NIC. How am I to retrieve the key of the newly created device in order to, for example, delete...
When I called the script to create the virtual machine, the virtual machine started normally, but the network card was not configured successfully, but the script did not report an...
Hi everyone, I'm deploying ASAv images on ESXi, and till there everything good, I'm able to do it (using the info in the example [deploy_ovf.py](https://github.com/vmware/pyvmomi-community-samples/blob/master/samples/deploy_ovf.py)). But then, I notice that...
I used this script here: https://github.com/vmware/pyvmomi-community-samples/blob/master/samples/generate_html5_console.py to generate link but it doesnt work, see below. I get this link from script: http://myvcenter:7331/console/?vmId=vm-429&vmName=myvm&host=myvcenter>&sessionTicket=cst-VCT-5287c10e-1edf-e6e3-abc5-b6020891467e--tp-BE-D6-93-F7-1B-87-AD-4F-6A-4B-A6-11-83-86-3F-EB-4D-0F-CB-7A&thumbprint=BE:D6:93:F7:1B:87:AD:4F:6A:4B:A6:11:83:86:3F:EB:4D:0F:CB:7A The error I get on browser is: This...
Hi Team, I'm trying to install VMware tools using pyVmomi driver and getting below error. "Cannot complete operation because VMware Tools is not running in this virtual machine." Steps which...
Is there a sample to Reconfigure CPU/Memory/Disk of an existing VM ? I could not find it in the samples.
Can anyone provide an example about add virtual NVDIMM device and pmem disk device to a VM? Thanks.