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
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file pyvmrun-0.2.1.tar.gz.
File metadata
- Download URL: pyvmrun-0.2.1.tar.gz
- Upload date:
- Size: 5.6 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.4.1 importlib_metadata/3.7.3 pkginfo/1.7.0 requests/2.25.1 requests-toolbelt/0.9.1 tqdm/4.59.0 CPython/3.9.2
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
10dbb86260070f7b92732ec41efe8541e6cdb5140fdd2c22aeaeac9087782878
|
|
| MD5 |
1963269861d034518bd6734d97de0333
|
|
| BLAKE2b-256 |
4be7b66864a4962f25ee81acb56d969718afbc0ecff152e000b4d082c23d3bd5
|
File details
Details for the file pyvmrun-0.2.1-py3-none-any.whl.
File metadata
- Download URL: pyvmrun-0.2.1-py3-none-any.whl
- Upload date:
- Size: 21.0 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.4.1 importlib_metadata/3.7.3 pkginfo/1.7.0 requests/2.25.1 requests-toolbelt/0.9.1 tqdm/4.59.0 CPython/3.9.2
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
ef545687b3ff973647bc43037c9490f88a43e54772cb1dbe57fffde5c5281bd4
|
|
| MD5 |
38830ee054d5620b9453b3f21324f181
|
|
| BLAKE2b-256 |
7730aa95aae81086028361fe89d5256b68383a0d839f9b302c4f21842e02804f
|