[one-users] How to customize contents of the deployment file
Carlos Martín Sánchez
cmartin at opennebula.org
Tue Jul 10 02:52:39 PDT 2012
Hi,
On Tue, Jul 3, 2012 at 9:26 AM, KC LO <kclo2000 at gmail.com> wrote:
The reason that I want to change the VM guest name is that I want to use my
> customer service ID for each VM. For every customer subscribe our VM, we
> will provide our customer number(similar to telephone number concept) as
> reference. It helps for future billing and support communication. If we
> use one-<id> as reference, we need to cross-check with Opennebula DB. If
> the DB got problem, we will lose all customer subscription info.
>
You can set up mysql replication with a cluster of master-slave
configuration.
Make sure to take a look at the OpenNebula accounting tool [1]
> When I use SunStone to create Virtual Machines, it will ask the Virtual
> Machines name. Where will it store this variable so that I can use it to
> replace the server name of the deployment file.
>
The name is stored in VM/NAME. Again, let me point out that the VM name is
not unique, a user can have several VMs with the same name.
Regards
[1] http://opennebula.org/documentation:rel3.6:accounting
--
Carlos Martín, MSc
Project Engineer
OpenNebula - The Open-source Solution for Data Center Virtualization
www.OpenNebula.org <http://www.opennebula.org/> | cmartin at opennebula.org |
@OpenNebula <http://twitter.com/opennebula> <cmartin at opennebula.org>
> Thanks
>
>
> On 2 July 2012 21:02, Carlos Martín Sánchez <cmartin at opennebula.org>wrote:
>
>> 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/20120710/45c09939/attachment-0003.htm>
More information about the Users
mailing list