Install-AksHci fails on latest server 2022 in powershell and windows admin center

keith siilats 1 Reputation point
2021-11-04T21:00:11.99+00:00

Hi in Powershell following step 5
https://learn.microsoft.com/en-us/azure-stack/aks-hci/kubernetes-walkthrough-powershell
senthiPS C:\Users\Administrator> Install-AksHci
VERBOSE: [11/04/2021 16:13:54] [Kva] Uninstalling KVA without Azure Connection may result in leaked Arc Connected
Clusters, Please clean up resources in portal.
create --configfile "f:\clusterstorage\volume1\ImageStore\1.0.5.11028\yaml\appliance.yaml" --outfile
"f:\clusterstorage\volume1\ImageStore\1.0.5.11028\kubeconfig-mgmt" --azure-creds-stdin returned a non zero exit code
1 [Error: unable to reconcile group: rpc error: code = Unavailable desc = connection closed]
At C:\Program Files\WindowsPowerShell\Modules\Kva\1.0.13\Kva.psm1:3629 char:9

  • throw "$command $arguments returned a non zero exit code $LAS ...

And If i follow the Windows Administrator version on installing aks-hci i get:
ErrorWe cannot display the changes right now.: The following commands are already available on this system:'Find-Package,Install-Package,Uninstall-Package'. This module 'PackageManagement' may override the existing commands. If you still want to install this module 'PackageManagement', use -AllowClobber parameter.

I ran this command successfully:
Install-Module -Name PackageManagement -Repository PSGallery -AllowClobber

can you push maybe new version of the windows admin center that has a checkbox to add AllowClobber?
or tell me how i can remove Find-Package,Install-Package,Uninstall-Package

Thank you!

Azure Stack HCI
Azure Stack HCI
A hyperconverged infrastructure operating system delivered as an Azure service that provides security, performance, and feature updates.
263 questions
Azure Kubernetes Service (AKS)
Azure Kubernetes Service (AKS)
An Azure service that provides serverless Kubernetes, an integrated continuous integration and continuous delivery experience, and enterprise-grade security and governance.
1,849 questions
0 comments No comments
{count} votes

8 answers

Sort by: Most helpful
  1. MattMcSpirit-MSFT 561 Reputation points
    2021-11-05T15:49:06.227+00:00

    Hi - thanks for raising this issue - could you please provide a bit more info about your environment?

    • Your Windows Server 2022 machine - is this a standalone machine that you're using to deploy AKS-HCI against a remote Azure Stack HCI cluster or
    • Is the Windows Server 2022 machine a standalone machine with Hyper-V enabled, and you're trying to deploy AKS-HCI on that machine?
    • Is the Windows Server 2022 machine part of a WS 2022 cluster, with shared storage, and you're trying to deploy on there?
    • Is there any proxy/firewall controlling outbound access from your system to Azure/internet resources?
    • Is this physical or nested?
    • Are you using the latest WAC version (2110) and AKS-HCI extension (1.117.0 or 1.119.0 depending on WAC version)?

    Thanks!
    Matt

    1 person found this answer helpful.
    0 comments No comments

  2. Keith Siilats 1 Reputation point
    2021-11-10T14:55:06.197+00:00

    Is the Windows Server 2022 machine a standalone machine with Hyper-V enabled, and you're trying to deploy AKS-HCI on that machine?
    this one

    Is there any proxy/firewall controlling outbound access from your system to Azure/internet resources?
    No, its a simple name clash in windows administrator, it tries to install the package but doesnt add AllowClobber

    Is this physical or nested?
    Physical

    Are you using the latest WAC version (2110) and AKS-HCI extension (1.117.0 or 1.119.0 depending on WAC version)?
    Yes

    0 comments No comments

  3. Keith Siilats 1 Reputation point
    2021-11-10T15:00:36.49+00:00

    Name Value


    PSVersion 5.1.22483.1000
    PSEdition Desktop
    PSCompatibleVersions {1.0, 2.0, 3.0, 4.0...}
    BuildVersion 10.0.22483.1000
    CLRVersion 4.0.30319.42000
    WSManStackVersion 3.0
    PSRemotingProtocolVersion 2.3
    SerializationVersion 1.1.0.1

    0 comments No comments

  4. MattMcSpirit-MSFT 561 Reputation points
    2021-11-10T18:12:24.147+00:00

    Thanks for this extra information.

    Please could you describe your physical Windows Server 2022 environment a little more? The reason I ask is, Windows Admin Center doesn't normally need to ask to use the -AllowClobber flag, so something else must be causing this. Putting Windows Admin Center to one side for a moment, that doesn't explain why you can't successfully deploy with PowerShell.

    • Is it domain joined or in a workgroup?
    • Your storage path above shows: **f:\clusterstorage\volume1**ImageStore\1.0.5.11028\kubeconfig-mgmt - :\ClusterStorage\Volume# is typically found when deploying Cluster Shared Volumes, as part of a Windows Server Cluster, but you stated above that your system is a single physical node - could you please clarify?
    • Could you run Import-Module AksHci and then Get-Command -Module AksHci and let us know the version that is returned? Should be 1.1.14 or newer.

    Also, in terms of Azure:

    Thanks,
    Matt

    0 comments No comments

  5. keith siilats 1 Reputation point
    2021-11-13T17:36:30.37+00:00

    Thank you very much. Its a simple Dell R630 with the latest vnext installed clean with 200GB of ram. I have F drive for the SSD raid and I made a folder clusterstorage there based on the AKS tutorial. Raid is 6 2TB SSD drives in RAID5 on the standard Dell storage controller.

    There is no domain, no workgroup.

    Command returned:
    CommandType Name Version Source


    Alias Initialize-AksHciNode 1.1.14 AksHci
    Function Add-AksHciGMSACredentialSpec 1.1.14 AksHci
    Function Add-AksHciNode 1.1.14 AksHci
    Function Disable-AksHciArcConnection 1.1.14 AksHci
    Function Disable-AksHciPreview 1.1.14 AksHci
    Function Enable-AksHciArcConnection 1.1.14 AksHci
    Function Enable-AksHciPreview 1.1.14 AksHci
    Function Get-AksHciBillingStatus 1.1.14 AksHci
    Function Get-AksHciCluster 1.1.14 AksHci
    Function Get-AksHciClusterNetwork 1.1.14 AksHci
    Function Get-AksHciClusterUpdates 1.1.14 AksHci
    Function Get-AksHciConfig 1.1.14 AksHci
    Function Get-AksHciCredential 1.1.14 AksHci
    Function Get-AksHciEventLog 1.1.14 AksHci
    Function Get-AksHciKubernetesVersion 1.1.14 AksHci
    Function Get-AksHciLogs 1.1.14 AksHci
    Function Get-AksHciNodePool 1.1.14 AksHci
    Function Get-AksHciProxySetting 1.1.14 AksHci
    Function Get-AksHciRegistration 1.1.14 AksHci
    Function Get-AksHciStorageContainer 1.1.14 AksHci
    Function Get-AksHciUpdates 1.1.14 AksHci
    Function Get-AksHciVersion 1.1.14 AksHci
    Function Get-AksHciVmSize 1.1.14 AksHci
    Function Install-AksHci 1.1.14 AksHci
    Function Install-AksHciAdAuth 1.1.14 AksHci
    Function Install-AksHciCsiNfs 1.1.14 AksHci
    Function Install-AksHciCsiSmb 1.1.14 AksHci
    Function Install-AksHciGMSAWebhook 1.1.14 AksHci
    Function Install-AksHciMonitoring 1.1.14 AksHci
    Function New-AksHciCluster 1.1.14 AksHci
    Function New-AksHciClusterNetwork 1.1.14 AksHci
    Function New-AksHciContainerRegistry 1.1.14 AksHci
    Function New-AksHciNetworkSetting 1.1.14 AksHci
    Function New-AksHciNodePool 1.1.14 AksHci
    Function New-AksHciProxySetting 1.1.14 AksHci
    Function New-AksHciStorageContainer 1.1.14 AksHci
    Function Remove-AksHciCluster 1.1.14 AksHci
    Function Remove-AksHciClusterNetwork 1.1.14 AksHci
    Function Remove-AksHciGMSACredentialSpec 1.1.14 AksHci
    Function Remove-AksHciNode 1.1.14 AksHci
    Function Remove-AksHciNodePool 1.1.14 AksHci
    Function Repair-AksHciCerts 1.1.14 AksHci
    Function Repair-AksHciClusterCerts 1.1.14 AksHci
    Function Restart-AksHci 1.1.14 AksHci
    Function Set-AksHciCluster 1.1.14 AksHci
    Function Set-AksHciConfig 1.1.14 AksHci
    Function Set-AksHciNodePool 1.1.14 AksHci
    Function Set-AksHciRegistration 1.1.14 AksHci
    Function Sync-AksHciBilling 1.1.14 AksHci
    Function Uninstall-AksHci 1.1.14 AksHci
    Function Uninstall-AksHciAdAuth 1.1.14 AksHci
    Function Uninstall-AksHciCsiNfs 1.1.14 AksHci
    Function Uninstall-AksHciCsiSmb 1.1.14 AksHci
    Function Uninstall-AksHciGMSAWebhook 1.1.14 AksHci
    Function Uninstall-AksHciMonitoring 1.1.14 AksHci
    Function Update-AksHci 1.1.14 AksHci
    Function Update-AksHciCluster 1.1.14 AksHci

    0 comments No comments