uyuni-project / virtual-host-gatherer

Script to gather information about virtual system running on different kind of hypervisors.
6 stars 13 forks source link

UUID of a virtual machine as shown by the dmidecode output does not match as reported by the virtual-host-gatherer #19

Closed mbelur closed 2 years ago

mbelur commented 2 years ago

UUID of a virtual machine as shown by the dmidecode output does not match as reported by the virtual-host-gatherer for hardware versions >=13 in VMWare environment.

On a virtual machine with hardware version 13:

localhost:~ # dmidecode -u -t1
# dmidecode 3.2
Getting SMBIOS data from sysfs.
SMBIOS 2.7 present.

Handle 0x0001, DMI type 1, 27 bytes
    Header and Data:
        01 1B 01 00 01 02 03 04 42 22 4E 1B F0 B3 BD 55
        39 C2 26 3F 38 60 83 6F 06 00 00
    Strings:
        56 4D 77 61 72 65 2C 20 49 6E 63 2E 00
        "VMware, Inc."
        56 4D 77 61 72 65 20 56 69 72 74 75 61 6C 20 50
        6C 61 74 66 6F 72 6D 00
        "VMware Virtual Platform"
        4E 6F 6E 65 00
        "None"
        56 4D 77 61 72 65 2D 34 32 20 32 32 20 34 65 20
        31 62 20 66 30 20 62 33 20 62 64 20 35 35 2D 33
        39 20 63 32 20 32 36 20 33 66 20 33 38 20 36 30
        20 38 33 20 36 66 00
        "VMware-42 22 4e 1b f0 b3 bd 55-39 c2 26 3f 38 60 83 6f"
localhost:~ # dmidecode -s system-uuid
1b4e2242-b3f0-55bd-39c2-263f3860836f
virtual-host-gatherer shows:
42224e1b-f0b3-bd55-39c2-263f3860836f

In SCC, you will see 1b4e2242-b3f0-55bd-39c2-263f3860836f for this system.

mbelur commented 2 years ago

Fixed in https://github.com/uyuni-project/virtual-host-gatherer/pull/20

meaksh commented 2 years ago

Thanks for contributing the fix @mbelur !

I'm closing this issue then :+1: