Hi.

We are making some probes with the OCCI interface.

Our xml compute definition file is:

<COMPUTE>
   <NAME>prueba occi</NAME>
   <INSTANCE_TYPE>small</INSTANCE_TYPE>
   <DISK id='0'>
   <STORAGE href="http://meghacloud.cesga.es:4569/storage/247"/>
       <DRIVER type="raw"/>
   </DISK>
   <NIC>
       <NETWORK href="http://meghacloud.cesga.es:4569/network/171"/>
   </NIC>
   <CONTEXT>
       <HOSTNAME>cesgapru</HOSTNAME>
       <USERNAME>userpru</USERNAME>
       <FILES>/srv/cloud/images/pruebas_occi/context/*</FILES>
       <USER_PUBKEY>root_id_rsa.pub</USER_PUBKEY>
               <ROOT_PUBKEY>user_id_rsa.pub</ROOT_PUBKEY>
   </CONTEXT>
</COMPUTE>

This file generates this deployment.0 file:

<domain type='kvm'>
   <name>one-2589</name>
   <memory>1048576</memory>
   <os>
       <type arch='x86_64'>hvm</type>
       <boot dev='hd'/>
   </os>
   <devices>
       <emulator>/usr/bin/kvm</emulator>
       <disk type='file' device='disk'>
           <source file='/srv/cloud/one/var//2589/images/disk.0'/>
           <target dev='hda' bus='ide'/>
           <driver name='qemu' type='raw'/>
       </disk>
       <disk type='file' device='cdrom'>
           <source file='/srv/cloud/one/var//2589/images/disk.1'/>
           <target dev='hdb'/>
           <readonly/>
           <driver name='qemu' type='raw'/>
       </disk>
       <interface type='bridge'>
           <source bridge='virbrCLOUD'/>
           <mac address='02:fe:54:15:ad:99'/>
       </interface>
   </devices>
   <features>
       <acpi/>
   </features>
</domain>

As you can see, no "graphics" line is generated for the deployment.0 file .....

How can we make a compute definition file in the occi format that could generate a graphics line in the deployment.0 file as this (for example)??:

<graphics type='vnc' listen='127.0.0.1' port='8089' keymap='es'/>

BTW, the generated deployment.0 not work... if we edit the deployment.0 and add a graphics line it works fine... any idea??



_______________________________________________
Users mailing list
[email protected]
http://lists.opennebula.org/listinfo.cgi/users-opennebula.org

Reply via email to