[one-users] I define a hook, want the host to restart the VM will automatically start after , but has not been successful.
Carlos Martín Sánchez
cmartin at opennebula.org
Tue Dec 16 01:48:34 PST 2014
Hi,
On Mon, Dec 15, 2014 at 4:18 AM, clm_tuan at hotmail.com <clm_tuan at hotmail.com>
wrote:
>
> Hi All
>
> I define a hook, want the host to restart the VM will automatically start
> after,but has not been successful.
>
> VM_HOOK = [
> name = "autostart_hook",
> on = "CUSTOM",
> state = "POWEROFF",
> lcm_state = "LCM_INIT",
> command = "/usr/bin/env onevm resume",
> arguments = "$ID" ]
>
> Do you have any good suggestions, thank you.
>
>
The hook definition looks good. Did you restart opennebula after editing
oned.conf?
You can look for any errors in the hook execution in the individual VM log,
in /var/log/one/<id>.log
Regards.
--
Carlos Martín, MSc
Project Engineer
OpenNebula - Flexible Enterprise Cloud Made Simple
www.OpenNebula.org <http://www.opennebula.org/> | cmartin at opennebula.org |
@OpenNebula <http://twitter.com/opennebula> <cmartin at opennebula.org>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.opennebula.org/pipermail/users-opennebula.org/attachments/20141216/2a566ec1/attachment-0001.htm>
More information about the Users
mailing list