-
Notifications
You must be signed in to change notification settings - Fork 2k
Error with pre-create check: "Hyper-V PowerShell Module is not available" #4342
Comments
Currently affected by this issue. Is there a workaround? |
Fix issue #4342 - PowerShell cmdlet name collision with VMware PowerCLI
Hmmm.. I´m getting the same error... but I have the PowerShell Module installed and have NO Vmware CLI installed.... Any ideas!? |
Okay... I think I´m affected from issue #4342 - differenct cause (docker for windows installed) |
Same issue here. I can run |
Same issue. This started happening after the upgrade from 17.x to 18.03.0-ce-win59 (16762). Get-VM is also working. Running Win 10 Pro version 1803 OS build 17128.1 docker-machine create -d hyperv --hyperv-virtual-switch "myswitch" myvm1 Get-VM MobyLinuxVM Running 0 2048 02:10:08.2950000 Operating normally 8.3 |
I now switched back to Virtualbox and removed Hyper-V completely. The whole network management of Hyper-V was a pain independent of the problems with docker-machine. |
... |
I would use a hyper-v linux instead using docker directly |
I'm using |
Trying to downgrade |
Dont know if its the same with minikube - but you cant successfully install docker with chocolatey. At least some weeks ago there was a bug in choco install routine |
is this problem fixed ? i still got the problem.
|
Please read this thread #4424 (comment) Download 32-bit or 64-bit version at https://github.com/docker/machine/releases/tag/v0.13.0 |
@kelvinnguyen2310 Holly Fk S !!!!!! YOU!!!! SAVED!!! MY!!!! LIFE!!!! |
docker-machine to v0.15.0 has fixed the issue. Thanks folks |
I'm still having this issue with docker-machine v0.15.0 |
Here is the solution
|
I got another error with 0.13 and 0.15 Then I switched from Linux Containers to Windows containers and resolved this issue |
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.
The text was updated successfully, but these errors were encountered: