<div dir="ltr"><div><div><div>Thank you very much for your answer.<br><br></div>It will do the trick. <br><br><br></div>Best regards,<br><br></div>Damien<br></div><div class="gmail_extra"><br><br><div class="gmail_quote">On Wed, Jul 2, 2014 at 3:59 PM, Ruben S. Montero <span dir="ltr"><<a href="mailto:rsmontero@opennebula.org" target="_blank">rsmontero@opennebula.org</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">The VM ID is in fact the third argument of the deploy script so you do not need to get it from the deployment file.<div>
<br></div><div>Cheers</div></div><div class="HOEnZb"><div class="h5"><div class="gmail_extra"><br><br><div class="gmail_quote">
On Wed, Jul 2, 2014 at 3:45 PM, Ruben S. Montero <span dir="ltr"><<a href="mailto:rsmontero@opennebula.org" target="_blank">rsmontero@opennebula.org</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">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"><div><div>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>
</div></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div><div><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></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><span><font color="#888888"><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>
</font></span></div>
</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>
</div></div></blockquote></div><br></div>