[one-users] Fail to create vm by mentioning passwd=P@$$w0rd in vm template

Jaime Melis jmelis at opennebula.org
Mon Sep 10 02:00:14 PDT 2012


Hello,

The parser evaluates variables starting with $ inside the strings, so
that's not a valid character. An alternative would be to use a base64
encoded value and decode it inside the VM.

Cheers,
Jaime

On Mon, Sep 10, 2012 at 8:36 AM, Mrt Raju <mrtraju at gmail.com> wrote:

> Hi,
> I was unable to launch new vm if i mention the value passwd=P@$$w0rd in
> vm template.
> my vm template is as below.
>
> ARCH = x86_64
> CONTEXT = [
>         BROADCAST = "$NETWORK[BROADCAST, NETWORK_ID=\"0\"]",
>         DNS = "$NETWORK[DNS, NETWORK_ID=\"0\"]",
>         FILES= /var/lib/one/vm-templates/ONE-centos/centos-init.sh,
>        * PASSWD= "P@$$w0rd",*
>         GATEWAY= "$NETWORK[GATEWAY, NETWORK_ID=\"0\"]",
>         HOSTNAME = $NAME-$VMID,
>         IP_PUBLIC = "$NIC[IP, NETWORK_ID=\"0\"]",
>         NETMASK = "$NETWORK[NETMASK, NETWORK_ID=\"0\"]",
>         NETWORK = "$NETWORK[NETWORK, NETWORK_ID=\"0\"]"
>         ]
> CPU = 0
> DISK = [
>         IMAGE_ID= 9,
>         TYPE=os ]
> GRAPHICS=[
>         LISTEN = 0.0.0.0,
>         TYPE = vnc ]
> MEMORY = 2048
> NAME = TestVM-T-1
> NIC = [
>         NETWORK_ID = 0,
>         IP = 10.4.104.91 ]
> OS = [
>         ARCH = x86_64,
>         BOOT = hd ]
> RAW = [
>         TYPE = kvm ]
> VCPU = 2
>
> I mention the passwd="P at ssw0rd",vm launch will be success.
> $$ is causing vm launch fail.
>
> Regards,
>
> _______________________________________________
> Users mailing list
> Users at lists.opennebula.org
> http://lists.opennebula.org/listinfo.cgi/users-opennebula.org
>
>


-- 
Jaime Melis
Project Engineer
OpenNebula - The Open Source Toolkit for Cloud Computing
www.OpenNebula.org | jmelis at opennebula.org
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.opennebula.org/pipermail/users-opennebula.org/attachments/20120910/b27de1b2/attachment-0002.htm>


More information about the Users mailing list