Hi,<div><br><div class="gmail_quote">On Tue, Jul 3, 2012 at 9:26 AM, KC LO <span dir="ltr"><<a href="mailto:kclo2000@gmail.com" target="_blank">kclo2000@gmail.com</a>></span> wrote:</div><div class="gmail_quote">
<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div>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.</div>

</blockquote><div><br></div><div>You can set up mysql replication with a cluster of master-slave configuration.</div><div>Make sure to take a look at the OpenNebula accounting tool [1]</div><div> </div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">


<div></div><div>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.</div></blockquote>

<div><br></div><div>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.</div><div><br></div><div><br></div><div>Regards</div><div><br></div>

<div>[1] <a href="http://opennebula.org/documentation:rel3.6:accounting">http://opennebula.org/documentation:rel3.6:accounting</a></div><div><br clear="all">--<br>Carlos Martín, MSc<br>Project Engineer<br>OpenNebula - The Open-source Solution for Data Center Virtualization<div>

<span style="border-collapse:collapse;color:rgb(136,136,136);font-family:arial,sans-serif;font-size:13px"><a href="http://www.opennebula.org/" target="_blank">www.OpenNebula.org</a> | <a href="mailto:cmartin@opennebula.org" target="_blank">cmartin@opennebula.org</a> | <a href="http://twitter.com/opennebula" target="_blank">@OpenNebula</a></span><span style="border-collapse:collapse;color:rgb(136,136,136);font-family:arial,sans-serif;font-size:13px"><a href="mailto:cmartin@opennebula.org" target="_blank" style="color:rgb(42,93,176)"></a></span></div>

</div><div><br></div><div> </div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div></div><div>Thanks<div><div><br><br><div class="gmail_quote">On 2 July 2012 21:02, Carlos Martín Sánchez <span dir="ltr"><<a href="mailto:cmartin@opennebula.org" target="_blank">cmartin@opennebula.org</a>></span> wrote:<br>



<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Hi,<div><br></div><div>The easiest way to add any attributes to the deployment file is using the RAW attribute inside the VM template [1].</div>



<div><br></div><div><div>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.</div>

</div><div>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].</div>





<div><br></div><div>Regards</div><div><br></div><div>[1] <a href="http://opennebula.org/documentation:rel3.4:xeng#additional_attributes" target="_blank">http://opennebula.org/documentation:rel3.4:xeng#additional_attributes</a></div>



<div>

[2] <a href="http://dev.opennebula.org/projects/opennebula/repository/revisions/master/entry/src/vmm/XenDriver.cc" target="_blank">http://dev.opennebula.org/projects/opennebula/repository/revisions/master/entry/src/vmm/XenDriver.cc</a></div>





<div><br clear="all">--<br>Carlos Martín, MSc<br>Project Engineer<br>OpenNebula - The Open-source Solution for Data Center Virtualization<div><span style="border-collapse:collapse;color:rgb(136,136,136);font-family:arial,sans-serif;font-size:13px"><a href="http://www.OpenNebula.org" target="_blank">www.OpenNebula.org</a> | <a href="mailto:cmartin@opennebula.org" target="_blank">cmartin@opennebula.org</a> | <a href="http://twitter.com/opennebula" target="_blank">@OpenNebula</a></span><span style="border-collapse:collapse;color:rgb(136,136,136);font-family:arial,sans-serif;font-size:13px"><a href="mailto:cmartin@opennebula.org" style="color:rgb(42,93,176)" target="_blank"></a></span></div>





<br>
<br><br><div class="gmail_quote"><div><div>On Sat, Jun 30, 2012 at 7:45 PM, KC LO <span dir="ltr"><<a href="mailto:kclo2000@gmail.com" target="_blank">kclo2000@gmail.com</a>></span> wrote:<br></div></div>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div><div>

Hi all,<div><br></div><div>I have installed Opennebula 3.4 and using Xen as hypervisor.  I have setup that it can deploy VM guest host.</div><div>I want to customize contents of the deployment file like the VM guest name.  The default is using one-<id>.</div>






<div>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.</div><div><br></div><div>Any ideas!</div><div><br></div><div><br></div>
<br></div></div>_______________________________________________<br>
Users mailing list<br>
<a href="mailto:Users@lists.opennebula.org" target="_blank">Users@lists.opennebula.org</a><br>
<a href="http://lists.opennebula.org/listinfo.cgi/users-opennebula.org" target="_blank">http://lists.opennebula.org/listinfo.cgi/users-opennebula.org</a><br>
<br></blockquote></div><br></div>
</blockquote></div><br></div></div></div>
</blockquote></div><br></div>