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

[Linux] Dynamically set expected guest id and full name for checking guest info #655

Merged
merged 2 commits into from
Dec 6, 2024

Conversation

keirazhang
Copy link
Contributor

Since more new guest ids were added in newer VMware Tools, which will be unmapped on older ESXi version servers. This fix dynamically looked for an exactly matched guest id or a closest guest id for the guest OS distribution.

If it doesn't find an exactly matched or closest guest if from ESXi supported guest ids list, then looking for a proper other Linux guest id according to its kernel version.

match_guest_id.yml will match an expected guest id based on guest short-name value in tools.conf or OS release info.
map_guest_id_to_fullname.yml will retrieve the guest full name in ESXi guest config options by guest id.

However, it still could have unmapped guest ids when a guest can be identified by newer VMware Tools but not recognized on an old ESXi server. In such case, this case will take it as expected. Expected unmapped guest ids are checked in check_unmapped_guest_id.yml

@keirazhang keirazhang added this to the 3.3 milestone Nov 28, 2024
Signed-off-by: Qi Zhang <[email protected]>
Copy link
Member

@Tomorrow9 Tomorrow9 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM, thanks!

@keirazhang keirazhang merged commit cebb483 into vmware:main Dec 6, 2024
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

Successfully merging this pull request may close these issues.

2 participants