machine-id-setup: Generate stable machine IDs based on Xen hypervisor UUID
authorRafaël Kooi <48814281+RA-Kooi@users.noreply.github.com>
Mon, 22 Jan 2024 16:13:21 +0000 (17:13 +0100)
committerRafaël Kooi <48814281+RA-Kooi@users.noreply.github.com>
Tue, 23 Jan 2024 17:55:15 +0000 (18:55 +0100)
src/shared/machine-id-setup.c

index 833c98b88ef1b979b03eaeb22b20a620c92ea870..94425d6a73143926a79ad9653dd624454d515718 100644 (file)
@@ -78,7 +78,7 @@ static int generate_machine_id(const char *root, sd_id128_t *ret) {
                                 return 0;
                         }
 
-                } else if (IN_SET(detect_vm(), VIRTUALIZATION_KVM, VIRTUALIZATION_AMAZON, VIRTUALIZATION_QEMU)) {
+                } else if (IN_SET(detect_vm(), VIRTUALIZATION_KVM, VIRTUALIZATION_AMAZON, VIRTUALIZATION_QEMU, VIRTUALIZATION_XEN)) {
 
                         /* If we are not running in a container, see if we are running in a VM that provides
                          * a system UUID via the SMBIOS/DMI interfaces.  Such environments include QEMU/KVM