[one-users] Run bash script in vm on spin-up
Valentin Bud
valentin.bud at gmail.com
Fri Jul 25 23:18:08 PDT 2014
Hello Kerry,
Under "Defining Context" [1] there is an example how to use FILES_DS.
FILES_DS="$FILE[IMAGE=\"test.sh\"]
[1]: http://docs.opennebula.org/4.6/user/virtual_machine_setup/cong.html
Best,
Valentin
On Fri, Jul 25, 2014 at 11:29 PM, kerryhall . <kerryhall at gmail.com> wrote:
> Hi folks,
>
> I am trying to run a bash script on a vm as it gets spun up. I've read:
> http://docs.opennebula.org/4.6/user/virtual_machine_setup/cong.html
>
> but there isn't too much to go on there.
>
> I have created "test.sh" and put it into the "files" datastore on the head
> node.
>
> The issue I am having is that the syntax in the "Defining Context" section
> of http://docs.opennebula.org/4.6/user/virtual_machine_setup/cong.html is
> ambiguous, specifically the "files_ds" section. I have tried:
>
> FILES_DS="$FILE[\"test.sh\"]"
>
> and
> FILES_DS="/var/lib/one/datastores/2/test.sh"
>
> As a first step, I'm just trying to get this file included in my vm at all.
>
> Thanks!
> Kerry
>
>
> _______________________________________________
> Users mailing list
> Users at lists.opennebula.org
> http://lists.opennebula.org/listinfo.cgi/users-opennebula.org
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.opennebula.org/pipermail/users-opennebula.org/attachments/20140726/635e0ca4/attachment.htm>
More information about the Users
mailing list