Hi,

Yes the VM template is parsed in Virtual Machine.cc insert function.  Those
variables not recognized by oned are moved to the user template,  that's
the reason you are not getting the value.

However,  note that the emulator refers to the configuration of the
hypervisor so I think that the driver configuration file is the right place
to set this. Note that in general you do not know where the VM is going to
be deployed beforehand and maybe the EMULATOR value in the VM is not
compatible with the host.

Cheers

Ruben

On Tue, Jan 20, 2015, 5:25 AM Vladislav Gorbunov <[email protected]> wrote:

> Hi!
>
> I want  to override EMULATOR attribute in VM template for KVM guest. But
> if I define
> in vm template
> EMULATOR="/usr/bin/qemu-system-x86_64"
> and try to get EMULATOR from template in /src/vmm/LibVirtDriverKVM.cc:
> vm->get_template_attribute("EMULATOR", emulator_path);
> It always return empty string.
> get_default("EMULATOR",emulator_path);
> return value defined in /etc/one/vmm_exec/vmm_exec_kvm.conf.
> Is any filter in code that remove values from user templates?
>
>
> _______________________________________________
> Dev mailing list
> [email protected]
> http://lists.opennebula.org/listinfo.cgi/dev-opennebula.org
>
_______________________________________________
Dev mailing list
[email protected]
http://lists.opennebula.org/listinfo.cgi/dev-opennebula.org

Reply via email to