[Users] api question / create vm from template

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 |

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 <alex.tuxx@gmail.com> 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 |

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 <http://www.vcore.co> | www.vsearchcloud.com <http://www.vsearchcloud.com> |
_______________________________________________ Users mailing list Users@ovirt.org http://lists.ovirt.org/mailman/listinfo/users
-- Dafna Ron

This is a multi-part message in MIME format. --------------070504000801080606090302 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit 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 <http://www.vcore.co> | www.vsearchcloud.com <http://www.vsearchcloud.com> |
_______________________________________________ Users mailing list Users@ovirt.org http://lists.ovirt.org/mailman/listinfo/users
--------------070504000801080606090302 Content-Type: text/html; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit <html> <head> <meta content="text/html; charset=ISO-8859-1" http-equiv="Content-Type"> </head> <body bgcolor="#FFFFFF" text="#000000"> <font size="-1"><font face="Tahoma">and via the python api ? </font></font><br> <br> On 04/04/2013 12:41 PM, Dafna Ron wrote: <blockquote cite="mid:515D66E1.2080806@redhat.com" type="cite">Resource allocation tab will allow you to choose between thin provision and clone. <br> <br> <br> On 04/04/2013 01:03 PM, Alex Leonhardt wrote: <br> <blockquote type="cite">hi, <br> <br> 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 ? <br> <br> this is on ovirt 3.1 <br> <br> thanks <br> alex <br> <br> -- <br> | RHCE | Sen Sys Engineer / Platform Architect | <a class="moz-txt-link-abbreviated" href="http://www.vcore.co">www.vcore.co</a> <a class="moz-txt-link-rfc2396E" href="http://www.vcore.co"><http://www.vcore.co></a> | <a class="moz-txt-link-abbreviated" href="http://www.vsearchcloud.com">www.vsearchcloud.com</a> <a class="moz-txt-link-rfc2396E" href="http://www.vsearchcloud.com"><http://www.vsearchcloud.com></a> | <br> <br> <br> _______________________________________________ <br> Users mailing list <br> <a class="moz-txt-link-abbreviated" href="mailto:Users@ovirt.org">Users@ovirt.org</a> <br> <a class="moz-txt-link-freetext" href="http://lists.ovirt.org/mailman/listinfo/users">http://lists.ovirt.org/mailman/listinfo/users</a> <br> </blockquote> <br> <br> </blockquote> </body> </html> --------------070504000801080606090302--

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 <http://www.vcore.co> | www.vsearchcloud.com <http://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
participants (3)
-
Alex Leonhardt
-
Dafna Ron
-
Michael Pasternak