[one-users] How to customize contents of the deployment file
Carlos Martín Sánchez
cmartin at opennebula.org
Mon Jul 2 06:02:00 PDT 2012
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 | cmartin at opennebula.org |
@OpenNebula<http://twitter.com/opennebula><cmartin at opennebula.org>
On Sat, Jun 30, 2012 at 7:45 PM, KC LO <kclo2000 at gmail.com> 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
> Users at lists.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/20120702/737abeb3/attachment-0002.htm>
More information about the Users
mailing list