1 <h2>Clone and edit a virtual machine</h2>
4 This script shows how you might have a library of premade
5 virtual machines ready for cloning, but as a final step you
6 use libguestfs or guestfish to customize some configuration
7 files inside the VM before it's ready to go.
11 In this simple recipe, we overwrite the <code>/etc/resolv.conf</code> file
12 with a new nameserver entry, and change <code>/etc/HOSTNAME</code>.
16 There are lots of possible improvements to this script, such as
17 using qcow snapshots so that cloned VMs share storage with their