Skip to main content

Удаленное управление Hyper-V через winrm

Project description

Hyper-V winrm python

На данный момент можно создавать виртуальные машины только через заранее подготовленный шаблон виртуальноф машины.

Installation

python3 -m pip install hyperv

Configuration

from hyperv.hyperv import HyperV
import config

HV = HyperV(
    env_prefix=env_prefix,
    storage_root=storage_root,
    vm_template_pach=vm_template_pach,
    host=hv_host,
    user=hv_user,
    password=hv_password
    )


free_memory = HV.get_free_memory
print(free_memory)
  • storage_root - Директория, где будет создана папка, для Виртуальной машины
  • vm_template_pach - Директория, где лежит шаблон Виртуальной машины
  • env_prefix - Префикс, который будет добавлен к имени Виртуальной машины
  • host - Hyper-V хост
  • user - Имя пользователя для доступа по winrm
  • password - Пароль пользователя для доступа по winrm

License

GPL-3.0

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

hyper-v-0.0.3.tar.gz (3.5 kB view details)

Uploaded Source

Built Distribution

hyper_v-0.0.3-py3-none-any.whl (4.2 kB view details)

Uploaded Python 3

File details

Details for the file hyper-v-0.0.3.tar.gz.

File metadata

  • Download URL: hyper-v-0.0.3.tar.gz
  • Upload date:
  • Size: 3.5 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.8.0 pkginfo/1.9.2 readme-renderer/34.0 requests/2.27.1 requests-toolbelt/0.10.1 urllib3/1.26.13 tqdm/4.64.1 importlib-metadata/4.8.3 keyring/23.4.1 rfc3986/1.5.0 colorama/0.4.5 CPython/3.6.9

File hashes

Hashes for hyper-v-0.0.3.tar.gz
Algorithm Hash digest
SHA256 873edb870d7a6867ed1c28b8526eaeead505dd63618789d06d7e58656983a5a0
MD5 f97be9e76fde129b27209ad9c046c379
BLAKE2b-256 26d40dbcd18bbe04ec896a5fe6fd7274b52427d09de0dd5accf7fc8231afd058

See more details on using hashes here.

File details

Details for the file hyper_v-0.0.3-py3-none-any.whl.

File metadata

  • Download URL: hyper_v-0.0.3-py3-none-any.whl
  • Upload date:
  • Size: 4.2 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.8.0 pkginfo/1.9.2 readme-renderer/34.0 requests/2.27.1 requests-toolbelt/0.10.1 urllib3/1.26.13 tqdm/4.64.1 importlib-metadata/4.8.3 keyring/23.4.1 rfc3986/1.5.0 colorama/0.4.5 CPython/3.6.9

File hashes

Hashes for hyper_v-0.0.3-py3-none-any.whl
Algorithm Hash digest
SHA256 45bf60a8b3bd2f11b75fd7e756cc990e91986e002ff658b98f23a19d03398846
MD5 f9ba61b2e5d85348000c53ba178a1eb7
BLAKE2b-256 5fca9d5a0e560e48f53b62f9f3f4d63624fe7bc6c88403d64797094825fd7867

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page