Skip to content

Commit

Permalink
machine-id-setup: Generate stable machine IDs based on Xen hypervisor…
Browse files Browse the repository at this point in the history
… UUID
  • Loading branch information
RA-Kooi committed Jan 23, 2024
1 parent d2f2c20 commit 98d550b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/shared/machine-id-setup.c
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 98d550b

Please sign in to comment.