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
import pyvmrun
vm = pyvmrun.Vmrun( '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.0.tar.gz
(5.6 kB
view details)
Built Distribution
pyvmrun-0.2.0-py3-none-any.whl
(21.0 kB
view details)
File details
Details for the file pyvmrun-0.2.0.tar.gz
.
File metadata
- Download URL: pyvmrun-0.2.0.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 | 4f2af22684118d620dbd4d521e4e7d7e6f3e4c34b2f7f91e4da2f1aa625d8969 |
|
MD5 | 7f8c48bfe2cbc9c0b118de6248a2ce12 |
|
BLAKE2b-256 | badc5bd419a44fece6af489c2cdd69d30a5528487d77c9de562bf250b8f455c5 |
File details
Details for the file pyvmrun-0.2.0-py3-none-any.whl
.
File metadata
- Download URL: pyvmrun-0.2.0-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 | 587718f3bf47e3b187ceb0c83e5f2cf6c3af9014ff72f271924301982aad76f4 |
|
MD5 | 3d7cd63f3ca6ce36147bb439019e2e9c |
|
BLAKE2b-256 | fac24fd0966020562dc741cf802bdfa0ef502c5c6b53e7cf3da6dbd106ce1134 |