Hi,<br><br>You can edit one of the existing compute types, or create a new one [1], to add the GRAPHICS attribute [2].<br><br>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.<br>
<br>Regards.<br><br>[1] <a href="http://opennebula.org/documentation:rel3.0:occicg#defining_compute_types">http://opennebula.org/documentation:rel3.0:occicg#defining_compute_types</a><br>[2] <a href="http://opennebula.org/documentation:rel3.0:template#i_o_devices_section">http://opennebula.org/documentation:rel3.0:template#i_o_devices_section</a><br>
<br clear="all"><span style="border-collapse:collapse;color:rgb(136, 136, 136);font-family:arial,sans-serif;font-size:13px">--<br>
Carlos Martín, MSc</span><font color="#888888"><br>Project Engineer</font><br><span style="border-collapse:collapse;color:rgb(136, 136, 136);font-family:arial, sans-serif;font-size:13px"><span style="background-color:rgb(255, 255, 204);color:rgb(34, 34, 34);background-repeat:initial initial">OpenNebula</span> - The Open Source Toolkit for Cloud Computing<br>
<a href="http://www.opennebula.org/" style="color:rgb(42, 93, 176)" target="_blank">www.<span style="background-color:rgb(255, 255, 204);color:rgb(34, 34, 34);background-repeat:initial initial">OpenNebula</span>.org</a> | <a href="mailto:cmartin@opennebula.org" style="color:rgb(42, 93, 176)" target="_blank">cmartin@<span style="background-color:rgb(255, 255, 204);color:rgb(34, 34, 34);background-repeat:initial initial">opennebula</span>.org</a></span><br>
<br><br><div class="gmail_quote">On Mon, Sep 26, 2011 at 12:20 PM, Ruben Diez <span dir="ltr"><<a href="mailto:rdiez@cesga.es" target="_blank">rdiez@cesga.es</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
Hi.<br>
<br>
We are making some probes with the OCCI interface.<br>
<br>
Our xml compute definition file is:<br>
<br>
<COMPUTE><br>
<NAME>prueba occi</NAME><br>
<INSTANCE_TYPE>small</<u></u>INSTANCE_TYPE><br>
<DISK id='0'><br>
<STORAGE href="<a href="http://meghacloud.cesga.es:4569/storage/247" target="_blank">http://meghacloud.cesga.<u></u>es:4569/storage/247</a>"/><br>
<DRIVER type="raw"/><br>
</DISK><br>
<NIC><br>
<NETWORK href="<a href="http://meghacloud.cesga.es:4569/network/171" target="_blank">http://meghacloud.cesga.<u></u>es:4569/network/171</a>"/><br>
</NIC><br>
<CONTEXT><br>
<HOSTNAME>cesgapru</HOSTNAME><br>
<USERNAME>userpru</USERNAME><br>
<FILES>/srv/cloud/images/<u></u>pruebas_occi/context/*</FILES><br>
<USER_PUBKEY>root_id_rsa.pub</<u></u>USER_PUBKEY><br>
<ROOT_PUBKEY>user_id_rsa.pub</<u></u>ROOT_PUBKEY><br>
</CONTEXT><br>
</COMPUTE><br>
<br>
This file generates this deployment.0 file:<br>
<br>
<domain type='kvm'><br>
<name>one-2589</name><br>
<memory>1048576</memory><br>
<os><br>
<type arch='x86_64'>hvm</type><br>
<boot dev='hd'/><br>
</os><br>
<devices><br>
<emulator>/usr/bin/kvm</<u></u>emulator><br>
<disk type='file' device='disk'><br>
<source file='/srv/cloud/one/var//<u></u>2589/images/disk.0'/><br>
<target dev='hda' bus='ide'/><br>
<driver name='qemu' type='raw'/><br>
</disk><br>
<disk type='file' device='cdrom'><br>
<source file='/srv/cloud/one/var//<u></u>2589/images/disk.1'/><br>
<target dev='hdb'/><br>
<readonly/><br>
<driver name='qemu' type='raw'/><br>
</disk><br>
<interface type='bridge'><br>
<source bridge='virbrCLOUD'/><br>
<mac address='02:fe:54:15:ad:99'/><br>
</interface><br>
</devices><br>
<features><br>
<acpi/><br>
</features><br>
</domain><br>
<br>
As you can see, no "graphics" line is generated for the deployment.0 file .....<br>
<br>
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)??:<br>
<br>
<graphics type='vnc' listen='127.0.0.1' port='8089' keymap='es'/><br>
<br>
BTW, the generated deployment.0 not work... if we edit the deployment.0 and add a graphics line it works fine... any idea??<br>
<br>
<br>
<br>
______________________________<u></u>_________________<br>
Users mailing list<br>
<a href="mailto:Users@lists.opennebula.org" target="_blank">Users@lists.opennebula.org</a><br>
<a href="http://lists.opennebula.org/listinfo.cgi/users-opennebula.org" target="_blank">http://lists.opennebula.org/<u></u>listinfo.cgi/users-opennebula.<u></u>org</a><br>
</blockquote></div><br>