Personal tools
Skip to content. | Skip to navigation
A backup utility for QEMU, KVM, XEN, and Virtualbox guests. Virt-back is a python application that uses the libvirt api to safely shutdown, gzip, and restart guests. The backup process logs to syslog for auditing and virt-back works great with cron for scheduling outages. Note that there is a --amount flag which controls the number of generations kept. The default number is 3 generations. Example cronjob: 15 2 * * 1 /usr/bin/virt-back --path=/var/backups --quiet --backup vm1 15 23 * * 5 /usr/bin/virt-back --quiet --backup vm2 Virt-back guest restore procedure In this guide our guest vm2 has failed with a major corruption and we would like to restore from our backups. We have our running production guest images in /KVMROOT and our virt-back guest backups in /KVMBACK. Overview: Ensure the guest is shut off. move the bad image file out of the way untar the virt-back backup into place power up the guest Detailed Procedure: Verify the guest is shut off by running: virt-back --info-all We noticed that vm2 was still running so we invoked: virt-back --shutdown vm2 Move the corrupted image file out of the way: mv /KVMROOT/vm2.img /KVMROOT/vm2.img.NFG Unzip and unarchive the backup using the following command (note --strip depends on your original --path depth): sudo tar -xzvf /KVMBACK/vm2.tar.gz -C /KVMROOT --strip 1 When the untar completes, start the guest: virt-back --create vm2
virtinst is a module that helps build and install libvirt based virtual machines. Currently supports KVM, QEmu and Xen virtual machines. Package includes several command line utilities, including virt-install (build and install new VMs) and virt-clone (clone an existing virtual machine).
Waitress WSGI server
Python object model built on JSON schema and JSON patch.
Python WSGI based adapter for the Websockets protocol
Web Service Made Easy (WSME) simplify the writing of REST web services by providing simple yet powerful typing which removes the need to directly manipulate the request and the response objects. WSME can work standalone or on top of your favorite python web (micro)framework, so you can use both your prefered way of routing your REST requests and most of the features of WSME that rely on the typing system like: Alternate protocols, including ones supporting batch-calls Easy documentation through a Sphinx extension WSME is originally a rewrite of TGWebServices with focus on extensibility, framework-independance and better type handling.
A libudev binding
Python extension module wrapper for libattr. It allows to query, list, add and remove extended attributes from files and directories.
QEMU is a generic and open source processor emulator which achieves a good emulation speed by using dynamic translation. QEMU has two operating modes: * Full system emulation. In this mode, QEMU emulates a full system (for example a PC), including a processor and various peripherials. It can be used to launch different Operating Systems without rebooting the PC or to debug system code. * User mode emulation. In this mode, QEMU can launch Linux processes compiled for one CPU on another CPU. As QEMU requires no host kernel patches to run, it is safe and easy to use.