Re: [Users] api question / create vm from template

2013-04-09 Thread Michael Pasternak

Hi Alex,

On 04/04/2013 10:40 PM, Alex Leonhardt wrote:
> and via the python api ?

- to clone vm from template in python sdk do:

vm_params_holder = params.VM(disks=params.Disks(clone=True), ...)
api.vms.add(vm_params_holder)

- to create vm with pre-allocated disk/s, you can modify disk/s config
during creation of vm by:

template = api.templates.get(name="xxx")
template_disks = template.disks.list()

for disk in template_disks:
#modify disk config here

vm_params_holder = params.VM(disks=params.Disks(disk=template_disks))
api.vms.add(vm_params_holder)

> 
> On 04/04/2013 12:41 PM, Dafna Ron wrote:
>> Resource allocation tab will allow you to choose between thin provision and 
>> clone.
>>
>>
>> On 04/04/2013 01:03 PM, Alex Leonhardt wrote:
>>> hi,
>>>
>>> i've been successful in creating a VM from a template, however, that VM is 
>>> a thin-provisioned one ? is it possible to make it a cloned / 
>>> pre-provisioned ? otherwise i
>>> wont be able to update/remove the template when i need to ?
>>>
>>> this is on ovirt 3.1
>>>
>>> thanks
>>> alex
>>>
>>> -- 
>>> | RHCE | Sen Sys Engineer / Platform Architect | www.vcore.co 
>>>  | www.vsearchcloud.com  |
>>>
>>>
>>> ___
>>> 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


-- 

Michael Pasternak
RedHat, ENG-Virtualization R&D
___
Users mailing list
Users@ovirt.org
http://lists.ovirt.org/mailman/listinfo/users


Re: [Users] api question / create vm from template

2013-04-04 Thread Alex Leonhardt

and via the python api ?

On 04/04/2013 12:41 PM, Dafna Ron wrote:
Resource allocation tab will allow you to choose between thin 
provision and clone.



On 04/04/2013 01:03 PM, Alex Leonhardt wrote:

hi,

i've been successful in creating a VM from a template, however, that 
VM is a thin-provisioned one ? is it possible to make it a cloned / 
pre-provisioned ? otherwise i wont be able to update/remove the 
template when i need to ?


this is on ovirt 3.1

thanks
alex

--
| RHCE | Sen Sys Engineer / Platform Architect | www.vcore.co 
 | www.vsearchcloud.com 
 |



___
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: [Users] api question / create vm from template

2013-04-04 Thread Dafna Ron
Resource allocation tab will allow you to choose between thin provision 
and clone.



On 04/04/2013 01:03 PM, Alex Leonhardt wrote:

hi,

i've been successful in creating a VM from a template, however, that 
VM is a thin-provisioned one ? is it possible to make it a cloned / 
pre-provisioned ? otherwise i wont be able to update/remove the 
template when i need to ?


this is on ovirt 3.1

thanks
alex

--
| RHCE | Sen Sys Engineer / Platform Architect | www.vcore.co 
 | www.vsearchcloud.com 
 |



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



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


Re: [Users] api question / create vm from template

2013-04-04 Thread Alex Leonhardt
oh, and it'd be good if one can set the storage domain to use, what virtual
nic the network card is to be assigned, etc. ?


On 4 April 2013 11:03, Alex Leonhardt  wrote:

> hi,
>
> i've been successful in creating a VM from a template, however, that VM is
> a thin-provisioned one ? is it possible to make it a cloned /
> pre-provisioned ? otherwise i wont be able to update/remove the template
> when i need to ?
>
> this is on ovirt 3.1
>
> thanks
> alex
>
> --
> | RHCE | Sen Sys Engineer / Platform Architect | www.vcore.co |
> www.vsearchcloud.com |
>



-- 
| RHCE | Sen Sys Engineer / Platform Architect | www.vcore.co |
www.vsearchcloud.com |
___
Users mailing list
Users@ovirt.org
http://lists.ovirt.org/mailman/listinfo/users


[Users] api question / create vm from template

2013-04-04 Thread Alex Leonhardt
hi,

i've been successful in creating a VM from a template, however, that VM is
a thin-provisioned one ? is it possible to make it a cloned /
pre-provisioned ? otherwise i wont be able to update/remove the template
when i need to ?

this is on ovirt 3.1

thanks
alex

-- 
| RHCE | Sen Sys Engineer / Platform Architect | www.vcore.co |
www.vsearchcloud.com |
___
Users mailing list
Users@ovirt.org
http://lists.ovirt.org/mailman/listinfo/users