<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN">
<html><body style='font-size: 10pt; font-family: Verdana,Geneva,sans-serif'>
<p>We're using OpenNebula 3.8.1.</p>
<p>While instances created using the webgui have a working network - when I create instances using occi they get an ip address and run but they can't be reached.</p>
<p>here is the curl command (created by libcloud) :</p>
<p>curl -i -X POST -H 'Host: localhost:4567' -H 'Accept-Encoding: gzip,deflate' -H 'X-LC-Request-ID: 29837936' -H 'Content-Length: 167' -H 'Authorization: Basic XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX' -H 'User-Agent: libcloud/0.14.1 (OpenNebula (v3.2)) ' --data-binary '<COMPUTE><NAME>Compute Instance</NAME><INSTANCE_TYPE>small</INSTANCE_TYPE><DISK><STORAGE href="/storage/2" /></DISK><NIC><NETWORK href="/network/11" /></NIC></COMPUTE>' --compress http://localhost:4567/compute</p>
<p> </p>
<p>if I look at the VM template of the instance in the webgui, the difference between a webgui instance and the one created using occi is the following (otherwise the correct network etc.. is used) :</p>
<p>NIC :</p>
<p>   NETWORK_UNAME   oneadmin</p>
<p> </p>
<p>some other stuff like VNC is missing etc... if I could add vnc that would be great, but it is not as essential as getting a functioning network</p>
<p> </p>
<p>is missing in the occi instance.</p>
<p> </p>
<p>I think that's the problem, but how to solve it (my username is NOT oneadmin !) ?</p>
<p>maybe somethwing with the <code>/etc/one/occi_templates/network.erb</code> file ?</p>
<p>but there is nothing about a NETWORK_UNAME in the documentation : http://archives.opennebula.org/documentation:rel4.4:vnet_template</p>
<p> </p>
<p>here the network monitoring information from the webgui :</p>
<table id="vm_monitoring_table" class="info_table">
<thead>
<tr><th colspan="2">Monitoring information</th></tr>
</thead>
<tbody>
<tr>
<td class="key_td">Net_TX</td>
<td class="value_td">0</td>
</tr>
<tr>
<td class="key_td">Net_RX</td>
<td class="value_td">90872</td>
</tr>
<tr>
<td class="key_td">Used Memory</td>
<td class="value_td">1024M</td>
</tr>
<tr>
<td class="key_td">Used CPU</td>
<td class="value_td">96</td>
</tr>
<tr>
<td class="key_td">VNC Session</td>
<td class="value_td"><img src="http://b04:9869/images/vnc_off.png" alt="VNC Disabled" /></td>
</tr>
</tbody>
</table>
<p>Thank you !</p>
<p> </p>
<p> </p>
<div> </div>
</body></html>