There's a simple method really. You need to create a preallocated disk of the similar size (maybe a little bit larger to be safe) and note it's UUID. 

Then copy the qcow2 image to a host that has access to the storage domain

enable the LV for thie new disk using lvchange -ay /dev/mapper/vg-uuid (look it up in the output of lvs -o +tags)

run qemu-img convert from qcow2 to raw/qcow2 (whatever you set the disk up to be in ovirt) using the qcow2 file as source and the LV as destination.

Now you should be able to use the disk in a VM or a template.


PS Exxonmobil on oVirt, that's a major wow :)


On Tue, Apr 7, 2020 at 1:54 PM Green, Jacob Allen /C <jacob.a.green@exxonmobil.com> wrote:

I am trying to upload an image.qcow2 from a previous kvm installation to a block iscsi storage domain if possible, if I have to first stand up and NFS storage domain I could do that as well and move the disk once its uploaded, I just cannot get it uploaded.

 

I know there is a method for importing from a KVM provider via the following link https://access.redhat.com/documentation/en-us/red_hat_virtualization/4.1/html/administration_guide/sect-adding_external_providers#Adding_KVM_as_an_External_Provider However all I have is the disk image, the KVM environment it was running in is no longer operational. So I am looking for a simple command line method to upload the image, similar to how one could use the ovirt-iso-uploader to upload an image to an iso domain.

 

Jacob Green

Container Platform Engineer

EMIT | APPS | Modern Apps & Platforms

ExxonMobil Information Technology

1735 Hughes Landing Blvd, The Woodlands, TX 77381 | TEL:+1-832-624-4348

 

From: Dan Yasny [mailto:dyasny@gmail.com]
Sent: Tuesday, April 7, 2020 12:40 PM
To: Green, Jacob Allen /C <jacob.a.green@exxonmobil.com>
Cc: users <users@ovirt.org>
Subject: Re: [ovirt-users] Cannot upload image

 

External Email - Think Before You Click

 

Is that block or file storage?

 

On Tue, Apr 7, 2020 at 1:38 PM Green, Jacob Allen /C <jacob.a.green@exxonmobil.com> wrote:

_______________________________________________
Users mailing list -- users@ovirt.org
To unsubscribe send an email to users-leave@ovirt.org
Privacy Statement: https://www.ovirt.org/privacy-policy.html
oVirt Code of Conduct: https://www.ovirt.org/community/about/community-guidelines/
List Archives: https://lists.ovirt.org/archives/list/users@ovirt.org/message/ISFITA35DE6BCCA4YWOT34ZS65SZ2SVP/