2 This script shows how you might have a library of premade
3 virtual machines ready for cloning, but as a final step you
4 use libguestfs or guestfish to customize some configuration
5 files inside the VM before it's ready to go.
9 In this simple recipe, we overwrite the <code>/etc/resolv.conf</code> file
10 with a new nameserver entry, and change <code>/etc/HOSTNAME</code>.
14 There are lots of possible improvements to this script, such as
15 using qcow2 snapshots so that cloned VMs share storage with their
20 For more information about cloning images using libvirt and libguestfs
21 see <a href="https://rwmj.wordpress.com/2010/09/24/tip-my-procedure-for-cloning-a-fedora-vm/#content">Richard Jones's procedure for cloning a Fedora VM</a>.