Re: [ovirt-users] Upload img file to Storage Domain

2016-06-09 Thread Fernando Frediani

Thanks for that.
That worked.

I installed a temporary Linux distribution, downloded the .img file to 
its filesystem, made a dd to /dev/vdb and remove the temporary Linux 
distribution disk, then let the disk boot from the remaining disk. Far 
from ideal but at least worked.


Fernando

Em 08/06/2016 10:12, Barak Korren escreveu:

On 8 June 2016 at 15:58, Fernando Frediani  wrote:

Hi there,

I'm spending a fair amount of time to find out how (if possible) to upload a
.img image to a oVirt Storage Domain and be able to mount it in a VM as a
disk.

It is a OpenWRT image and there is no OVF from it, so it's a raw image which
I wanted to use as a disc. Tried both with engine-iso-uploader and
engine-image-uploader but they refure for diferent reasons.

Is that possible at all ?


Uploading of QCOW images from GUI will hopefully land in 4.0.

In the meantime you can work around it like this:
1. Create a VM and install centos/some other Linux on it
2. Create a new VM disk and attach to VM, not the disk device
3. Copy the image from the file to the disk device with virt-resize.
4. Detach the disk from the VM and build a new VM around it

Optionally:
1. Convert the VM from step #4 to a template
2. Re use the VM from step #1 to upload more images.

HTH,



___
Users mailing list
Users@ovirt.org
http://lists.ovirt.org/mailman/listinfo/users


Re: [ovirt-users] Upload img file to Storage Domain

2016-06-08 Thread Nir Soffer
On Wed, Jun 8, 2016 at 4:12 PM, Barak Korren  wrote:
> On 8 June 2016 at 15:58, Fernando Frediani  
> wrote:
>> Hi there,
>>
>> I'm spending a fair amount of time to find out how (if possible) to upload a
>> .img image to a oVirt Storage Domain and be able to mount it in a VM as a
>> disk.
>>
>> It is a OpenWRT image and there is no OVF from it, so it's a raw image which
>> I wanted to use as a disc. Tried both with engine-iso-uploader and
>> engine-image-uploader but they refure for diferent reasons.
>>
>> Is that possible at all ?
>>
>
> Uploading of QCOW images from GUI will hopefully land in 4.0.

I has landed, the last 4.0 build should support it in ovirt builds.

It may have a bug that you have to approve additional certificate
to get the upload working, this is fixed upstream.

Amit, can you confirm?

>
> In the meantime you can work around it like this:
> 1. Create a VM and install centos/some other Linux on it
> 2. Create a new VM disk and attach to VM, not the disk device
> 3. Copy the image from the file to the disk device with virt-resize.
> 4. Detach the disk from the VM and build a new VM around it
>
> Optionally:
> 1. Convert the VM from step #4 to a template
> 2. Re use the VM from step #1 to upload more images.
>
> HTH,
>
> --
> Barak Korren
> bkor...@redhat.com
> RHEV-CI Team
> ___
> Users mailing list
> Users@ovirt.org
> http://lists.ovirt.org/mailman/listinfo/users
___
Users mailing list
Users@ovirt.org
http://lists.ovirt.org/mailman/listinfo/users


Re: [ovirt-users] Upload img file to Storage Domain

2016-06-08 Thread Дмитрий Глушенок
Alternatively you can put the image manually to any location, reachable by qemu 
and use vmdisk hook to attach the image to VM at start.

--
Dmitry Glushenok
Jet Infosystems
http://www.jet.msk.su +7-495-411-7601 (ext. 1237)

> 8 июня 2016 г., в 15:58, Fernando Frediani  
> написал(а):
> 
> Hi there,
> 
> I'm spending a fair amount of time to find out how (if possible) to upload a 
> .img image to a oVirt Storage Domain and be able to mount it in a VM as a 
> disk.
> 
> It is a OpenWRT image and there is no OVF from it, so it's a raw image which 
> I wanted to use as a disc. Tried both with engine-iso-uploader and 
> engine-image-uploader but they refure for diferent reasons.
> 
> Is that possible at all ?
> 
> Fernando
> ___
> Users mailing list
> Users@ovirt.org
> http://lists.ovirt.org/mailman/listinfo/users

___
Users mailing list
Users@ovirt.org
http://lists.ovirt.org/mailman/listinfo/users


Re: [ovirt-users] Upload img file to Storage Domain

2016-06-08 Thread Barak Korren
On 8 June 2016 at 15:58, Fernando Frediani  wrote:
> Hi there,
>
> I'm spending a fair amount of time to find out how (if possible) to upload a
> .img image to a oVirt Storage Domain and be able to mount it in a VM as a
> disk.
>
> It is a OpenWRT image and there is no OVF from it, so it's a raw image which
> I wanted to use as a disc. Tried both with engine-iso-uploader and
> engine-image-uploader but they refure for diferent reasons.
>
> Is that possible at all ?
>

Uploading of QCOW images from GUI will hopefully land in 4.0.

In the meantime you can work around it like this:
1. Create a VM and install centos/some other Linux on it
2. Create a new VM disk and attach to VM, not the disk device
3. Copy the image from the file to the disk device with virt-resize.
4. Detach the disk from the VM and build a new VM around it

Optionally:
1. Convert the VM from step #4 to a template
2. Re use the VM from step #1 to upload more images.

HTH,

-- 
Barak Korren
bkor...@redhat.com
RHEV-CI Team
___
Users mailing list
Users@ovirt.org
http://lists.ovirt.org/mailman/listinfo/users


[ovirt-users] Upload img file to Storage Domain

2016-06-08 Thread Fernando Frediani

Hi there,

I'm spending a fair amount of time to find out how (if possible) to 
upload a .img image to a oVirt Storage Domain and be able to mount it in 
a VM as a disk.


It is a OpenWRT image and there is no OVF from it, so it's a raw image 
which I wanted to use as a disc. Tried both with engine-iso-uploader and 
engine-image-uploader but they refure for diferent reasons.


Is that possible at all ?

Fernando
___
Users mailing list
Users@ovirt.org
http://lists.ovirt.org/mailman/listinfo/users