To clone a VM, try the following command:
This is a work in progress! It's not finished yet and there are bugs! I'm only
sending it now to get early feedback.
I'm aware of the following issues:
- BUG: cannot delete a recently cloned VM. This is because the clone function
doesn't refresh the VM storage pools. I already started fixing this.
- The storage volumes handling is not implemented. The current implementation
should only work for DIR and NFS (well, it doesn't work completely because of
the bug described above...).
- The mockmodel implementation is missing.
- The tests are missing.
Crístian Viana (5):
Make function "randomMAC" public
Register Kimchi's namespace when updating XML
Allow to update XML attribute in "xml_item_update"
Render different types of data in generate_action_handler
Add feature to clone VMs
docs/API.md | 5 ++
src/kimchi/control/base.py | 37 ++++++++++----
src/kimchi/control/host.py | 18 ++-----
src/kimchi/control/vms.py | 1 +
src/kimchi/i18n.py | 1 +
src/kimchi/model/vmifaces.py | 18 +++----
src/kimchi/model/vms.py | 116 ++++++++++++++++++++++++++++++++++++++++++-
src/kimchi/xmlutils.py | 15 ++++--
8 files changed, 172 insertions(+), 39 deletions(-)