[one-users] OCCI compute create

John Dewey john at dewey.ws
Wed Dec 22 14:43:10 PST 2010


I was looking at the documentation on creating a compute instance.

http://www.opennebula.org/documentation:rel2.2:occiug

It states the following XML should used:


    <COMPUTE>
        <NAME>MyCompute</NAME>
        <INSTANCE_TYPE>small</INSTANCE_TYPE>
        <DISK>
            <STORAGE href="http://www.opennebula.org/storage/1"/>
        </DISK>
        ...
        <NIC>
            <NETWORK href="http://www.opennebula.org/network/0"/>
            <IP>192.168.0.12</IP>
        </NIC>
        ...
        <CONTEXT>
            <HOSTNAME>MAINHOST</HOSTNAME>
            <DATA>DATA1</DATA>
        </CONTEXT>
    </COMPUTE>

However, I do not want to supply an IP.  I feel I should be able to
simply supply the vnet id or name, and OpenNebula should obtain a
lease from that vnet.
Also the href tag attribute, is that necessary?  Should it be the URL
to my OpenNebula instance?



More information about the Users mailing list