Bug 1049604

Summary: [RFE] Allow uploading a pre-existing VM image (OVA) into the environment
Product: [oVirt] ovirt-engine Reporter: Blaster <blaster>
Component: RFEsAssignee: Arik <ahadas>
Status: CLOSED CURRENTRELEASE QA Contact: Nisim Simsolo <nsimsolo>
Severity: medium Docs Contact:
Priority: medium    
Version: futureCC: ahadas, amureini, blaster, bugs, bugzilla, gchakkar, herrold, inetkach, jiri.slezka, jspahr, mavital, michal.skrivanek, mtessun, nsimsolo, obockows, pdwyer, rbalakri, rhodain, rjones, sbonazzo, s.kieske, srevivo, vali.dragnuta, ylavi
Target Milestone: ovirt-4.2.1Keywords: FutureFeature, Reopened
Target Release: ---Flags: rule-engine: ovirt-4.2+
nsimsolo: testing_plan_complete+
mtessun: planning_ack+
michal.skrivanek: devel_ack+
mavital: testing_ack+
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: Enhancement
Doc Text:
Feature: Enable uploading an OVA into an oVirt data center. Reason: Simplify the process of importing a virtual machine that was created out of the data center. Result: It is now possible to import an OVA that is accessible to at least of the hosts in the data center into a virtual machine in oVirt.
Story Points: ---
Clone Of:
: 1319758 (view as bug list) Environment:
Last Closed: 2018-04-05 09:50:47 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: Virt RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:
Bug Depends On: 1091377, 1317253, 1342322, 1529248, 1531062, 1534644, 1535521, 1535570, 1535581, 1537429, 1540605, 1540877    
Bug Blocks: 1319758, 1381223    

Description Blaster 2014-01-07 20:32:01 UTC
Description of problem:
oVirt does not have a very friendly way to quickly add an existing VM disk image into it's inventory.

For example, if you have an exiting VM disk image, ie, a vmdk that you have converted to raw, you should just be able to create a new VM, and then just add the VM image file to the disk inventory of the new VM without have to first copy it to an NFS share, then import it. (make 2 more copies of the same data)

In ESXi, there is called "add to inventory" where you can take an existing VM image file and create a VM with just a few mouse clicks and providing typical OS information.

Version-Release number of selected component (if applicable):


How reproducible:


Steps to Reproduce:
1.
2.
3.

Actual results:


Expected results:


Additional info:

Comment 1 Itamar Heim 2014-01-10 20:54:19 UTC
while doesn't solve all use cases, if you can inject it to an nfs storage domain in the right format, you can 'register' the disk (not the vm) to the engine.

Comment 2 Itamar Heim 2015-03-22 15:47:10 UTC
Closing old bugs. If this issue is still relevant/important in current version, please re-open the bug.

Comment 3 Sven Kieske 2015-03-23 13:37:59 UTC
I'd like to reopen this as this is a relevant issue for most users ("attaching
a whole esxi server" or "adding a disk onto nfs in the right format" are _not_ user friendly at all).

I'm not aware that anything changed in recent released versions or master.

kind regards

Sven

Comment 4 Allon Mureinik 2015-03-24 06:30:24 UTC
We're tracking this functional requirement under bug 1091377. 
(Also, see the corresponding RHEV bug 1122970 which is a bit more fleshed out, and also addresses details regarding images vs. ISOs)

*** This bug has been marked as a duplicate of bug 1091377 ***

Comment 5 Richard W.M. Jones 2015-03-24 09:04:42 UTC
Seems that bug 1091377 is about adding ISOs, but there's an
obvious demand for uploading virtual machines.  People are using
the old virt-v2v for this.  In the new virt-v2v I (quite
deliberately) removed the ability to use it as an upload tool
for working around missing functionality in oVirt.

Comment 6 Sven Kieske 2015-03-24 15:12:31 UTC
I also can not see how this is a dup of bz #1091377

as Richard already mentioned:

This is about whole vms uploads, containing disks and config files.

Like: "Import me this vmware vm", "virtualbox", "kvm(virt-manager)" etc.

Maybe this could be split into sub-bugs for the different targets.

Comment 7 Richard W.M. Jones 2015-03-24 15:15:09 UTC
(In reply to Sven Kieske from comment #6)
> I also can not see how this is a dup of bz #1091377
> 
> as Richard already mentioned:
> 
> This is about whole vms uploads, containing disks and config files.
> 
> Like: "Import me this vmware vm", "virtualbox", "kvm(virt-manager)" etc.

Well yes and no.

If you want to import VMware, then use virt-v2v.

There is no way to import VirtualBox VMs.

If you want to import a KVM (virt-manager) VM then there is
missing functionality in oVirt, and I don't believe that
bug 1091377 covers that missing functionality.

Comment 8 Greg Padgett 2015-03-24 17:05:01 UTC
(In reply to Richard W.M. Jones from comment #7)
> (In reply to Sven Kieske from comment #6)
> > I also can not see how this is a dup of bz #1091377
> > 
> > as Richard already mentioned:
> > 
> > This is about whole vms uploads, containing disks and config files.
> > 
> > Like: "Import me this vmware vm", "virtualbox", "kvm(virt-manager)" etc.
> 
> Well yes and no.
> 
> If you want to import VMware, then use virt-v2v.
> 
> There is no way to import VirtualBox VMs.
> 
> If you want to import a KVM (virt-manager) VM then there is
> missing functionality in oVirt, and I don't believe that
> bug 1091377 covers that missing functionality.

The discussion here has uncovered some nuances not explicitly covered in the bug 1091377 and bug 1122970.  We'd like to explore vm upload (ova, vmdk, etc) in the later phases of the project encompassing bug 1091377, so in light of all that: let's leave this open as a dependent bug and revisit it once we have the iso/image functionality in oVirt.

Comment 9 Vali Dragnuta 2015-04-16 12:12:51 UTC
While I am just a humble user of the community version of the software modules involved (yeah, that's a fancy way to say non-paying user :D) please allow me chime in and support the idea that there should be a simpler and more elegant way to import pre-existing virtual images into ovirt without shovelling it through the configuration backdoor. 
ESX&friends have a big advantage at this.
The simplest usage scenario for this would be migrating from simpler setups with libvirt+kvm to ovirt. When you have images of hundreds of GB running various conversion tools on those images is PITA, especially if the image is already just a raw sparse file that needs no conversion. You need to be able to define some virtual machine and say to it "ok, just mount (use) these images i provide and that already exist on the NFS  repository, don't alter them, dont convert them, just register them as part of virtual machine X"
Having another feature to create a virtual machine based on a libvirt definition xml would be nice, but that would not be as useful as registering just the disk image. That is because defining a virtual machine with the same parameters (memory,cpu...) exactly like the one I am migrating takes 5 minutes, while converting/importing the whole shebang that includes the vm image conversion can take way way longer (and also probably way more disk space).

Comment 10 Sandro Bonazzola 2015-09-04 09:00:04 UTC
This is an automated message.
This Bugzilla report has been opened on a version which is not maintained anymore.
Please check if this bug is still relevant in oVirt 3.5.4.
If it's not relevant anymore, please close it (you may use EOL or CURRENT RELEASE resolution)
If it's an RFE please update the version to 4.0 if still relevant.

Comment 11 Sandro Bonazzola 2015-10-02 11:03:54 UTC
This is an automated message.
This Bugzilla report has been opened on a version which is not maintained
anymore.
Please check if this bug is still relevant in oVirt 3.5.4 and reopen if still
an issue.

Comment 12 Richard W.M. Jones 2015-10-02 11:07:28 UTC
Opening again.  Please modify your script so it doesn't close
RFE bugs.

Comment 13 Richard W.M. Jones 2015-10-02 11:08:44 UTC
I wrote a smallish script to do this:

http://git.annexia.org/?p=import-to-ovirt.git;a=summary

It's not a replacement for having this feature added to oVirt,
but can be used as a workaround.

This script is not supported by Red Hat.

Comment 14 Andrew Wippler 2015-10-27 17:01:43 UTC
(In reply to Richard W.M. Jones from comment #13)
> I wrote a smallish script to do this:
> 
> http://git.annexia.org/?p=import-to-ovirt.git;a=summary
> 
> It's not a replacement for having this feature added to oVirt,
> but can be used as a workaround.
> 
> This script is not supported by Red Hat.

Wonderful! I was able to import a Ubuntu-based .ova (graylog) into oVirt using this tool. I followed steps C and D at http://www.ovirt.org/Vm_migration_from_vmware to get the ova into kvm compatible mode. This tool worked like a charm to move the qcow2 into the esd.

I was figuring that I would have to write an .ovf by hand or manually migrate my services to servers in oVirt. You have saved me at least 200 hours worth of work!!!

Comment 15 Michal Skrivanek 2015-10-30 13:07:27 UTC
*** Bug 1263787 has been marked as a duplicate of this bug. ***

Comment 24 Martin Tessun 2017-06-21 11:08:03 UTC

*** This bug has been marked as a duplicate of bug 1319758 ***

Comment 25 Yaniv Lavi 2017-06-21 13:49:59 UTC
This is upload the other is download. Why did you close as dup?

Comment 26 Martin Tessun 2017-06-23 08:44:20 UTC
Mea culpa. Did not realize this small difference.

Comment 27 Yaniv Kaul 2017-11-16 11:11:24 UTC
Can the bug move to MODIFIED?

Comment 28 Arik 2017-11-16 15:11:39 UTC
(In reply to Yaniv Kaul from comment #27)
> Can the bug move to MODIFIED?

Unfortunately, not yet. There is a good progress but the basics are not in yet.

Comment 29 Yaniv Kaul 2017-12-04 13:59:46 UTC
(In reply to Arik from comment #28)
> (In reply to Yaniv Kaul from comment #27)
> > Can the bug move to MODIFIED?
> 
> Unfortunately, not yet. There is a good progress but the basics are not in
> yet.

I assume it should be moved to 4.2.1?

Comment 30 Arik 2017-12-04 18:37:36 UTC
(In reply to Yaniv Kaul from comment #29)
> I assume it should be moved to 4.2.1?

Yes

Comment 31 Nisim Simsolo 2018-04-03 14:00:08 UTC
Verification builds:
rhvm-4.2.2.6-0.1.el7
libvirt-client-3.9.0-14.el7_5.2.x86_64
qemu-kvm-rhev-2.10.0-21.el7_5.1.x86_64
sanlock-3.6.0-1.el7.x86_64
vdsm-4.20.23-1.el7ev.x86_64
virt-v2v-1.36.10-6.el7.x86_64

Polarion test plan added to external trackers

Comment 32 Sandro Bonazzola 2018-04-05 09:50:47 UTC
This bugzilla is included in oVirt 4.2.1 release, published on Feb 12th 2018.

Since the problem described in this bug report should be
resolved in oVirt 4.2.1 release, it has been closed with a resolution of CURRENT RELEASE.

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