Bug #10787
closedXen domU detection issues with pvops kernels.
Description
It seems someone at CFEngine has been sleeping at the wheel.
All xen-related classes are not detected if the system is running a PVOps kernel.
This is quite unfortunate, Xen went upstream like 5 years ago...
[ 0.000000] Hypervisor detected: Xen
- find /proc/xen/
/proc/xen/ # ls /proc/xen/ - ls -d /proc/xen
/proc/xen - find /proc/xen
/proc/xen - dmesg | grep -i " Hypervisor detected: Xen"
[ 0.000000] Hypervisor detected: Xen - cf-promises --show-classes | grep -i xen
#@
I've re-tested the whole thing with a 4.1.0 agent.
Same issue.
Please convince the CFEngine guys to detect existance of /proc/xen at the very least. If it does contain the file 'control_d' you're in a dom0.
Easiest way (no knowledge required) to detect a domU is by looking at /sys/module - if there's a number of xen_blkfront or xen_netfront drivers loaded, you are likely in a Xen domU with loaded PV drivers. No matter if full PV or HVM or PVHVM.
There are likely better ways but i think the discussion about "better" is best handled when the basics (it is detected at all) are restored.