All Collections
Knowledge Base
Enterprise Workloads
Troubleshooting - Enterprise Workloads
Unable to discovery Hyper-V VMs due to English package not installed
Unable to discovery Hyper-V VMs due to English package not installed
Updated over a week ago

Problem description

This issue occurs when the OS is running on any other language apart from English.

Cause

English language package not installed and configured.

Traceback

[2023-06-02 15:55:51,657] [ERROR] Error in fetching os version
[2023-06-02 15:55:51,657] [ERROR] Error <type 'exceptions.AttributeError'>:'NoneType' object has no attribute 'strip'. Traceback -Traceback (most recent call last):
File "roboLib\roboUtils.pyc", line 312, in os_version_recheck
AttributeError: 'NoneType' object has no attribute 'strip'
[2023-06-02 15:55:54,401] [INFO] current_os is set to Windows-10-10.0.20348, systeminfo contents are
Nom de l'h鍍e: VMNAME
Nom du syst確e d'exploitation: Microsoft Windows Server 2022 Datacenter
Version du syst確e: 10.0.20348 N/A version 20348

Resolution

  • To list the languages installed, we can run below command :

    • dism /Online /Get-Intl
  • Download the Language pack iso compatible with windows server 2022 from Microsoft Volume Licensing Site or Microsoft OEM or Microsoft partner site - Refer section " Get language packs and LXPs "

  • Copy the following cab files from the iso to an empty directory on windows server:

    • Microsoft-Windows-Server-Language-Pack_x64_en-us.cab

    • Microsoft-Windows-LanguageFeatures-Basic-en-us-Package~31bf3856ad364e35~amd64~~.cab

    • Microsoft-Windows-UserExperience-Desktop-Package~31bf3856ad364e35~amd64~~.cab

    • Note that the package name(version) could be different depending on the iso downloaded.

  • Install the package in the same order as listed above. Run following command to install the package

    • dism /Online /Add-Package /PackagePath:"PATH\TO\CAB"

  • Restart the server once all three packages are installed.

    • Run following commands :

      • chcp 437

      • Set-WinSystemLocale en-US

      • Set-WinUserLanguageList en-US -Force

  • Open System configuration. Command - SConfig

    • SConfig menu → Date and Time → Change Date and Time → Change Calendar Settings → Administrative tab → Change System Locale to US - English
  • Restart the server again

See also

Did this answer your question?