Hi,<div><br></div><div>You can use the -n (--name) option with onetemplate instantiate.</div><div><br></div><div>Regards.</div><div><span class="Apple-style-span" style="color:rgb(136,136,136);font-family:arial,sans-serif;font-size:13px">--</span></div>
<div><span style="border-collapse:collapse;color:rgb(136,136,136);font-family:arial,sans-serif;font-size:13px">Carlos Martín, MSc<br>Project Engineer<br>OpenNebula - The Open Source Toolkit for Data Center Virtualization<br>
<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><br>
<br><br><div class="gmail_quote">On Tue, Dec 6, 2011 at 6:37 AM, Graeme Gillies <span dir="ltr"><<a href="mailto:graeme.r.gillies@gmail.com">graeme.r.gillies@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
Hi,<br>
<br>
I currently have a vm template in onetemplate that looks like the following<br>
<br>
TEMPLATE 0 INFORMATION<br>
ID : 0<br>
NAME : gg-devel<br>
USER : ggillies<br>
GROUP : users<br>
REGISTER TIME : 12/02 14:43:50<br>
PUBLIC : No<br>
<br>
TEMPLATE CONTENTS<br>
CPU=1<br>
DISK=[<br>
BUS=virtio,<br>
DRIVER=raw,<br>
IMAGE_ID=4,<br>
TARGET=vda,<br>
TYPE=DISK ]<br>
DISK=[<br>
BUS=virtio,<br>
SIZE=1024,<br>
TARGET=vdb,<br>
TYPE=SWAP ]<br>
GRAPHICS=[<br>
LISTEN=0.0.0.0,<br>
TYPE=vnc ]<br>
MEMORY=512<br>
NAME=gg-devel<br>
NIC=[<br>
NETWORK_ID=0 ]<br>
OS=[<br>
ARCH=x86_64,<br>
BOOT=hd ]<br>
TEMPLATE_ID=0<br>
<br>
You can see in the template the name of the vm is "gg-devel".<br>
<br>
However, when I use<br>
<br>
onetemplate instantiate 0<br>
<br>
And look at the running vm the name is just the generic "one-XX"<br>
<br>
ID USER GROUP NAME STAT CPU MEM HOSTNAME<br>
TIME<br>
43 ggillies users one-43 runn 15 512M virt-02-cloud.l<br>
00 00:03:25<br>
<br>
Is this a bug or intended? I'd like to be able to add vm templates<br>
into the library and when they are instantiated have the correct name<br>
from the template. I understand that people might be able to<br>
instantiate multiple instances of a template, but in that cause,<br>
shouldn't every instance after the first have a number appended? In my<br>
use case, the disk images are marked as persistent so people won't be<br>
able to instantiate more than 1 instance at a time.<br>
<br>
Any clarification would be much appreciated.<br>
<br>
Regards,<br>
<br>
Graeme<br>
_______________________________________________<br>
Users mailing list<br>
<a href="mailto:Users@lists.opennebula.org">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>
</blockquote></div><br></div>