[Users] API usage - 3.1

Tom Brown tom at ng23.net
Tue Jan 15 15:43:42 UTC 2013


>> 
> 
> thankyou - i am however finding it hard to attach an iso image to a VM - I have the console etc sorted however what would be required to do the same with an iso image?
> 
> The below is working apart from the iso
> 
> thanks
> 
> vm_template = """<vm>
> <name>%s</name>
> <cluster>
>   <name>Default</name>
> </cluster>
> <template>
>   <name>Blank</name>
> </template>
> <type>server</type>
> <memory>536870912</memory>
> <display>
>   <type>vnc</type>
> </display>
> <os>
>   <boot dev="hd"/>
>   <boot dev="cdrom"/>
> </os>
> <cdrom>
>   <cdrom id="cobbler-base.iso"/>
> </cdrom>
> </vm>"""
> 

i have also tried 

<cdrom >
<file id="rhel-server-6.0-x86_64-dvd.iso"/>

</cdrom >

as per the docs but no joy 
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.ovirt.org/pipermail/users/attachments/20130115/a8e7f89d/attachment-0001.html>


More information about the Users mailing list