[one-users] vm hooks

Thomas Stein himbeere at meine-oma.de
Fri May 2 08:09:13 PDT 2014


Hello.

I need a litte bit help with the hook system. I think i'm having
problems understanding the concept. Let's say i wanna have a script
executed after a start of a certain VM. How would the hook look like?
Something like this?

 VM_HOOK = [
   name      = "change_gateway",
   on        = "START",
   state     = "ACTIVE",
   command   = "cg.sh",
   arguments = "$ID" ]

So this goes to /etc/one/oned.conf? Do i need to assign this to the VM
in some way?

$ID = ID of the VM?

Sorry a lot of questions. Thanks and best regards

t.



More information about the Users mailing list