Thank you very much for your answer. It will do the trick.
Best regards, Damien On Wed, Jul 2, 2014 at 3:59 PM, Ruben S. Montero <rsmont...@opennebula.org> wrote: > The VM ID is in fact the third argument of the deploy script so you do not > need to get it from the deployment file. > > Cheers > > > On Wed, Jul 2, 2014 at 3:45 PM, Ruben S. Montero <rsmont...@opennebula.org > > wrote: > >> I am afraid that it is not currently supported by the OpenNebula core. >> Only variables in CONTEXT get parsed and $VMID substituted. >> >> If you need this, you could add it in the deploy script. You can get the >> VM-ID with a grep of the deployment file ($domain) for <name> and sed to >> remove the one- part. And then simply cat the contents of raw data to the >> deployment file. Note that this will be added to any VM so you probably >> want to filter it through a variable (e.g. a dummy raw data or whaterver...) >> >> Cheers >> >> Ruben >> >> >> On Tue, Jul 1, 2014 at 9:31 PM, Damien Waber <damien.wa...@gmail.com> >> wrote: >> >>> Hi, >>> >>> I try to add virtual shared folder to my KVM guests. I tried adding a RAW >>> section to template >>> >>> RAW = [ >>> type = "kvm", >>> data = "<filesystem type='mount' accessmode='mapped'><source >>> dir='/tmp/shares/$VMID'/><target dir='share'/></filesystem>" >>> ] >>> >>> But VMID is not replaced dynamically. Is there an alternative way to >>> specify dynamic VMID in this section? >>> >>> Best regards, >>> >>> Damien >>> >>> >>> _______________________________________________ >>> Users mailing list >>> Users@lists.opennebula.org >>> http://lists.opennebula.org/listinfo.cgi/users-opennebula.org >>> >>> >> >> >> -- >> -- >> Ruben S. Montero, PhD >> Project co-Lead and Chief Architect >> OpenNebula - Flexible Enterprise Cloud Made Simple >> www.OpenNebula.org | rsmont...@opennebula.org | @OpenNebula >> > > > > -- > -- > Ruben S. Montero, PhD > Project co-Lead and Chief Architect > OpenNebula - Flexible Enterprise Cloud Made Simple > www.OpenNebula.org | rsmont...@opennebula.org | @OpenNebula >
_______________________________________________ Users mailing list Users@lists.opennebula.org http://lists.opennebula.org/listinfo.cgi/users-opennebula.org