美文网首页
pyVmomi入门.md

pyVmomi入门.md

作者: echo_rep | 来源:发表于2016-03-06 19:45 被阅读1814次

    简要说明

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

    环境配置:

    1. 网络环境:

    安装pyvmomi的server和VMware vCenter 网络打通;

    1. 系统环境:

    pyvmomi用pip安装,所以需要有python和pip;pyvmomi 6.0.0需要的python版本支持为2.7, 3.3 和 3.4, 支持的vSphere 版本为:6.0, 5.5, 5.1 和 5.0。

    安装插件:

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

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

    $sudo python setup.py install

    使用插件

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

    git clone

    相关文章

      网友评论

          本文标题:pyVmomi入门.md

          本文链接:https://www.haomeiwen.com/subject/qpyakttx.html