<div dir="ltr">I am afraid that it is not currently supported by the OpenNebula core. Only variables in CONTEXT get parsed and $VMID substituted. <div><br></div><div>If you need this, you could add it in the deploy script. You can get the VM-ID with a grep of the deployment file ($domain) for <name> and sed to remove the one- part. And then simply cat the contents of raw data to the deployment file. Note that this will be added to any VM so you probably want to filter it through a variable (e.g. a dummy raw data or whaterver...)</div>

<div><br></div><div>Cheers</div><div><br></div><div>Ruben</div></div><div class="gmail_extra"><br><br><div class="gmail_quote">On Tue, Jul 1, 2014 at 9:31 PM, Damien Waber <span dir="ltr"><<a href="mailto:damien.waber@gmail.com" target="_blank">damien.waber@gmail.com</a>></span> wrote:<br>

<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr"><pre>Hi,

I try to add virtual shared folder to my KVM guests. I tried adding a RAW
section to template

RAW = [
 type = "kvm",
 data = "<filesystem type='mount' accessmode='mapped'><source
dir='/tmp/shares/$VMID'/><target dir='share'/></filesystem>"
]

But VMID is not replaced dynamically. Is there an alternative way to
specify dynamic VMID in this section?

Best regards,

Damien</pre></div>
<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>
<br></blockquote></div><br><br clear="all"><div><br></div>-- <br><div dir="ltr"><div><div>-- <br></div></div>Ruben S. Montero, PhD<br>Project co-Lead and Chief Architect<div>OpenNebula - Flexible Enterprise Cloud Made Simple<br>

<a href="http://www.OpenNebula.org" target="_blank">www.OpenNebula.org</a> | <a href="mailto:rsmontero@opennebula.org" target="_blank">rsmontero@opennebula.org</a> | @OpenNebula</div></div>
</div>