KVM template tries to initiate on LXD hypervisor

Hi,

KVM template tries to instantiate on LXD hypervisor, why is so?

[oneadmin@one-srv-01 ~]$ onetemplate show 19 | grep -i hyper
HYPERVISOR="kvm"

[oneadmin@one-srv-01 ~]$ onehost show 10 | grep -i 'mad\|hyper'
IM_MAD                : lxd                  
VM_MAD                : lxd                  
HYPERVISOR="lxd"
IM_MAD="lxd"
VM_MAD="lxd"

OpenNebula 5.8.1

Hello @gray380

You need to add an sched requirement, so kvm templates goes to kvm hosts, check this for more information.

Hello @ahuertas,

Do you mean put SCHED_REQUIREMENTS = “HYPERVISOR=kvm” to the Context Cusrom vars template section?

UPDATE: I find the place in the ‘advanced’ and put it under another requirement:

SCHED_DS_REQUIREMENTS = "ID=“106"”
SCHED_REQUIREMENTS = “HYPERVISOR=“kvm””

Thanks for your assistance.

Yes, that’s correct, is it working now?

Yes, it does. Thanks.
I think it’s not bad idea to put these requirements (lxd to lxd, kvm to kvm) by default.