Simple Makefile script for quickly generating KVM virtual machine images for libvirt. Designed for and tested on CentOS 6.
- python-virtinst (virt-install)
- libguestfs-tools (virt-resize)
# The default command will build a new gold card image for cloning
make
# or specify a custom kickstart script
make KS=custom.ks
# You can then quickly make a cloned image
make clone NAME=test VCPU=4 RAM=4096
# You can run a custom shell script on first boot
make clone NAME=database FB=install_mysql.sh
# Destroy the base image
make clean
Have a look at the source to see all the available configuration options.