[one-users] Run bash script in vm on spin-up

kerryhall . kerryhall at gmail.com
Fri Jul 25 13:29:57 PDT 2014


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
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.opennebula.org/pipermail/users-opennebula.org/attachments/20140725/b2a350be/attachment.htm>


More information about the Users mailing list