recipes: Refresh guestfish recipes.
[libguestfs.git] / recipes / clone.html
1 <p>
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.
6 </p>
7
8 <p>
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>.
11 </p>
12
13 <p>
14 There are lots of possible improvements to this script, such as
15 using qcow2 snapshots so that cloned VMs share storage with their
16 "parent" preimages.
17 </p>
18
19 <p>
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>.
22 </p>