pyvmomi-community-samples (vmware python api)

1125 ./clone_vm.py --host 192.168. -u 'user' --password 'pass' -v test1 --template pub-centos-66-64-m --datastore-name 11 --no-power-on
1126 vim clone_vm.py user pass
1127 ./clone_vm.py --host 192.168. -u 'user' --password 'pass' -v test1 --template pub-centos-66-64-m --datastore-name 11 --no-power-on
1128 vim clone_vm.py user pass
1129 ./clone_vm.py --host 192.168. -u 'user' --password 'pass' -v test1 --template pub-centos-66-64-m --datastore-name 11 --no-power-on
1130 ./clone_vm.py --host 192.168. -u 'user' -v test1 --template pub-centos-66-64-m --datastore-name 11 --no-power-on
1131 ./clone_vm.py --host 192.168. -u 'user' -v test1 --template pub-centos-66-64-m --no-power-on
1139 ./clone_vm.py --host 192.168. -u 'user' -v test1 --template pub-centos-66-64-m --no-power-on
1140 which clone_vm user
1141 ./clone_vm.py --host 192.168. -u 'user' -v test1 --template pub-centos-66-64-m --no-power-on
1142 ./clone_vm.py --host 192.168. -u 'user' --password 'pass' -v test1 --template pub-centos-66-64-m --datastore-name 11 --no-power-on
1159 ./clone_vm.py --host 192.168. -u 'user' --password 'pass' -v test1 --template pub-centos-66-64-m --datastore-name 11 --no-power-on
1162 vim clone_vm.py user pass
1163 ./clone_vm.py --host 192.168. -u 'user' --password 'pass' -v test1 --template pub-centos-66-64-m --datastore-name 11 --no-power-on
1164 ./clone_vm.py --host 192.168. -u 'user' --password 'pass' -v test1 --template pub-centos-66-64-m --datastore-name 11 --no-power-on --resource-pool LimitCpu
1165 ./clone_vm.py --host 192.168. -u 'user' --password 'pass' -v test1 --template pub-centos-66-64-m --no-power-on --resource-pool LimitCpu
1166 ./clone_vm.py --host 192.168. -u 'user' --password 'pass' -v test1 --template pub-centos-66-64-m --datastore-name 26-15 --no-power-on --resource-pool LimitCpu
1167 ./clone_vm.py --host 192.168. -u 'user' --password 'pass' -v test1 --template pub-centos-66-64-m --datastore-name 26-15 --no-power-on --resource-pool a
1199 ./clone_vm.py --host 192.168. -u 'user' --password 'pass' -v saltmaster02 --template pub-centos-66-64-m --datastore-name 26-15 --no-power-on --resource-pool oms
1200 ./clone_vm.py --host 192.168. -u 'user' --password 'pass' -v saltmaster02 --template centos6-64 --datastore-name 26-15 --no-power-on --resource-pool oms
1201 ./clone_vm.py --host 192.168. -u 'user' --password 'pass' -v saltmaster02 --template centos6-64 --datastore-name 11 --no-power-on --resource-pool oms
1202 ./clone_vm.py --host 192.168. -u 'user' --password 'pass' -v svnserver01 --template centos6-64 --datastore-name 11 --no-power-on --resource-pool oms
1203 ./clone_vm.py --host 192.168. -u 'user' --password 'pass' -v manage01 --template centos6-64 --datastore-name 11 --no-power-on --resource-pool oms

原文地址:https://www.cnblogs.com/zhaobin022/p/5624408.html