Enabling KSM on OpenNebula KVM hosts running Debian

Hello,

My OpenNebula is using Debian hosts with KVM virtualization. I have read that KSM can significantly reduce the memory footprint when multiple similar VMs are running simultaneously. I currently have 10 different VM templates, each cloned 48 times (for my students).

Does anyone have any advice on this? Is it easy to implement it ? Is it risky?

Thanks in advance,
Benjamin