The NAME parameter of the template is primarily intended to name the
template itself. In Sunstone, if you instantiate the VM from the Virtual
Machines section, you can leave the name field blank and the name of the
selected template will be used.
Still, i would suggest you to open a request in http://dev.opennebula.org
if you want the default instantiate button behaviour to be changed, so
that it is considered for the next release.
Thanks!
Hector
En Tue, 13 Mar 2012 13:26:27 +0100, Francesco Camisa
<francesco.cam...@policlinicosanmarco.it> escribió:
Hi,
from cli it works and it works as well from sunstone if I create a VM
and manually set the name from there.
The thing is that when from the template section I click "instantiate"
the VM defaults to "one-<ID>". Given the fact that I had explicitly set
the parameter NAME=centos-servizio i would have expected the machine to
have a name similar to "centos-servizio-<ID>". This would be fairly
useful to identify which templates are running especially with regard to
persistent images.
Thanks in advance
Francesco
----- Original Message -----
From: "Hector Sanjuan" <hsanj...@opennebula.org>
To: users@lists.opennebula.org
Sent: Tuesday, 13 March, 2012 11:28:23 AM
Subject: Re: [one-users] VM instance gets default name even if NAME is
specified
hi, did you try
onetemplate instantiate <template_id> -n <vm_name>
?
Hector
En Tue, 13 Mar 2012 09:31:21 +0100, Francesco Camisa
<francesco.cam...@policlinicosanmarco.it> escribió:
Hi,
I am running a test installation (opennebula 3.2.1) with the following
configuration:
- Front-End CentOS 6.2 x86_64, mysql backend;
- 1 Host CentOS 6.2 x86_64 Virtualization drive KVM.
Everything works ok except for a small yet annoying problem. I have
created a VM template, and in it the NAME parameter is specified, but
when the VM is instantiated it always defaults to "one-<ID>".
I have read the documentation and in particular the Virtual Machine
definition file but have not been able to figuring out what I am doing
wrong.
Any help would be appreciated.
Thanks in advance
Francesco
Following is the template:
DISK=[
BUS=virtio,
DRIVER=raw,
IMAGE=kvm-centos-servizio,
IMAGE_UNAME=oneadmin ]
FEATURES=[
ACPI=yes ]
GRAPHICS=[
LISTEN=0.0.0.0,
TYPE=vnc ]
INPUT=[
BUS=usb,
TYPE=tablet ]
MEMORY=2048
NAME=centos-servizio
NIC=[
BRIDGE=br0,
MAC=52:54:00:b7:cd:86,
MODEL=virtio ]
OS=[
ARCH=x86_64,
BOOT=hd ]
RAW=[
TYPE=kvm ]
TEMPLATE_ID=2
VCPU=2
_______________________________________________
Users mailing list
Users@lists.opennebula.org
http://lists.opennebula.org/listinfo.cgi/users-opennebula.org
--
Hector Sanjuan
OpenNebula Developer
_______________________________________________
Users mailing list
Users@lists.opennebula.org
http://lists.opennebula.org/listinfo.cgi/users-opennebula.org
--
Hector Sanjuan
OpenNebula Developer
_______________________________________________
Users mailing list
Users@lists.opennebula.org
http://lists.opennebula.org/listinfo.cgi/users-opennebula.org