Juan Manuel Caicedo Carvajal is sharing code with you

Bitbucket is a code hosting site. Unlimited public and private repositories. Free for small teams.

Don't show this again

cavorite / vm-clonetools http://koo.fi/tech/2010/11/28/cloning-ubuntu-1004-server-kvm-guests-efficiently/

Scripts for cloning KVM guests in Ubuntu. Based on the work of Mikko Kortelainen, described in his blog: http://koo.fi/tech/2010/11/28/cloning-ubuntu-10...

Clone this repository (size: 1.9 KB): HTTPS / SSH
hg clone https://bitbucket.org/cavorite/vm-clonetools
hg clone ssh://hg@bitbucket.org/cavorite/vm-clonetools

vm-clonetools overview

Recent commits See more »

Author Revision Comments Message Labels Date
Juan Manuel Caicedo Carvajal 6fe4e99c53d9 Adding dnsmasq configuration file for the host
Juan Manuel Caicedo Carvajal 5a1cd1720692 Fixing wrong gateway
Juan Manuel Caicedo Carvajal 46a4a1a3626b Fixing typo
Juan Manuel Caicedo Carvajal d771d54e0d4f Importing code
=============
vm-clonetools
=============

Scripts for cloning KVM guests.

Based on the work by Mikko Kortelainen, as he described it in his blog:

http://koo.fi/tech/2010/11/28/cloning-ubuntu-1004-server-kvm-guests-efficiently/


How to use it
=============


1. Prepare the guest template

Run `bin/cloneprep` on the template guest machine to change something.


2. Clone the template guest

sudo virt-clone --original=template1 --name=guest01 --file=/var/lib/libvirt/images/guest01.img

3. Start the guest

sudo virsh create /etc/libvirt/qemu/guest01.xml

4. Configure it

bin/cloneconf <hostname>