kvm-wrapper
This page is an old version. The new one is available here (30/12/2010)
Description
kvm-wrapper is (yet another) virtual machines manager, to be used with KVM. It intends to be lightweight, simple (and hackable), and started as a tiny wrapper for personnal use.
kvm-wrapper is written in shellscript only.
Features
- Start/stop a virtual machine
- Start the VM in a screen, and attach it (to access to its console)
- Basic network handling (connect the VM to a bridge)
- Create/remove a VM and the associated disk (formats supported by qemu/kvm-img, lvm)
- Bootstrap a VM (a lenny bootstrap script is included; bootstrapping doesn't work with nbd for some unknown reason)
- Connect to qemu's monitor and the VM serial console
Download
kvm-wrapper is still under developpement, and the subversion repository is available at:
https://svn.notk.org/bencoh/kvm-wrapper/
By default kvm-wrapper must be installed to /usr/share/kvm-wrapper. But you can change this by editing the ROOTDIR variable in kvm-wrapper.sh.
Dependencies
kvm-wrapper uses the following to manage your virtual machines (the only one mandatory is the kvm/qemu binary) :
- kvm/qemu tools (kvm, kvm-img, kvm-nbd)
- GNU screen
- socat.
- lvm tools (for lvm creation)
- kpartx, debootstrap (to bootstrap)
Ressource files
The images (kernel/initrd) used in lenny's bootstrap script are available here. These are just kernel/initrd created from a Debian/Lenny virtual machine and tested to work. You have to copy them in your BOOT_IMAGES_DIR folder.
Other files can be found here.
Benjamin Cohen - bencoh at notk dot org | Dominique Martinet