Hi Jerry,
I think this is because of the way a VM is tied to its root disk, and how a root disk is chained
to its template.
VMs created from ISO do not have such a chain.
Technically, it shouldn't be an issue to swap out the root disk entirely, though...
Regards,
Gregor
________________________________
From: li jerry <div8cn@hotmail.com>
Sent: 10 December 2019 10:43
To: dev@cloudstack.apache.org <dev@cloudstack.apache.org>; users@cloudstack.apache.org
<users@cloudstack.apache.org>
Subject: VM from ISO cannot execute restoreVirtualMachine
Hello All
When I analyzed the restoreVirtualMachine API, I found that If the VM is from ISO, newTemplate
can only be ISO when executing restoreVirtualMachine.
Why do we have such a design?
>From our application scenarios (I think most of them are the same), the VM created by
the user through ISO may need to be reinstalled through template later.
-Jerry
|