[one-users] VM_HOOK "on = CREATE" cannot work on remote hosts
Akihiko Ota
skywalker.37th at gmail.com
Sun Jun 24 21:03:02 PDT 2012
Hi Carlos,
OK, I've modified the deploy script to execute my preparation script.
It works fine. This behavior is just what I needed!
Thanks!
--
Akihiko Ota
From: Carlos Martín Sánchez <cmartin at opennebula.org>
Subject: Re: [one-users] VM_HOOK "on = CREATE" cannot work on remote hosts
Date: Thu, 21 Jun 2012 12:13:09 +0200
> Hi,
>
> Indeed, the hook on running is executed after the VM is up and running. You
> should also take into account that all the hooks are asynchronous,
> OpenNebula will not wait for them to move on to the next states.
>
> If you need to execute a preparation hook before the VM deployment, you'll
> have to modify the deploy script, located at
> /var/lib/one/remotes/vmm/<hypervisor>/deploy
>
> After that, execute 'onehost sync'. OpenNebula will copy the modified
> remotes in the next Host monitorization cycle.
>
>
> Regards
>
> --
> Carlos Martín, MSc
> Project Engineer
> OpenNebula - The Open-source Solution for Data Center Virtualization
> www.OpenNebula.org | cmartin at opennebula.org |
> @OpenNebula<http://twitter.com/opennebula><cmartin at opennebula.org>
More information about the Users
mailing list