Skip to content

atiratree/libvirt-vm-optimizer

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

10 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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

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)

About

Optimization for libvirt VMs (QEMU/KVM)

Resources

License

Stars

Watchers

Forks

Packages

No packages published