CA-237939: Cannot create VM from Checkpoint other than the resident host in pool

Use VM.clone (and not VM.copy) when creating a VM from a snapshot.

Signed-off-by: Mihaela Stoica <mihaela.stoica@citrix.com>
This commit is contained in:
Mihaela Stoica 2017-03-23 12:40:26 +00:00
parent 07c0ad25cf
commit 83dbaf6b5e

View File

@ -320,7 +320,7 @@ namespace XenAdmin.Wizards.NewVMWizard
{
get
{
if (!Template.DefaultTemplate && !CloneCheckBox.Checked)
if (!Template.DefaultTemplate && !Template.is_a_snapshot && !CloneCheckBox.Checked)
{
// if target disks are all on the same SR then use that SR
// otherwise iterate through disks and find first target disks that is on same SR as source disk