Hi, On Tue, Jul 3, 2012 at 9:26 AM, KC LO <[email protected]> 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/> | [email protected] | @OpenNebula <http://twitter.com/opennebula> <[email protected]> > Thanks > > > On 2 July 2012 21:02, Carlos Martín Sánchez <[email protected]>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 | [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
