Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

netbox platform not matching the VM host platform #429

Open
cbrassel opened this issue Dec 13, 2024 · 2 comments
Open

netbox platform not matching the VM host platform #429

cbrassel opened this issue Dec 13, 2024 · 2 comments

Comments

@cbrassel
Copy link

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

@bb-Ricardo
Copy link
Owner

Hi,

This is very interesting and I need to have a look into it. This is exposed to vCenter via the guest tools?

@cbrassel
Copy link
Author

Hi,
yes, from my understanding by default open-vm-tools pass the details of the operating system to vcenter.
But it seem's to be only the case for recent open-vm-tools, when I say recent I mean that ubuntu 12 open-vm-tools or windows 2008 vmtools return the null value.
To give you a better idea I have extracted all the guestInfo.detailed.data from our vcenter in the following list.
guest_info_data.txt
Regard's
Claude

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants