Skip to main content

vmm-manager

Python script that manages resources in the System Center Virtual Machine Manager (SCVMM), in a declarative way, based on a YAML configuration file.

License Integration Release Python PyPI

Breaking changes

1.0.0

  • The inventory file schema has completely changed. See the inventory_example.yaml file for more details.
  • The command parameters were renamed to be more consistent.
  • The API and inventory schema are now stable.

Prerequisites

You need a Windows machine, which will serve as the access point to SCVMM, with the following tools:

Installation

pip install -U vmm-manager

How to use

Use the command below to see the available options:

vmm_manager -h

Environment variables

You can set environment variables to avoid passing the same parameters every time you run the script. See an example in the .env.default file.

Example of a inventory file

inventory_example.yaml

Development

Install Poetry

Run the following commands to install Poetry:

# install
curl -sSL https://install.python-poetry.org | python3 -

# auto-completion
# Bash
poetry completions bash >> ~/.bash_completion

Environment variables (optional)

Use the .env.default file as a template to create a .env file with the environment variables needed to run the script. You can load them by running the command export $(grep -v '^#' .env | grep -v '^$' | xargs) before executing the script.

How to run

# Loading environment variables (optional)
export $(grep -v '^#' .env | grep -v '^$' | xargs)

# Install dependencies
poetry install --no-root

# Run
poetry run python -m vmm_manager -h

Helpful commands

# Add a dependency
poetry add <pacote> [--dev]

# Update dependencies
poetry update

# Run linting
poetry run ./lint.sh

# Fix dependencies sorting
poetry run isort .

# Run tests
poetry run python -m pytest -vv

# List virtualenvs
poetry env list

# Remove a virtualenv
poetry env remove <name>

References

Metadata

Release files for vmm_manager 1.3.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for vmm_manager 1.3.0
File Size Uploaded
vmm_manager-1.3.0.tar.gz 28.2 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for vmm_manager 1.3.0
File Interpreter ABI Platform
vmm_manager-1.3.0-py3-none-any.whl Python 3 none any Details

Total release size: 73.7 kB

Release files / vmm_manager-1.3.0.tar.gz

Download URL vmm_manager-1.3.0.tar.gz
Size 28.2 kB
Tags Source
SHA-256 checksum
How to use checksums
7d9e824ae9edb9831e140ae9abc138355e0d48e95105100b1b1b2221c87aad1f
BLAKE2b-256 checksum
How to use checksums
dcf0bd62eb45c0656a6e7a093dcbb338f7fff685124eac078eb1724a595d8dae
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via poetry/2.2.1 CPython/3.14.2 Linux/6.11.0-1018-azure

Release files / vmm_manager-1.3.0-py3-none-any.whl

Download URL vmm_manager-1.3.0-py3-none-any.whl
Size 45.5 kB
Tags Python 3
SHA-256 checksum
How to use checksums
95795d2da11067122d3f5d2374cd17c73c1c48caf494c5bbe842a6d574c8d03b
BLAKE2b-256 checksum
How to use checksums
bb43907f6088547eb2f7196f1a4d568c6eaee234edc1980cdd178bcedd3006e0
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via poetry/2.2.1 CPython/3.14.2 Linux/6.11.0-1018-azure
Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page