This page is an old version. The new one is available here (30/12/2010)
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.
- 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
kvm-wrapper is still under developpement, and the subversion repository is available at:
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.
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
- lvm tools (for lvm creation)
- kpartx, debootstrap (to bootstrap)
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