Most of them are outdated, but provide historical design context.
They are not user documentation and should not be treated as such.
Documentation is available here.
Clone VM
Summary
Allow to simply and directly clone the VM.
Owner
- Name: Tomas Jelinek (TJelinek)
- Email: TJelinek@redhat.com
Current status
- Target Release: 3.6
- Status: done
Background
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.
Implementation
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.
Frontend
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.
REST API
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: