<div dir="ltr">Hello Kerry,<div><br></div><div>Under "Defining Context" [1] there is an example how to use FILES_DS.</div><div><br></div><div>FILES_DS="$FILE[IMAGE=\"test.sh\"]</div><div><br></div>


<div>[1]: <a href="http://docs.opennebula.org/4.6/user/virtual_machine_setup/cong.html" target="_blank">http://docs.opennebula.org/4.6/user/virtual_machine_setup/cong.html</a></div><div><br></div><div>Best,</div><div>Valentin</div>

<div><br>
</div><div class="gmail_extra"><br><br><div class="gmail_quote">On Fri, Jul 25, 2014 at 11:29 PM, kerryhall . <span dir="ltr"><<a href="mailto:kerryhall@gmail.com" target="_blank">kerryhall@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"><div><div><div><div><div><div><div><div>Hi folks,<br><br>I am trying to run a bash script on a vm as it gets spun up. I've read:<br>


<a href="http://docs.opennebula.org/4.6/user/virtual_machine_setup/cong.html" target="_blank">http://docs.opennebula.org/4.6/user/virtual_machine_setup/cong.html</a><br>
<br></div>but there isn't too much to go on there. <br><br></div>I have created "test.sh" and put it into the "files" datastore on the head node. <br><br></div>The issue I am having is that the syntax in the "Defining Context" section of <a href="http://docs.opennebula.org/4.6/user/virtual_machine_setup/cong.html" target="_blank">http://docs.opennebula.org/4.6/user/virtual_machine_setup/cong.html</a> is ambiguous, specifically the "files_ds" section. I have tried:<br>



<br></div>FILES_DS="$FILE[\"test.sh\"]"<br><br></div>and <br></div>FILES_DS="/var/lib/one/datastores/2/test.sh"<br><br></div><div>As a first step, I'm just trying to get this file included in my vm at all.<br>



</div><div><br></div>Thanks!<br></div>Kerry<br><div><div><div><div><div><div><br></div></div></div></div></div></div></div>
<br>_______________________________________________<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><br></div></div>