[one-users] qcow2 image import

Javier Fontan jfontan at opennebula.org
Wed Apr 30 03:34:50 PDT 2014


The size used to check if the datastore has enough space is the
maximum size the image can be, not the actual file size. You can get
the max image size using:

qemu-img info /opt/gentoo-template.qcow2

Maybe this size is > 47.2 Gb

On Wed, Apr 30, 2014 at 9:51 AM, Thomas Stein <himbeere at meine-oma.de> wrote:
> Am 30.04.14 09:23, schrieb Thomas Stein:
>> Am 29.04.14 16:45, schrieb Thomas Stein:
>>> Am 29.04.14 16:13, schrieb Thomas Stein:
>>>> Hello.
>>>>
>>>> I'm using opennebula 4.6 and like to import a few qcow2 images. Is this
>>>> tutorial still correct?
>>>>
>>>> https://support.opennebula.pro/entries/348847-using-qcow-images
>>
>> This is what i get on commandline:
>>
>> oneadmin at opennebula-frontend:~$ oneimage create -d default --name gentoo
>> --path /opt/gentoo-template.qcow2 --type OS --driver qcow2 --description
>> "gentoo"
>>
>> Not enough space in datastore
>
> Created a new datastore with 100G space and now it worked. Strange.
> Someone has an explanation for this? I mean there is 25G free on both
> other datastores.
>
> cheers
> t.
>
>> oneadmin at opennebula-frontend:~$
>>
>> oneadmin at opennebula-frontend:~$ onedatastore list
>>   ID NAME                SIZE AVAIL CLUSTER      IMAGES TYPE DS       TM
>>
>>    1 default            47.2G 53%   -                 1 img  fs       ssh
>>    2 files              47.2G 53%   -                 0 fil  fs       ssh
>>  129 system                 - -     fluffy            0 sys  -        ssh
>> oneadmin at opennebula-frontend:~$
>>
>> Any ideas? Should i create another datastore?
>>
>> cheers
>> t.
>>
>>
>>> Another Problem. While trying to import a qcow2 image i get:
>>>
>>> Req:7216 UID:0 ImageAllocate result FAILURE Not enough space in datastore
>>>
>>> But i have enough space i think.
>>>
>>> oneadmin at opennebula-frontend:~$ onedatastore list
>>>   ID NAME                SIZE AVAIL CLUSTER      IMAGES TYPE DS       TM
>>>
>>>    1 default            47.2G 53%   -                 1 img  fs       ssh
>>>    2 files              47.2G 53%   -                 0 fil  fs       ssh
>>>  128 system_ds              - -     fluffy            0 sys  -        ssh
>>> oneadmin at opennebula-frontend:~$
>>>
>>> Any ideas? Is the missing "fs" on ID 128 a problem?
>>>
>>> best regards
>>> thomas
>>>
>>>> best regards
>>>> thomas
>>>> _______________________________________________
>>>> Users mailing list
>>>> Users at lists.opennebula.org
>>>> http://lists.opennebula.org/listinfo.cgi/users-opennebula.org
>>>>
>>>
>>> _______________________________________________
>>> Users mailing list
>>> Users at lists.opennebula.org
>>> http://lists.opennebula.org/listinfo.cgi/users-opennebula.org
>>>
>>
>> _______________________________________________
>> Users mailing list
>> Users at lists.opennebula.org
>> http://lists.opennebula.org/listinfo.cgi/users-opennebula.org
>>
>
> _______________________________________________
> Users mailing list
> Users at lists.opennebula.org
> http://lists.opennebula.org/listinfo.cgi/users-opennebula.org



-- 
Javier Fontán Muiños
Developer
OpenNebula - The Open Source Toolkit for Data Center Virtualization
www.OpenNebula.org | @OpenNebula | github.com/jfontan



More information about the Users mailing list