GitXplorerGitXplorer
l

pyvix

public
6 stars
2 forks
0 issues

Commits

List of commits on branch master.
Unverified
a60cb8a35d4d0be332a34dfe083c1e81f509e8f6

switch to vmware workstation api

lluciang committed 14 years ago
Unverified
f421cdf4095b5c728fe9b8877e0d9088f9065846

vm: add #ifdef guards for stuff only defined in workstation

lluciang committed 15 years ago
Unverified
0dbba6558f6fcc9da9dce316419d429dbc4d57e9

vm: add options (namely, VIX_VMPOWEROP_SUPPRESS_SNAPSHOT_POWERON) to revertToSnapshot

lluciang committed 15 years ago
Unverified
892ecd1c2b2b42b6c9d06e8b21706746cd21ef12

vm: add options (namely, VIX_SNAPSHOT_REMOVE_CHILDREN) to removeSnapshot

lluciang committed 15 years ago
Unverified
78ca6d183c2885995bd90abf2a87c8fff3ba0a1c

vm: add getCurrentSnapshot and getNamedSnapshot

lluciang committed 15 years ago
Unverified
edf04f14cb04bcc876fa530657cfcc958d728d48

vm: add optional parameters to powerOn/poweroff functions

lluciang committed 15 years ago

README

The README file for this repository.

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.