[Users] Fwd: API usage - 3.1

Michael Pasternak mpastern at redhat.com
Sun Jan 13 08:33:23 UTC 2013


Hi Tom,

> -------- Original Message --------
> Subject: [Users] API usage - 3.1
> Date: Fri, 11 Jan 2013 16:27:03 +0000
> From: Tom Brown <tom at ng23.net>
> To: users <users at ovirt.org>
> 
> Trying to get going adding VM's via the API and so far have managed to get quite far - I am however facing this
> 
> vm_template = """<vm>
> <name>%s</name>
> <cluster>
>   <name>Default</name>
> </cluster>
> <template>
>   <name>Blank</name>
> </template>
> <vm_type>server</vm_type>
> <memory>536870912</memory>
> <os>
>   <boot dev="hd"/>
> </os>
> </vm>"""
> 
> The VM is created but the type ends up being a desktop and not a server -
> 
> What did i do wrong?

the name of the element is <type> (not <vm_type>).

> 
> thanks
> _______________________________________________
> Users mailing list
> Users at ovirt.org
> http://lists.ovirt.org/mailman/listinfo/users
> 
> 


-- 

Michael Pasternak
RedHat, ENG-Virtualization R&D



More information about the Users mailing list