Unique Identifiers for Virtual machines

InsightVM fails to assign unique identifiers to our Linux-based Xen paravirtualised servers. I suspect this is due “dmidecode” not being able to return any useful information for PV servers (it works with HVM).

I am curious to find out what do others do in this situation? I am thinking of replacing “dmidecode” with a script that returns the content of /etc/machine-id (as it is unique across or VMs), but wanted to tap into the community knowledge here to see if someone already tried this, or maybe have better ideas?