Added guestfish recipes.
[libguestfs.git] / recipes / clone.html
1 <h2>Clone and edit a virtual machine</h2>
2
3 <p>
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.
8 </p>
9
10 <p>
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>.
13 </p>
14
15 <p>
16 There are lots of possible improvements to this script, such as
17 using qcow snapshots so that cloned VMs share storage with their
18 "parent" preimages.
19 </p>