From 4cdaff292c8918511b88d9a05a4111c366702c3c Mon Sep 17 00:00:00 2001 From: Dan McGregor Date: Thu, 27 Feb 2025 16:18:23 -0600 Subject: [PATCH] machine-id-setup: bhyve also provides a uuid When using UEFI with bhyve it behaves similarly to qemu, and provides a product_uuid. Use it if found, just like with qemu. (cherry picked from commit 113c159ba9c4e8052ae162e12faba28b102a90d0) --- src/shared/machine-id-setup.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/shared/machine-id-setup.c b/src/shared/machine-id-setup.c index f5e1b9ee723..4c478c82bad 100644 --- a/src/shared/machine-id-setup.c +++ b/src/shared/machine-id-setup.c @@ -108,7 +108,7 @@ static int acquire_machine_id(const char *root, bool machine_id_from_firmware, s return 0; } - } else if (IN_SET(detect_vm(), VIRTUALIZATION_KVM, VIRTUALIZATION_AMAZON, VIRTUALIZATION_QEMU, VIRTUALIZATION_XEN) || machine_id_from_firmware) { + } else if (IN_SET(detect_vm(), VIRTUALIZATION_KVM, VIRTUALIZATION_AMAZON, VIRTUALIZATION_QEMU, VIRTUALIZATION_XEN, VIRTUALIZATION_BHYVE) || machine_id_from_firmware) { /* 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 -- 2.47.3