vmwc is designed to be the simplest way possible to use VMWare's SDK
from vmwc import VMWareClient
host = '192.168.1.1'
username = '<username>'
password = '<password>'
with VMWareClient(host, username, password) as client:
for vm in client.get_virtual_machines():
vm.power_on()
pip install vmwc
- set server datetime
- replace license
- datastores list
- virtual machines create new
- virtual machines delete
- virtual machines list
- virtual machines power off
- virtual machines power on
- virtual machines shutdown
- virtual machines reboot
- virtual machines reconfigure bios
- virtual machines reconfigure network interfaces
- virtual machines snapshots delete all
- virtual machines snapshots delete specific
- virtual machines snapshots revert
- virtual machines snapshots list
- virtual machines snapshots new
- virtual switches create new
- virtual switches delete
- virtual switches list
When I searched for a library to write automation scripts to control my esxi environment, I bumped into pyvmomi . My first impression was "It's too low-level and the general Development Experience doesn't feel easy to use". Therefore, on me break time, I wrote vmwc on the base of pyvmomi to provide a lighter, TL;DR feeling and straight-forward API.
vmwc was developed to control a single esxi machine at a time. However, it should work with vcenter instances as well