Create VM from Template: Clone disks to other storage domain

Latest response

Hi there!


I'm trying to provision a new VM from a template with disks and have the disks cloned to another storage domain.


In the add VM REST call, I'm populating VM.disks as outlined in example 13.7 in the API doc and add a StorageDomains element with the id of the storage group I would like the disks to be created in.


The call goes through fine, but the StorageDomains element seems to be ignored. The disks are cloned in the same storage domain that the template disks reside in.


Am I'm doing something wrong or is an inter-storage domain clone not supported?





Hi Ralf,


The cloning from template is currently limited to the storage domain, that the template resides on. You can always copy the template to the other domains.