Files
libguestfs/recipes/clone.html
Richard W.M. Jones 5c02176d3e recipes: Refresh guestfish recipes.
(cherry picked from commit 49b2ae2e69)
2011-01-10 09:38:27 +00:00

23 lines
783 B
HTML

<p>
This script shows how you might have a library of premade
virtual machines ready for cloning, but as a final step you
use libguestfs or guestfish to customize some configuration
files inside the VM before it's ready to go.
</p>
<p>
In this simple recipe, we overwrite the <code>/etc/resolv.conf</code> file
with a new nameserver entry, and change <code>/etc/HOSTNAME</code>.
</p>
<p>
There are lots of possible improvements to this script, such as
using qcow2 snapshots so that cloned VMs share storage with their
"parent" preimages.
</p>
<p>
For more information about cloning images using libvirt and libguestfs
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>.
</p>