-
Notifications
You must be signed in to change notification settings - Fork 2k
Pre-create checks fail when creating a Hyper-V machine. PowerShell module is not available. #4441
Comments
I tried a workaround provided by @ramit-rulz: downgrade docker-machine and it did work for me, but only to uncover another issue down the road... "This machine has been allocated an IP address, but Docker Machine could not reach it successfully" |
@LeonardoMontano This error is because by default Hyper-V allocates only IPv6 IP. For IPv4, you need to create External Network Switch Try creating new docker machine using this command - |
@LeonardoMontano and @samirsyed, thank you very much! It worked. Couldn't figure out how to find the older version on my own. |
Reopening because the underlying issue still exists. Was able to work-around with above suggestion. |
Thank you @samirsyed Yes, I create an external switch and I still get the error. More details on issue #4440 |
Here is the solution
|
Im getting this error even after downloading the file specified. PS C:\Repos\DockerGetStarted> docker-machine create -d hyperv --hyperv-virtual-switch "myswitch" myvm1
|
You need to create vswitch in Hyper-V Manager (you can find it by search in you OS). As example, watch this video https://www.youtube.com/watch?v=cGlrw4P-VUQ |
I have verified multiple times that the PowerShell management module is installed.
Currently working with:
Version 18.03.0-ce-win59 (16762)
Channel: stable
d70d80d
I may uninstall and try a previous version.
PS C:\WINDOWS\system32> docker-machine create -d hyperv --hyperv-memory 4096 default
Running pre-create checks...
Error with pre-create check: "Hyper-V PowerShell Module is not available"
The text was updated successfully, but these errors were encountered: