[Engine-devel] Disk Cloning When Creating a VM via a Template

Ayal Baron abaron at redhat.com
Sun Apr 29 10:24:34 UTC 2012



----- Original Message -----
> On 26/04/12 22:24, Schoenbrun, Dustin wrote:
> > I know that floating disks are coming in the next version of oVirt,
> > but
> > in the interim I want to know internally what the procedure is when
> > a
> > disk is cloned when creating a VM from a template.

I'm not sure what floating disks have to do with it (it would be relevant for cloning a single disk, not cloning an entire VM).
For cloning a single disk I believe that floating disk is already available in master by the way.

> > 
> 
> Hi,
> 
> Today when creating a VM from template the user can choose the
> provisioning method:
> - It can be 'Thin' in which the engine is taking a snapshot of the
> template disks (running AddVMCommand which executes
> CreateSnapshotFromTemplateCommand)
> - Or 'Clone' which results in cloning the template disks (executes
> AddVmFromTemplateCommand which in turn executes
> CreateCloneOfTemplateCommand)

For createCloneOfTemplateCommand, other than the VM configuration being copied, the engine creates copies of all of the template images (calls moveImage in vdsm per Image).


> 
> 
> Thanks, Livnat
> _______________________________________________
> Engine-devel mailing list
> Engine-devel at ovirt.org
> http://lists.ovirt.org/mailman/listinfo/engine-devel
> 



More information about the Devel mailing list