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.
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:
- OpenSSH
- SCVMM's PowerShell Module (virtualmachinemanager), installed with the Virtual Machine Manager (VMM) Console. You can also get it at https://github.com/MP-ES/VirtualMachineManager-PowerShellModule
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
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)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| vmm_manager-1.3.0.tar.gz | 28.2 kB | Without provenance | Details for vmm_manager-1.3.0.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| vmm_manager-1.3.0-py3-none-any.whl | Python 3 | none | any | Details for vmm_manager-1.3.0-py3-none-any.whl |
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
|
Security for vmm_manager 1.3.0
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.