[ovirt-users] Upload img file to Storage Domain

Fernando Frediani fernando.frediani at upx.com.br
Thu Jun 9 12:33:40 UTC 2016


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 <fernando.frediani at upx.com.br> 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,
>




More information about the Users mailing list