Most of them areoutdated, but provide historical design context.
They arenotuser documentation and should not be treated as such.
Documentation is available here.
Allow to simply and directly clone the VM.
- Name: Tomas Jelinek (TJelinek)
- Email: TJelinek@redhat.com
- Target Release: 3.6
- Status: done
Up until now there were the following ways to create a copy of a VM:
- Make a template, make a new VM from this template
- Make a snapshot and clone the snapshot
It would be useful to provide a way to clone a VM directly.
All the logic is implemented in the CloneVmCommand class. Since it is very similar to cloning a VM from a snapshot, the common logic between the CloneVmCommand and AddVmFromSnapshotComman has been extracted to the common AddVmAndCloneImageCommand base class.
As shown in the following picture a new action button called “Clone VM” has been added to webadmin/userportal virtual machines tab:
When clicked, a new window will be opened containing only the new name of the VM:
After clicking OK the clone of the VM will be made.
A new action has been created on the VM called “clone”. It takes only one parameter in the request body, the name. To clone a VM using the REST API send a POST request to: