While looking for something to use as a system-unique fall-back when a TPM is not available, I looked at
/sys/devices/virtual/dmi/id/product_uuid (same as
dmidecode‘s “System Information / UUID”), but was disappointed when, under KVM, the file was missing (and running
dmidecode crashes KVM *cough*). However, after a quick check, I noticed that KVM supports the “
-uuid” option to set the value of
/sys/devices/virtual/dmi/id/product_uuid. Looks like libvirt supports this under
capabilities / host / uuid in the XML, too.
host# kvm -uuid 12345678-ABCD-1234-ABCD-1234567890AB ... host# ssh localhost ... ... guest# cat /sys/devices/virtual/dmi/id/product_uuid 12345678-ABCD-1234-ABCD-1234567890AB
© 2012, Kees Cook. This work is licensed under a Creative Commons Attribution-ShareAlike 3.0 License.