[one-users] OCCI definition file and graphis

Carlos Martín Sánchez cmartin at opennebula.org
Tue Oct 11 06:54:29 PDT 2011


Hi,

You can edit one of the existing compute types, or create a new one [1], to
add the GRAPHICS attribute [2].

This will include the graphics element in the deployment.0 file, but users
won't be able guess the IP (the OpenNebula host) and port (assigned
automatically) to connect using OCCI, you'll need to issue a onevm show <id>
to retrieve these VNC connection details.

Regards.

[1] http://opennebula.org/documentation:rel3.0:occicg#defining_compute_types
[2] http://opennebula.org/documentation:rel3.0:template#i_o_devices_section

--
Carlos Martín, MSc
Project Engineer
OpenNebula - The Open Source Toolkit for Cloud Computing
www.OpenNebula.org <http://www.opennebula.org/> | cmartin at opennebula.org


On Mon, Sep 26, 2011 at 12:20 PM, Ruben Diez <rdiez at cesga.es> wrote:

> 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<http://meghacloud.cesga.es:4569/storage/247>
> "/>
>       <DRIVER type="raw"/>
>   </DISK>
>   <NIC>
>       <NETWORK href="http://meghacloud.cesga.**es:4569/network/171<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
> Users at lists.opennebula.org
> http://lists.opennebula.org/**listinfo.cgi/users-opennebula.**org<http://lists.opennebula.org/listinfo.cgi/users-opennebula.org>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.opennebula.org/pipermail/users-opennebula.org/attachments/20111011/a1c4f4c5/attachment-0001.htm>


More information about the Users mailing list