Guest OS field is set to Microsoft MS-DOS on Red Hat satellite 6.5

Solution Verified - Updated -

Environment

  • Red Hat Satellite 6.5

Issue

  • Guest OS field is set to Microsoft MS-DOS while importing RHEL8 vm from satellite 6.5 compute resource using vcenter.

Resolution

  • This is a known issue filed in Bug 1713538 which is fixed in Satellite 6.6

  • Below is a workaround for satellite 6.5:

    # cd /opt/theforeman/tfm/root/usr/share/gems/gems/rbvmomi-1.10.0/
    
    # mv vmodl.db /tmp
    
    # wget https://github.com/vmware/rbvmomi/blob/master/vmodl.db?raw=true
    
    # restorecon -Rv .
    
    # vi /usr/share/foreman/app/models/compute_resources/foreman/model/vmware.rb
    "rhel7_64Guest" => "Red Hat Enterprise Linux 7 (64-bit)",
    "rhel7Guest" => "Red Hat Enterprise Linux 7 (32-bit)",
    "rhel8_64Guest" => "Red Hat Enterprise Linux 8 (64-bit)",   =======> Add this line below the "rhel7Guest" parameter.
    
    # systemctl restart httpd
    
    # echo 'pp RbVmomi::VIM::VirtualMachineGuestOsIdentifier.values' | foreman-rake console | grep rhel8    =======> This should now show the RHEL8 Guest OS per VMware setting.
    

Root Cause

  • Guest OS version identifier not updated in satellite 6.5 and RHEL8 is supported in VMware version 6.7 and above.

  • Guest OS version identifier needs to be updated according to vmware documentation in satellite 6.5.

This solution is part of Red Hat’s fast-track publication program, providing a huge library of solutions that Red Hat engineers have created while supporting our customers. To give you the knowledge you need the instant it becomes available, these articles may be presented in a raw and unedited form.