[ovirt-users] Re: Import ova Thin provisioned disk conversion to pre allocated disks fails

2022-03-15 Thread simon
I tried '2' but the disk is still Thin provisioned.
___
Users mailing list -- users@ovirt.org
To unsubscribe send an email to users-le...@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/UROKQHWNRFTL3USWDZBWB3RJ5F6YBORJ/


[ovirt-users] Re: Import ova Thin provisioned disk conversion to pre allocated disks fails

2022-03-13 Thread Arik Hadas
On Sat, Mar 12, 2022 at 9:06 AM Simon Scott  wrote:

> Hi Arik,
>
> I don’t see an option to select ‘allocation-policy=clone and specifying
> that the VM disk(s) should be preallocated’ when creating a VM from the
> template.
>

>From the API you need to specify clone=True as in [1] and the volume
type+format as in [2]
In the webadmin, it is part of the Resource Allocation tab (specifically
its 'Storage Allocation' section) in the add-vm dialog

[1]
https://github.com/oVirt/python-ovirt-engine-sdk4/blob/c5ea821acc80da12a30b68647dd76370b9f54e4e/examples/add_independet_vm.py#L56
[2]
https://github.com/oVirt/python-ovirt-engine-sdk4/blob/c5ea821acc80da12a30b68647dd76370b9f54e4e/examples/add_template.py#L73-L74


> Regard
>
> Simon
> ___
> Users mailing list -- users@ovirt.org
> To unsubscribe send an email to users-le...@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/PM2YIHRODYWHKS56YDQZVAZHZAYS7DAB/
>
___
Users mailing list -- users@ovirt.org
To unsubscribe send an email to users-le...@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/7WRZJ67J7EYLKIYT3PY7PQEJOTMKATUG/


[ovirt-users] Re: Import ova Thin provisioned disk conversion to pre allocated disks fails

2022-03-11 Thread Simon Scott
Hi Arik,

I don’t see an option to select ‘allocation-policy=clone and specifying that 
the VM disk(s) should be preallocated’ when creating a VM from the template.

Regard

Simon
___
Users mailing list -- users@ovirt.org
To unsubscribe send an email to users-le...@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/PM2YIHRODYWHKS56YDQZVAZHZAYS7DAB/


[ovirt-users] Re: Import ova Thin provisioned disk conversion to pre allocated disks fails

2022-03-11 Thread Arik Hadas
Another one might be to import the OVA as a template and then provision a
VM from that template with allocation-policy=clone and specifying that the
VM disk(s) should be preallocated

On Fri, Mar 11, 2022 at 7:56 AM Strahil Nikolov via Users 
wrote:

> One workaround that comes to my mind is to power up the VM, write a large
> file and delete it and run fstrim -av.
> Another approach is to create an additional LV inside the guest, use dd to
> fill it in and then blkdiscard and delete the LV .
>
> It will force the fisk to be fully allocated
>
> Best Regards,
> Strahil Nikolov
>
> Thanks Arik,
>
> Is there a fix that can be applied to current versions as 4.5 release and
> subsequent testing/approval is some way off/
>
> ___
> Users mailing list -- users@ovirt.org
> To unsubscribe send an email to users-le...@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/HXTHUA5QFBBCLMQPKM25ACANVVNL7XKC/
>
> ___
> Users mailing list -- users@ovirt.org
> To unsubscribe send an email to users-le...@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/4WUBMHETRW6O3PN3YNEFJAEW5SNCO3XX/
>
___
Users mailing list -- users@ovirt.org
To unsubscribe send an email to users-le...@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/7B5GX4XLLDSJG5FAOQCCRBPMI6UNNRWC/


[ovirt-users] Re: Import ova Thin provisioned disk conversion to pre allocated disks fails

2022-03-10 Thread Strahil Nikolov via Users
One workaround that comes to my mind is to power up the VM, write a large file 
and delete it and run fstrim -av.Another approach is to create an additional LV 
inside the guest, use dd to fill it in and then blkdiscard and delete the LV .
It will force the fisk to be fully allocated 
 
Best Regards,Strahil Nikolov
 
Thanks Arik,

Is there a fix that can be applied to current versions as 4.5 release and 
subsequent testing/approval is some way off/
___
Users mailing list -- users@ovirt.org
To unsubscribe send an email to users-le...@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/HXTHUA5QFBBCLMQPKM25ACANVVNL7XKC/
  
___
Users mailing list -- users@ovirt.org
To unsubscribe send an email to users-le...@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/4WUBMHETRW6O3PN3YNEFJAEW5SNCO3XX/


[ovirt-users] Re: Import ova Thin provisioned disk conversion to pre allocated disks fails

2022-03-10 Thread simon
Thanks Arik,

Is there a fix that can be applied to current versions as 4.5 release and 
subsequent testing/approval is some way off/
___
Users mailing list -- users@ovirt.org
To unsubscribe send an email to users-le...@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/HXTHUA5QFBBCLMQPKM25ACANVVNL7XKC/


[ovirt-users] Re: Import ova Thin provisioned disk conversion to pre allocated disks fails

2022-03-10 Thread Arik Hadas
On Thu, Mar 10, 2022 at 1:13 PM  wrote:

> Hi All,
>
> During the ova import process, preallocated disk policy is selected and
> the VM is imported successfully.
> Unfortunately the disks remain as Thin Provisioned - is this a known bug
> and is there a workaround?
>

This should be fixed in oVirt 4.5:
https://bugzilla.redhat.com/show_bug.cgi?id=1986726


>
> Kind Regards
>
> Simon...
> ___
> Users mailing list -- users@ovirt.org
> To unsubscribe send an email to users-le...@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/6ONULHQQQOTJKJLSY2E7MRPPPOSJT4DE/
>
___
Users mailing list -- users@ovirt.org
To unsubscribe send an email to users-le...@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/3EQMR2WPJTEUB6X53SMW3V33GH4FEYJT/