On 09/12/2013 05:36 PM, nelsonpeix...@fiocruz.br wrote: > Dear friends, > > It is my first post in here. I have been trying out OpenNebula 3.2 and I > have a doubt on using context variables. > > I have two hosts for the VMs and i want to be able to capture, via context > variable, for each VM I instantiate, which host is it on (IP or FQDN). > > I managed to find this page > (http://opennebula.org/documentation:archives:rel3.2:template) with a set > of instructions on how to use context variables and a link to some of the > possible values, but I could not find any hint on how to catch any > information on which host is the VM running on. > > I want to be able to capture this information and later on use this data > on the VM boot, in order to add some specific network configurations. > > So, is there a place with a broader context variable reference guide or is > there a way to catch that info? Hi, you can't set (yet) any dynamic context variable. All you can do is to set some "static" variables in the template of your VM. Via Hooks, you may be able to catch the information (getting all context data of the VM), and register it in a db/file/... then your VM, once booted, could try to access this data. However, your VM network should not depend on the host running the VM.
Regards Olivier > > Thanks in advance, > Nelson Peixoto. > > _______________________________________________ > Users mailing list > Users@lists.opennebula.org > http://lists.opennebula.org/listinfo.cgi/users-opennebula.org > > -- Olivier Sallou IRISA / University of Rennes 1 Campus de Beaulieu, 35000 RENNES - FRANCE Tel: 02.99.84.71.95 gpg key id: 4096R/326D8438 (keyring.debian.org) Key fingerprint = 5FB4 6F83 D3B9 5204 6335 D26D 78DC 68DB 326D 8438 _______________________________________________ Users mailing list Users@lists.opennebula.org http://lists.opennebula.org/listinfo.cgi/users-opennebula.org