Skip to main content

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


Download files

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

Source Distribution

libvirt-vm-optimizer-0.0.9.tar.gz (8.0 kB view hashes)

Uploaded Source

Built Distribution

libvirt_vm_optimizer-0.0.9-py3-none-any.whl (12.5 kB view hashes)

Uploaded Python 3

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