|
|
IntroductionIf you're using a ZFS volume as the root disk for a domain, you can make use of the snapshotting facilities to quickly "clone" another domain with the same configuration. By taking a clone of the root disk, you can very quickly provision similar domains, and even better, the nature of the clone means the only extra storage used is that of the differences between the domains. We're working on ways of automating this procedure, but for now these are the steps you'll need to take. Step-by-stepFirst, we need to shutdown the domain we're cloning so we can take a consistent snapshot of the disk:
Alternatively, you might want to do a Now we take a snapshot of the root disk used by 'domain1', and then a clone (writable snapshot) :
If you now do a
You will need to make at least three changes. First, you will want a new name for your domain, so edit this line:
with the new name:
Second, you must remove the UUID line so
Finally we have to point to the new disk by editing the following line:
to be:
Finally, tell virsh about the new domain:
Now you can boot your cloned domain! |