Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
python bindings for vmware vix api
C Python
branch: master

switch to vmware workstation api

Signed-off-by: Lucian Adrian Grijincu <lucian.grijincu@gmail.com>
latest commit a60cb8a35d
@luciang authored
Failed to load latest commit information.
docs version: mark upgrade
tests vm: add getCurrentSnapshot and getNamedSnapshot
.gitignore .gitignore: ignore build/
PKG-INFO version: mark upgrade
README readme: add description
__init__.py import pyvix
_support.py dos2unix + shebang
_vixmodule.c call python initializers
_vixmodule.h vm: add vmxPath property
callback_accumulator.c callback_accumulator: add VixCallbackAccumulator_TupleInit
constants.c
error_handling.c upgrade to new vix.h: rename XXX_PROHIBITED_ON* to XXX_PROHIBITED
host.c switch to vmware workstation api
lifo_linked_list.h import pyvix
lock_manip.h import pyvix
memory_systems.h import pyvix
setup.cfg import pyvix
setup.py switch to vmware workstation api
snapshot.c import pyvix
stateful_handle_wrapper.c import pyvix
util.c import pyvix
version.txt version: mark upgrade
vix.py vm: add getCurrentSnapshot and getNamedSnapshot
vm.c vm: add #ifdef guards for stuff only defined in workstation

README

pyvix is a Python wrapper for the VMWare VIX C API that allows Python
to programmatically control VMWare virtual machines.

Example operations include:
 - powering on/off;
 - suspending;
 - creating, reverting to, and removing snapshots;
 - sending/receiving files to/from the virtual machine;
 - running programs on the virtual machine.


= Build and install =
rm -rdf build/; python setup.py build; python setup.py install

Note that `python setup.py build` will call gcc to build the Python
extension module and link it to libvmware-vix.so. Make sure you use
the same compiler version for both libvmware-vix.so and the extension.
I "solved" some Segmentation Faults by matching the compiler versions.

= Run tests =
a) /usr/bin/py.test
   - this will run all tests in tests/
   - add "-v" to see the actual tests
   - add "-s" to see printf() from the C extensions and print from Python

b) gdb --args /usr/bin/python /usr/bin/py.test tests/test_vm.py -s -v
   - run it like this under gdb: it needs as first argument a binary
    executable, not a script.


Something went wrong with that request. Please try again.