This repository has been archived by the owner on Sep 26, 2021. It is now read-only.
This repository has been archived by the owner on Sep 26, 2021. It is now read-only.
Error with pre-create check: "Hyper-V PowerShell Module is not available" #4342
Closed
Description
Version: 17.09.
Command:
docker-machine create -d hyperv --hyperv-virtual-switch "myswitch" name1
Running pre-create checks...
Error with pre-create check: "Hyper-V PowerShell Module is not available"
I found problem in: https://github.com/docker/machine/blob/master/drivers/hyperv/powershell.go
The reason for the problem is the Check is looking for Get-VM. If you have VMware PowerCLI installed it can happen that the test will find the VMware version of the Get-VM command. And this isn't correct and will fail.
The solution is to add the modulename to the Get-VM name.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Metadata
Assignees
Labels
No labels