Bug 723211

Summary: PRD35 - [RFE] clone vm - support copy/duplicate virtual machines (without having to create a template)
Product: Red Hat Enterprise Virtualization Manager Reporter: Chris Williams <cww>
Component: RFEsAssignee: Tomas Jelinek <tjelinek>
Status: CLOSED ERRATA QA Contact: meital avital <mavital>
Severity: medium Docs Contact:
Priority: high    
Version: 2.2.0CC: cww, ejacobs, iheim, juwu, lpeer, mavital, michal.skrivanek, nsimsolo, pnovotny, rbalakri, sherold, yeylon, ylavi
Target Milestone: ---Keywords: FutureFeature, Triaged
Target Release: 3.5.0Flags: sherold: Triaged+
Hardware: All   
OS: Linux   
Whiteboard: virt
Fixed In Version: ovirt-3.5.0-alpha1 Doc Type: Release Note
Doc Text:
With this feature, users can now clone a virtual machine directly from an existing virtual machine without the need to create a template first making the process more time and resource efficient.
Story Points: ---
Clone Of: Environment:
Last Closed: 2015-02-11 17:49:34 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:
Bug Depends On: 1058832    
Bug Blocks: 1142923, 1156165    

Comment 2 Einav Cohen 2011-08-16 14:38:12 UTC
*** Bug 731035 has been marked as a duplicate of this bug. ***

Comment 3 Itamar Heim 2012-06-17 17:29:44 UTC
note: 3.1 has 'clone vm from snapshot' which solves some of this use case.

Comment 4 Haim 2013-01-08 20:23:01 UTC
(In reply to comment #3)
> note: 3.1 has 'clone vm from snapshot' which solves some of this use case.

Itamar, why some and not all? i.e. why isn't this closed currentrelease?

Comment 5 Itamar Heim 2013-01-08 20:38:42 UTC
(In reply to comment #4)
> (In reply to comment #3)
> > note: 3.1 has 'clone vm from snapshot' which solves some of this use case.
> 
> Itamar, why some and not all? i.e. why isn't this closed currentrelease?

because it forces user to create a snapshot.
i want to stand on a VM and either:
1. clone it while it is down
2. have the system create the snapshot and delete it later.
personally i'm fine with providing #1 in this RFE (cold clone), and relying on something like storage based snapshots for #2 when they are available.

Comment 7 Itamar Heim 2013-09-22 06:20:38 UTC
is cold clone enough here, or live clone needed as well?
I suggest we separate the two, as the former is easier.

Comment 8 Erik M Jacobs 2013-09-23 17:50:30 UTC
If you mean "cold" in that you would have to shut down the VM in order to one-click clone, then, no, "cold" is not enough.  The ideal situation is to take any VM, regardless of state (running, stopped, template, etc) and be able to right-click and create a new instance of whatever it is.

Cold clone is definitely a step forward from where we are today, but it's not "enough".

Comment 9 Michal Skrivanek 2014-01-07 13:56:38 UTC
we'll try to see how complicated is it through snapshots which would work both for off and running VMs

Comment 10 Nisim Simsolo 2014-10-29 12:31:44 UTC
Verified using vt7:
rhevm-3.5.sanlock-2.8-1.el6.x86_64
libvirt-0.10.2-46.el6_6.1.x86_64
qemu-kvm-rhev-0.12.1.2-2.448.el6.x86_64
vdsm-4.16.7.1-1.el6ev.x86_64
0-0.17.beta.el6ev.noarch

Aslo bug 1128150 is related to this PRD.

Comment 11 Yaniv Lavi 2015-01-19 14:52:32 UTC
Posting original request:
2) What is the nature and description of the request?

The user would like to be able to duplicate virtual machines directly for staging and other tests without having to create a template. 

3) Why is it needed? 

This is both for convenience and performance issues. The time and storage required is more than should be necessary for making a single duplicate of a vm.

4) Functional requirements:

Select a vm, and either click a "clone" button or have a "clone" option in the context menu

Comment 15 errata-xmlrpc 2015-02-11 17:49:34 UTC
Since the problem described in this bug report should be
resolved in a recent advisory, it has been closed with a
resolution of ERRATA.

For information on the advisory, and where to find the updated
files, follow the link below.

If the solution does not work for you, open a new bug report.

https://rhn.redhat.com/errata/RHSA-2015-0158.html