docker / machine

Machine management for a container-centric world
https://docs.docker.com/machine/
Apache License 2.0
6.63k stars 1.97k forks source link

docker-machine create fails on windows #3865

Open eldakms opened 8 years ago

eldakms commented 8 years ago

Hi,

I'm using the latest docker on Windows 10 Enterprise (build 14393). docker-machine version is 0.8.2, build e18a919.

When I try to create a docker machine with external virtual switching i'm getting the following error:

C:\windows\system32>docker-machine create --driver hyperv --hyperv-virtual-switch "Test" mytestmachine Running pre-create checks... Creating machine... (mytestmachine) Copying C:\Users\eldak.docker\machine\cache\boot2docker.iso to C:\Users\eldak.docker\machine\machines\ mytestmachine\boot2docker.iso... (mytestmachine) Creating SSH key... (mytestmachine) Creating VM... (mytestmachine) Using switch "Test" (mytestmachine) Creating VHD (mytestmachine) Starting VM... Error creating machine: Error in driver during machine creation: exit status 1

Any help or possible path of the more detailed log file is highly appreciated. Thanks!

shincha3517 commented 7 years ago

I got that issue before with not enough memory to start new machine. After you get that error, you can open Hyper-v manager to start that machine manually.

q587p commented 6 years ago

Duplicate https://github.com/docker/machine/issues/2267

AlexAndrascu commented 6 years ago

Firstly I don't know alot about the docker-machine codebase yet. But maybe this can be handled at the notification layer? Maybe we just need to handle it more gracefully? Like changing the message to something more friendly i.e. "Can't allocate memory" ?