VMware VIX binding for Python (unofficial)


Keywords
vmware, python, api, vix, automation, object-oriented, vmware-products
License
GPL-3.0
Install
pip install vix==1.0

Documentation

VIX

https://img.shields.io/pypi/dm/vix.svg?style=plastic:alt:PyPI-Downloads

VIX is a object oriented python wrapper for VMware's VIX API.

Installing

Install and update using pip:

pip install -U vix

Quick Example

from vix import VixHost, VixError

host = VixHost()

try:
    vm = host.open_vm(r'/home/root/VirtualMachines/Debian/Debian.vmx')
    snapshot = vm.create_snapshot(
        'Testing VIX',
        'Well, this is great!',
        include_memory=True
    )
    print('Snapshot created!')
except VixError as ex:
    print("Something went wrong :( {0}".format(ex))

Features

The full VIX API was wrapped, some of the supported operations include:

  • Power on & power off VMs.
  • Manage snapshots (with or without memory)
  • Cloning (linked or full)
  • Script & Command execution on guests
    • Executing scripts and processes
    • Manage directories, files & processes
  • Control VMs environment
  • Manage shared folders
  • Create screenshot of guest VMs