VM UUID via dmidecode does not match VM ID in xen-orchestra
-
@dinhngtu Updated through xo. These are the current values.
mellanox-mlnxen.x86_64 5.9_0.5.5.0-2.1.xcpng8.3 @xcp:main/$releasever python2-xapi-storage.x86_64 24.19.2-1.10.xcpng8.3 @xcp-ng-updates xapi-core.x86_64 25.6.0-1.9.xcpng8.3 @xcp-ng-updates xapi-nbd.x86_64 25.6.0-1.9.xcpng8.3 @xcp-ng-updates xapi-rrd2csv.x86_64 25.6.0-1.9.xcpng8.3 @xcp-ng-updates xapi-storage-script.x86_64 25.6.0-1.9.xcpng8.3 @xcp-ng-updates xapi-tests.x86_64 25.6.0-1.9.xcpng8.3 @xcp-ng-updates xapi-xe.x86_64 25.6.0-1.9.xcpng8.3 @xcp-ng-updates xcp-ng-xapi-plugins.noarch 1.12.0-1.xcpng8.3 @xcp-ng-updates xen-crashdump-analyser.x86_64 2.6.1-1.xcpng8.3 @xcp:main/$releasever xen-dom0-libs.x86_64 4.17.5-15.1.xcpng8.3 @xcp-ng-updates xen-dom0-tools.x86_64 4.17.5-15.1.xcpng8.3 @xcp-ng-updates xen-hypervisor.x86_64 4.17.5-15.1.xcpng8.3 @xcp-ng-updates xen-libs.x86_64 4.17.5-15.1.xcpng8.3 @xcp-ng-updates xen-tools.x86_64 4.17.5-15.1.xcpng8.3 @xcp-ng-updates xengt-userspace.noarch 4.0.0-1.xcpng8.3 @xcp:main/$releasever xenopsd.x86_64 25.6.0-1.9.xcpng8.3 @xcp-ng-updates xenopsd-cli.x86_64 25.6.0-1.9.xcpng8.3 @xcp-ng-updates xenopsd-xc.x86_64 25.6.0-1.9.xcpng8.3 @xcp-ng-updates xenserver-dracut.noarch 10-2.xcpng8.3 @xcp:main/$releasever xenserver-hwdata.noarch 20240411-1.xcpng8.3 @xcp:main/$releasever xenserver-status-report.noarch 2.0.11-1.xcpng8.3 @xcp-ng-updates
Gave one of the VMs a reboot and got the same result as previous.
Full DMI Decode as requested @TeddyAstie
# dmidecode # dmidecode 3.5 Getting SMBIOS data from sysfs. SMBIOS 2.8 present. 19 structures occupying 691 bytes. Table at 0xEE6FC000. Handle 0x0000, DMI type 0, 24 bytes BIOS Information Vendor: Xen Version: 4.17 Release Date: 07/10/2025 Address: 0xE8000 Runtime Size: 96 kB ROM Size: 64 kB Characteristics: PCI is supported EDD is supported Targeted content distribution is supported BIOS Revision: 4.17 Handle 0x0100, DMI type 1, 27 bytes System Information Manufacturer: Xen Product Name: HVM domU Version: 4.17 Serial Number: 0b08f477-491a-a982-23c4-d224723624ea UUID: 77f4080b-1a49-82a9-23c4-d224723624ea Wake-up Type: Power Switch SKU Number: Not Specified Family: Not Specified Handle 0x0300, DMI type 3, 21 bytes Chassis Information Manufacturer: Xen Type: Other Lock: Not Present Version: Not Specified Serial Number: Not Specified Asset Tag: Not Specified Boot-up State: Safe Power Supply State: Safe Thermal State: Safe Security Status: Unknown OEM Information: 0x00000000 Height: Unspecified Number Of Power Cords: Unspecified Contained Elements: 0 Handle 0x0401, DMI type 4, 35 bytes Processor Information Socket Designation: CPU 1 Type: Central Processor Family: Other Manufacturer: Intel ID: F1 06 04 00 FF FB CB 0F Version: Not Specified Voltage: Unknown External Clock: Unknown Max Speed: 2100 MHz Current Speed: 2100 MHz Status: Populated, Enabled Upgrade: Other L1 Cache Handle: Not Provided L2 Cache Handle: Not Provided L3 Cache Handle: Not Provided Serial Number: Not Specified Asset Tag: Not Specified Part Number: Not Specified Handle 0x0402, DMI type 4, 35 bytes Processor Information Socket Designation: CPU 2 Type: Central Processor Family: Other Manufacturer: Intel ID: F1 06 04 00 FF FB CB 0F Version: Not Specified Voltage: Unknown External Clock: Unknown Max Speed: 2100 MHz Current Speed: 2100 MHz Status: Populated, Enabled Upgrade: Other L1 Cache Handle: Not Provided L2 Cache Handle: Not Provided L3 Cache Handle: Not Provided Serial Number: Not Specified Asset Tag: Not Specified Part Number: Not Specified Handle 0x0403, DMI type 4, 35 bytes Processor Information Socket Designation: CPU 3 Type: Central Processor Family: Other Manufacturer: Intel ID: F1 06 04 00 FF FB CB 0F Version: Not Specified Voltage: Unknown External Clock: Unknown Max Speed: 2100 MHz Current Speed: 2100 MHz Status: Populated, Enabled Upgrade: Other L1 Cache Handle: Not Provided L2 Cache Handle: Not Provided L3 Cache Handle: Not Provided Serial Number: Not Specified Asset Tag: Not Specified Part Number: Not Specified Handle 0x0404, DMI type 4, 35 bytes Processor Information Socket Designation: CPU 4 Type: Central Processor Family: Other Manufacturer: Intel ID: F1 06 04 00 FF FB CB 0F Version: Not Specified Voltage: Unknown External Clock: Unknown Max Speed: 2100 MHz Current Speed: 2100 MHz Status: Populated, Enabled Upgrade: Other L1 Cache Handle: Not Provided L2 Cache Handle: Not Provided L3 Cache Handle: Not Provided Serial Number: Not Specified Asset Tag: Not Specified Part Number: Not Specified Handle 0x0405, DMI type 4, 35 bytes Processor Information Socket Designation: CPU 5 Type: Central Processor Family: Other Manufacturer: Intel ID: F1 06 04 00 FF FB CB 0F Version: Not Specified Voltage: Unknown External Clock: Unknown Max Speed: 2100 MHz Current Speed: 2100 MHz Status: Populated, Enabled Upgrade: Other L1 Cache Handle: Not Provided L2 Cache Handle: Not Provided L3 Cache Handle: Not Provided Serial Number: Not Specified Asset Tag: Not Specified Part Number: Not Specified Handle 0x0406, DMI type 4, 35 bytes Processor Information Socket Designation: CPU 6 Type: Central Processor Family: Other Manufacturer: Intel ID: F1 06 04 00 FF FB CB 0F Version: Not Specified Voltage: Unknown External Clock: Unknown Max Speed: 2100 MHz Current Speed: 2100 MHz Status: Populated, Enabled Upgrade: Other L1 Cache Handle: Not Provided L2 Cache Handle: Not Provided L3 Cache Handle: Not Provided Serial Number: Not Specified Asset Tag: Not Specified Part Number: Not Specified Handle 0x0B00, DMI type 11, 5 bytes OEM Strings String 1: Xen String 2: MS_VM_CERT/SHA1/bdbeb6e0a816d43fa6d3fe8aaef04c2bad9d3e3d Handle 0x1000, DMI type 16, 15 bytes Physical Memory Array Location: Other Use: System Memory Error Correction Type: Multi-bit ECC Maximum Capacity: 24568 MB Error Information Handle: Not Provided Number Of Devices: 2 Handle 0x1100, DMI type 17, 27 bytes Memory Device Array Handle: 0x1000 Error Information Handle: 0x0000 Total Width: 64 bits Data Width: 64 bits Size: 16 GB Form Factor: DIMM Set: None Locator: DIMM 0 Bank Locator: Not Specified Type: RAM Type Detail: None Speed: Unknown Manufacturer: Not Specified Serial Number: Not Specified Asset Tag: Not Specified Part Number: Not Specified Handle 0x1300, DMI type 19, 15 bytes Memory Array Mapped Address Starting Address: 0x00000000000 Ending Address: 0x003FFFFFFFF Range Size: 16 GB Physical Array Handle: 0x1000 Partition Width: 1 Handle 0x1400, DMI type 20, 19 bytes Memory Device Mapped Address Starting Address: 0x00000000000 Ending Address: 0x003FFFFFFFF Range Size: 16 GB Physical Device Handle: 0x1100 Memory Array Mapped Address Handle: 0x1300 Partition Row Position: 1 Handle 0x1101, DMI type 17, 27 bytes Memory Device Array Handle: 0x1000 Error Information Handle: 0x0000 Total Width: 64 bits Data Width: 64 bits Size: 8184 MB Form Factor: DIMM Set: None Locator: DIMM 1 Bank Locator: Not Specified Type: RAM Type Detail: None Speed: Unknown Manufacturer: Not Specified Serial Number: Not Specified Asset Tag: Not Specified Part Number: Not Specified Handle 0x1301, DMI type 19, 15 bytes Memory Array Mapped Address Starting Address: 0x00400000000 Ending Address: 0x005FF7FFFFF Range Size: 8184 MB Physical Array Handle: 0x1000 Partition Width: 1 Handle 0x1401, DMI type 20, 19 bytes Memory Device Mapped Address Starting Address: 0x00400000000 Ending Address: 0x005FF7FFFFF Range Size: 8184 MB Physical Device Handle: 0x1101 Memory Array Mapped Address Handle: 0x1301 Partition Row Position: 1 Handle 0x2000, DMI type 32, 11 bytes System Boot Information Status: No errors detected Handle 0xFEFF, DMI type 127, 4 bytes End Of Table
-
Out of curiosity, I dumped the DMI into a bin and opened it up in a hex editor.
I am seeing ASCII of the ID, but also a variant encoded in binary. In both cases, its formatted as
0b08f477-491a-a982-23c4-d224723624ea
.I believe the ASCII version is the one that gets populated into the serial number as it comes after ASCII encoded versions of the 3 lines above it in the decode.
-
@deefdragon said in VM UUID via dmidecode does not match VM ID in xen-orchestra:
Out of curiosity, I dumped the DMI into a bin and opened it up in a hex editor.
I am seeing ASCII of the ID, but also a variant encoded in binary. In both cases, its formatted as
0b08f477-491a-a982-23c4-d224723624ea
.I believe the ASCII version is the one that gets populated into the serial number as it comes after ASCII encoded versions of the 3 lines above it in the decode.
In SMBIOS 2.8, the UUID is supposed to be encoded in little endian (i.e Microsoft GUID). Yet it is put as big endian instead. So when Linux generates the UUID string from the SMBIOS table, it is considered as little endian which causes this mismatch.
SMBIOS 2.4 is supposed to be used (which appears to be using big endian UUIDs), but for some reason, something in XCP-ng UEFI supports forces it to be SMBIOS 2.8.
So the binary UUID is the same, just that it is interpreted with a different endianness due to accidental format change.