Platform-independent VMWare/vmrun control from Python
Project description
pyvmrun
Introduction
This is a python wrapper for vmrun, used to control VMWare virtual machines. It is based off of vmrun-python by @Binjo, whose idea is in-turn based on Alexander Sotirov's vmrun-ruby. Assumed, same as original, to support only VMWare Fusion/WS versions 6.0 and above.
Basic Usage
from pyvmrun import PyVmrun
vm = PyVmrun.list()[0]
# or
vm = PyVmrun( 'full/path/to/your/foo.vmx' )
vm.start()
vm.suspend()
vm.stop()
Known Issues
-
Calls to revertToSnapshot may corrupt the VM's vmx file, causing the VM to refuse to start. If this is the case, edit your vmx file:
- remove the following line:
checkpoint.vmState = "foo-SnapshotXX.vmsn"
- edit vmx vmdk (disk) reference:
# ide0:0.fileName = "foo-XXXXX.vmdk" # change to ide0:0.fileName = "foo.vmdk"
Credits
Thanks to @Binjo and all original contributors for your work.
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
pyvmrun-0.2.1.tar.gz
(5.6 kB
view hashes)
Built Distribution
pyvmrun-0.2.1-py3-none-any.whl
(21.0 kB
view hashes)