Installation

PyVIX is installed with a two step process.

First, get the various VIX constants from your installation of VIX.

python pyvix2/get_enum.py

This creates the pyvix2.enum module, which is required.

Then run the setup.py script.

python setup.py install

Note that you can’t use any of this without VMware VIX and some kind of VMware “service povider” running.

Generally, you’ll want the “latest and greatest” VIX. This package is tested with VMware VIX 1.11.0.

You have a number of choices for the VMware service providers.

  • VMware Server. ESX.
  • VMware Workstation.
  • VMware Player. This is the default. It has limited functionality. It can’t do snapshots or be controlled remotely.
  • VMware VI Server. Part of the Virtual Infrastructure suite.
  • VMware Shared Workstation.

The setup.py File

This provides Python package information.

from __future__ import print_function
from setuptools import setup
import sys

if sys.version_info < (2,7):
    print( "PyVIX2 requires Python 2.7" )
    sys.exit(2)

setup(
    name='pyvix2',
    version='3.1',
    description='Python wrapper on VMware VIX API',
    author='S.Lott',
    author_email='s_lott@yahoo.com',
    url='https://sourceforge.net/projects/pyvix2/',
    packages=[
        'pyvix2',
        ],

Trove Classifiers

classifiers=[
    "Development Status :: 4 - Beta",
    "Environment :: Console",
    "Intended Audience :: Developers",
    "Intended Audience :: System Administrators",
    "Operating System :: OS Independent",
    "Programming Language :: Python",
    "Topic :: Software Development :: Libraries",
    "Topic :: System :: Systems Administration",
    ]
)

Table Of Contents

Previous topic

Welcome to PyVix2’s documentation!

Next topic

Command-Line Use

This Page