Skip to content

netbox platform not matching the VM host platform #429

Description

@cbrassel

Hi,
the syncing process maps the vsphere "Guest Info" to the netbox "platform" field. But the Guest Info does not reflect the real operating system installed on the VM, but (I think) only the Os choice made at the creation of the VM.
Looking into vsphere vm settings They are some interesting setting like guestInfo.detailed.data that contains for linux hosts :
architecture='X86' bitness='64' distroAddlVersion='24.04.1 LTS (Noble Numbat)' distroName='Ubuntu' distroVersion='24.04' familyName='Linux' kernelVersion='6.8.0-49-generic' prettyName='Ubuntu 24.04.1 LTS'
or for a windows host :
architecture='X86' bitness='64' buildNumber='20348' distroName='Windows' distroVersion='10.0' familyName='Windows' kernelVersion='20348.2849' prettyName='Windows Server 2022, 64-bit (Build 20348.2849)'
What would be nice is to extract at least the prettyName from this setting and inject it into the platform field of netbox.

is it feasible to set this up?

Regard's
Claude

Metadata

Metadata

Assignees

No one assigned

    Labels

    awaiting replyAwaiting reply from issue ownerenhancementNew feature or request

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions