pyVmomi入门

简要说明

pyVmomi is the Python SDK for the VMware vSphere API that allows you to manage ESX, ESXi, and vCenter.

环境配置:

  1. 网络环境:
    安装pyvmomi的server和VMware vCenter 网络打通;
  2. 系统环境:
    pyvmomi用pip安装,所以需要有python和pip;pyvmomi 6.0.0需要的python版本支持为2.7, 3.3 和 3.4, 支持的vSphere 版本为:6.0, 5.5, 5.1 和 5.0。

安装插件:

  1. $sudo apt-get install python-pip
  2. $sudo pip install pyvmomi
  3. $sudo pip freeze | grep pyvmomi 查看安装的pyvmomi版本,现在是6.0版本
  4. pyvmomi==6.0.0 如果已经安装过,升级用pip install --upgrade pyvmomi

或者也可以下载源码包安装,

$sudo python setup.py install

使用插件

pyvmomi提供了一些社区样本项目,可以参考编写自己的代码:
git clone





原文地址:https://www.cnblogs.com/echorep/p/5248279.html