A Python library for interacting with the VMWare Fusion CLI
Project description
vmware-fusion-py
This Python module provides a convenient way to control and interact with VMware Fusion virtual machines using the vmrun
command-line utility. Built and tested for VMware Fusion on arm64 MacOS
Features
- Full coverage of the
vmrun
CLI- Start, stop, reset, suspend, pause, and unpause virtual machines
- Manage snapshots (create, delete, list, and revert)
- Manage network adapters (list, add, set, and delete)
- Manage port forwarding for host networks
- Run programs and scripts in the guest operating system
- Manage files and directories in the guest operating system
- Manage shared folders between the host and guest
- Interact with the guest operating system (type keystrokes, capture screenshots, etc.)
- Clone virtual machines
- Upgrade virtual machines and install VMware Tools
Prerequisites
- Python 3.x
- VMware Fusion on MacOS
vmrun
command-line utility (included with VMware Fusion)
Installation
Pip
pip install vmware-fusion-py
From Source
- Clone the repository or download the source code.
- Install the package using
pip install .
Usage
Initialization
# Get vmrun path or provide the path as a string
vmrun_path = shutil.which("vmrun")
if not vmrun_path:
# vmrun is installed automatically alongside VMware Fusion. Install VMware
exit()
# Initiate client
client = VMware(vmrun_path=vmrun_path)
Presets
client = VMware(
vmrun_path="/path/to/vmrun",
host_type="ws",
vm_password="password",
guest_user="username",
guest_password="password",
vm_path="/path/to/vm"
)
License
This project is licensed under the MIT License.
Contributors
- Ahmet Mutlugun Github
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
Close
Hashes for vmware_fusion_py-1.0.0a1-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 3dec2ca35921f73dcaf6a8006960ef6b3c13f60230f4f27fc5e993169b6627b2 |
|
MD5 | 2e5e398f67c77056935b5c0fd6097b7f |
|
BLAKE2b-256 | 0cb9b8b3e90c5b419da25f39999cfa4c4594e49e4505a38ca5e6a1f1d655a4cb |