Hi,

The easiest way to add any attributes to the deployment file is using the
RAW attribute inside the VM template [1].

Setting the OpenNebula VM name in the deployment file is not a good idea,
because the VM id is unique, but the name isn't.
Anyway, if you really need to overwrite attributes set by OpenNebula, you
can change the /var/lib/one/<id>/deployment.0 file before the deployment is
actually made, modifying the /var/lib/one/remotes/vmm/xen/deploy script.
The file is actually created by the core, if you are willing to recompile,
take a look at src/vmm/XenDriver.cc [2].

Regards

[1] http://opennebula.org/documentation:rel3.4:xeng#additional_attributes
[2]
http://dev.opennebula.org/projects/opennebula/repository/revisions/master/entry/src/vmm/XenDriver.cc

--
Carlos Martín, MSc
Project Engineer
OpenNebula - The Open-source Solution for Data Center Virtualization
www.OpenNebula.org | [email protected] |
@OpenNebula<http://twitter.com/opennebula><[email protected]>



On Sat, Jun 30, 2012 at 7:45 PM, KC LO <[email protected]> wrote:

> Hi all,
>
> I have installed Opennebula 3.4 and using Xen as hypervisor.  I have setup
> that it can deploy VM guest host.
> I want to customize contents of the deployment file like the VM guest
> name.  The default is using one-<id>.
> I want to change the name so that it is same as the name I use VM creation
> under SunStone and other parameters of the deployment file.
>
> Any ideas!
>
>
>
> _______________________________________________
> Users mailing list
> [email protected]
> http://lists.opennebula.org/listinfo.cgi/users-opennebula.org
>
>
_______________________________________________
Users mailing list
[email protected]
http://lists.opennebula.org/listinfo.cgi/users-opennebula.org

Reply via email to