qemu-block
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Qemu-block] [ovirt-users] Re: Unable to upload images


From: Nir Soffer
Subject: Re: [Qemu-block] [ovirt-users] Re: Unable to upload images
Date: Wed, 20 Feb 2019 01:21:14 +0200

On Wed, Feb 20, 2019 at 1:01 AM <address@hidden> wrote:
qemu-img info:
LM-7.2.45.0.17004.RELEASE-Linux-KVM-XEN.disk
image: LoadMaster-VLM-7.2.45.0.17004.RELEASE-Linux-KVM-XEN.disk
file format: raw
virtual size: 16G (17179869696 bytes)
disk size: 16G

This is raw image, so it may work, but

ls -l:
-rwxrwxrwx 1 michael michael 17179869185 Jan  7 16:43 LoadMaster-VLM-7.2.45.0.17004.RELEASE-Linux-KVM-XEN.disk

The image size is invalid. raw image size must be aligned to 512 bytes, this is why
we block such images in the UI.

Is it possible that the image was truncated?

According to qemu-img info, the size is 17179869696. qemu-img lie about the size by rounding
up to the next multiple of 512.

I think this will fix your image:

    truncate -s 17179869696 LoadMaster-VLM-7.2.45.0.17004.RELEASE-Linux-KVM-XEN.disk

After that uploading the image should work.

Downloading the image again and verifying the image checksum with the vendor is probably
a good idea if you are not sure about the contents of this image. 

Nir

reply via email to

[Prev in Thread] Current Thread [Next in Thread]