Skip to main content
Donate to the Python Software Foundation or Purchase a PyCharm License to Benefit the PSF! Donate Now

Optimization for libvirt VMs (QEMU/KVM)

Project description

libvirt VM optimizer

Optimizes libvirt QEMU/KVM Virtual Machines.

Prerequisites

Installation

  • Install libvirt-python3 (for example yum install libvirt-python3 on fedora)
  • pip3 install libvirt-vm-optimizer (pypi)

Usage

Basic usage:

virsh dumpxml vm | ./libvirt-optimizer.py -p server | virsh define /dev/stdin

Help

usage: libvirt-vm-optimizer.py [LIBVIRT_XML]

 - optimizes LIBVIRT_XML (supports kvm|qemu)

positional arguments:
  LIBVIRT_XML           VM libvirt.xml (will read from stdin if not specified)

optional arguments:
  -h, --help            show this help message and exit
  -o [OUTPUT], --output [OUTPUT]
                        output file (will be printed to stdout if not
                        specified)
  -i, --in-place        edit files in place
  -p [PROFILE], --profile [PROFILE]
                        one of (default, cpu, server )
  -m, --force-multithreaded-pinning
                        setup CPU pinning in simultaneous multithreading
                        systems (experimental and may be slower)
  -c [URI], --connect [URI]
                        connection URI (uses default connection if not
                        specified)

Project details


Release history Release notifications

Download files

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

Filename, size & hash SHA256 hash help File type Python version Upload date
libvirt_vm_optimizer-0.0.9-py3-none-any.whl (12.5 kB) Copy SHA256 hash SHA256 Wheel py3
libvirt-vm-optimizer-0.0.9.tar.gz (8.0 kB) Copy SHA256 hash SHA256 Source None

Supported by

Elastic Elastic Search Pingdom Pingdom Monitoring Google Google BigQuery Sentry Sentry Error logging AWS AWS Cloud computing DataDog DataDog Monitoring Fastly Fastly CDN SignalFx SignalFx Supporter DigiCert DigiCert EV certificate StatusPage StatusPage Status page