Exit code of HPC Pack installer RRS feed

  • Question

  • I am trying to automate the installation of HPC Pack to set up a head node using PowerShell DSC.

    The following code succeeds but returns very quickly with exit code 10 from the process:

    Configuration TestHpcInstall
        Import-DscResource ModuleName PSDesiredStateConfiguration
        Node $AllNodes.Where({$_.Roles -contains 'HpcHeadNode'}).NodeName
            $HpcPackName = "Microsoft HPC Pack 2012 R2 Server Components"
            $HpcPackSourcePath = "C:\Temp\HPC2012R2_Update3_Full\setup.exe"
            $sqlServer = "EMEAWINQA15"
            $Arguments = "-unattend -headNode"
            Script TestInstall
                GetScript = {
                    return @{ "Result" = "$true"}
                TestScript = {
                    return $false
                SetScript = {
                    Write-Verbose "HpcPackSourcePath: $using:HpcPackSourcePath"
                    Write-Verbose "Arguments: $using:Arguments"
                    $startInfo = New-Object System.Diagnostics.ProcessStartInfo
                    $startInfo.FileName = $using:HpcPackSourcePath
                    $startInfo.Arguments = $using:Arguments
                    $process = New-Object System.Diagnostics.Process
                    $process.StartInfo = $startInfo
                    $exitcode = 0
                    $process.Start() | Out-Null
                       $exitCode = $process.ExitCode
                       Write-Verbose "Exit code: $exitCode"
    TestHpcInstall -ConfigurationData $configData -OutputPath "C:\Temp"
    Start-DscConfiguration -ComputerName "EMEAWINQA15" -Path "C:\Temp\" -Verbose -Wait -Force

    Strange this is, when I run just the process part locally (everything in the SetScript function above) it works fine. So I'm just confused: can anyone tell me what exit code 10 is from the HPC Pack setup.exe?


    Friday, October 14, 2016 7:42 AM

All replies

  • I don't know what exit code 10 is, but still I solved my problem: the installer runs under NT AUTHORITY\SYSTEM account by default. Using PsDscRunAsCredential property on the Package resource forced it to use a supplied credential which works. 
    Friday, October 14, 2016 11:52 AM
  • The exit code 10 is the rule check failure, HPC Pack 2012 R2 head node must be installed with domain user account.

    Why do you use the DSC to install head node? We have head node image in place and we have iaas deployment script for Azure classic model and ARM templates for Azure resource manager model to deploy an HPC cluster on Azure.

    • Edited by Sunbin Zhu Wednesday, October 19, 2016 1:38 AM
    Tuesday, October 18, 2016 1:26 AM