mirror of
https://github.com/vmware/vsphere-automation-sdk-python.git
synced 2024-11-22 09:39:58 -05:00
43c25d0b61
When re-run the sample without cleanup previous port the power on peration may time out due to the output file exist already. Remove the file before creating new port and add notes to help avoiding this. Signed-off-by: Tianhao He <tianhao64@users.noreply.github.com> |
||
---|---|---|
.. | ||
helper | ||
setup | ||
vm | ||
__init__.py | ||
README.md |
This directory contains samples for the vSphere infrastructure and virtual machine APIs. You have two options to run samples inside this package:
-
Run all samples under vcenter folder using main.py in samples.vsphere.vcenter.setup package. Please see the README for more details.
-
Run an individual sample in an existing environment. You can either pass the environment parameters through command line arguments or specify them in testbed.py in the setup package.
For example, to run the create_default_vm sample in the vsphere.samples.vcenter.vm.create package:
* with the testbed settings specified in testbed.py in a Linux machine: $ ./run_sample.sh ../samples/vsphere/vcenter/vm/create/create_default_vm.py -v * Or specify the credentials using command line parameters: $ ./run_sample.sh ../samples/vsphere/vcenter/vm/create/create_default_vm.py -s \<server> -u \<username> -p \<password> -v