Project

General

Profile

Actions

Bug #36023

closed

VMWare Guest OS list is outdated

Added by Alexander Olofsson over 1 year ago. Updated about 2 months ago.

Status:
Closed
Priority:
Normal
Assignee:
-
Category:
Compute resources - VMware
Target version:
Difficulty:
Triaged:
No
Fixed in Releases:
Found in Releases:

Description

We've started deploying Windows Server 2022 VMs on our VMWare cluster now, an OS that is not included in the Foreman Guest OS list - even in the latest commits of the develop branch.
When such a host is cloned, things break in all manner of horrible and hilarious ways - it ends up defaulting to MS-DOS and munging device configuration based on that.

An updated list turns out to be difficult to come by without a working VMWare setup, but we were able to use the steps in https://communities.vmware.com/t5/VMware-PowerCLI-Discussions/How-to-get-all-VirtualMachineGuestOsIdentifier-over-PowerCLI/m-p/1397700/highlight/true#M45704 to generate a list that's up-to-date with vSphere 7.0U3
The resulting (CSV-encoded) list has been attached for now, hopefully I'll have time to write up a proper patch as well once time allows.


Files

vmware_os.csv vmware_os.csv 6.82 KB Current OS list as of vSphere 7.0U3i (build 20845200) Alexander Olofsson, 01/31/2023 02:22 PM

Related issues 1 (0 open1 closed)

Has duplicate Foreman - Bug #35766: Windows Server 2019 not selectable as VSphere Guest OSDuplicateActions
Actions #1

Updated by Ewoud Kohl van Wijngaarden over 1 year ago

I think the version is relevant. We just updated to fog-vsphere 3.6 which switched from rbvmomi to rbvmomi2, but that's only in nightly. You do mention develop, but can you also verify rbvmomi2 is used? I believe that uses the vmodl.db file to provide the definitions.

Actions #2

Updated by Alexander Olofsson about 1 year ago

The mapping list for OS versions that this updated list relates to is still hardcoded in Foreman code - a.k.a. https://github.com/theforeman/foreman/blob/develop/app/models/compute_resources/foreman/model/vmware.rb#L232-L398
Not sure if it's possible to generate it, since the upstream documentation fails to do so for any vSphere newer than 6.7, but getting the descriptions off of a running cluster proved doable.

It's likely that an updated vmodl.db will help as well in regards to the cloning issues, but I've not been able to actually test that yet. I might be able to look at further tests on our local systems some time next month, but until then the updated description mapping remains attached here.

Actions #3

Updated by Ewoud Kohl van Wijngaarden about 1 year ago

  • Has duplicate Bug #35766: Windows Server 2019 not selectable as VSphere Guest OS added
Actions #4

Updated by Ewoud Kohl van Wijngaarden about 1 year ago

  • Found in Releases 3.2.2, 3.5.0 added
Actions #5

Updated by The Foreman Bot about 2 months ago

  • Status changed from New to Ready For Testing
  • Pull request https://github.com/theforeman/foreman/pull/10092 added
Actions #6

Updated by The Foreman Bot about 2 months ago

  • Fixed in Releases 3.11.0 added
Actions #7

Updated by Ewoud Kohl van Wijngaarden about 2 months ago

  • Target version set to 3.11.0
Actions #8

Updated by Anonymous about 2 months ago

  • Status changed from Ready For Testing to Closed
Actions

Also available in: Atom PDF