On 11/22/2013 04:27 PM, Valentin Bud wrote: > Hi Olivier, > > I guess what you are looking for is `onevm update`. But can it be called in a hook, before the VM is started to see it in context file?
Olivier > > * update <vmid> [<file>] > Update the user template contents. If a path is not provided the > editor will be launched to modify the current content. > valid options: append > > Just tried it to see how it works. > > # cat > /tmp/append > A="B" > > # onevm update 278 /tmp/append -a > > # onevm show -x 278 > > <USER_TEMPLATE> > <A><![CDATA[B]]></A> > </USER_TEMPLATE> > > Hope it helps. Cheers and Goodwill, > Valentin > > On Fri, Nov 22, 2013 at 02:13:14PM +0100, Olivier Sallou wrote: >> Hi, >> I see that feature allowing to update the vm template from a hook has >> been integrated ( http://dev.opennebula.org/issues/1556), but I do not >> see how in the hook documentation page (nor elsewhere). I see how to get >> the template but not how to modify it. >> >> How can we do this ? >> >> Thanks >> >> Olivier >> >> -- >> 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 > -- 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