"Powershell Module Unavailable" error trying to connect to minikube

3/22/2018

This is the error am getting, please help me anyone.

Error starting host: Error creating host: Error executing step: Running pre create checks.
: Hyper-V PowerShell Module is not available

-- Manojkumar J
containers
kubectl
kubernetes
minikube
powershell

1 Answer

3/22/2018

I confirm issue. Looking at code: powershell.go in recent minikube

func hypervAvailable() error {
    stdout, err := cmdOut("@(Get-Command hyper-v\\Get-VM).ModuleName")
    if err != nil {
        return err
    }

    resp := parseLines(stdout)
    if resp[0] != "Hyper-V" {
        return ErrNotInstalled
    }

    return nil
}

and simple check on my box gives

C:\Users\slavko> (Get-Command hyper-v\Get-VM).ModuleName
hyper-v

So that check is quite silly, as that check in Go is case sensitive.

UPD: Code above is fixed 10 hrs ago. Check 0.25.2

-- Voronenko
Source: StackOverflow