-
Notifications
You must be signed in to change notification settings - Fork 2k
Getting Docker-Machine Running On Windows with Hyper-v Waiting for host to start.... #3832
Comments
I'm having the exact same issue --' the machine is running and accessible though when checking it in the hyper v manager, but it appears the docker script is not picking up on that When enabling debug mode it appears to be stuck on
^^ that command |
I have the same issue after updating to latest version of Docker Toolbox (Windows). EDIT: It could be related with that I'm currently using WLAN unlike ethernet before. I will check tomorrow. EDIT2: Yes. Works fine when connected with ethernet connection (Hyper V external switch). |
I have run into the same problem - does anybody have solution for that trouble? |
@vvucetic Ditto to that--using th ethernet adapter instead of WLAN for now worked around this for me. Correction: I got everything working on my WLAN adapter--after a bit more research a few things actually needed to be done. I had to disable IPv6 support on the adapter first (sadly, though I wasn't using it at the moment) and also had to make sure to disable the VirtualBox Bridged Networking driver. Then everything worked, and my VM was assigned an IPv4 address. |
I have the same problem and found out I choose a wrong network card creating virtual switch. I am using WLAN, everything works fine after I change external network to Wireless card. |
Running into this issue while learning docker from the tutorial at https://docs.docker.com/get-started/part4/#create-a-cluster. |
I had the same problem. VMs are created, powered up and running, but docker-machine hangs at It turned out that I had chosen the wrong Ethernet Adapter while creating the virtual switch (Supermicro mobo, with several NICs). Once changed, |
This can also happen if you have Docker for Windows installed, which creates the DockerNAT virtual switch in Hyper-V (which is internal only). Then you might use docker-machine to create a VM, which ends up using that virtual switch by default. So to fix, be sure you've created a new switch first, and then use that one when creating docker machines.
|
C:\Users\Admin.WSD027>docker-machine create --driver hyperv vm |
@dhan2vijay Can you see the instance being spun up in Hyper-V? If so, can you then SSH to it using a client such as PuTTY? |
This happens to me too. It hangs on "Waiting for host to start", is there a log file or something? |
@indranil-chakraborty yes i checked that but i cant access that |
@dhan2vijay, you can access it by Hyper-v Manager. |
I did create a special switch just for that. What procedure did you use through hyper-v manager? Do you mean spinning up the console on the VM from there? |
Yes, you can connect to VM in hyper-v manager, double click VM in VM list. https://technet.microsoft.com/en-us/library/cc742407(v=ws.11).aspx |
Make sure vmswitch is external |
I had same issue but resolved by selecting "Intel(R) Ethernet Connection" from the drop down menu of the External network. Follow the instructions here But make sure you select the Ethernet Connection option from the drop down menu of the External network |
Go to "network and sharing center"->"change adapter settings" and select the "Network bridge"adapter created by Hyper-v when setting the external network switch. Set "Internet Protocol Version (TCP/IPv4)" under "Network bridge" properties. Mine was unset. That's all. |
Restarting docker or creating new switch works for me. |
I also encountered this issue, and fixed it, I think the root cause is: the document is unclear. |
Excellent contribution @timothy2005 I've been struggling with this and the graphic really pointed me in the right direction. I've tried various things, I couldn't get it to use the main ethernet connection (red cross) but as soon as I got my Wifi adapter working properly (and disabled VirtualBox adapters along the way) problem solved. |
It works with internal virtual switch if NAT configured, because NAT gives IP to boot2docker over dhcp. |
Make sure to use external network in creating virtual switch with enable ethernet otherwise it will remain in Waiting for host to start..... Once that works then you need to open firewall to connect through..... |
this worked for me , thanks @timothy2005 |
I am having trouble getting my docker-machine to create and run a new box. I have followed the directions on installing docker and manually setting up a switch with hyperv using these docs :
https://docs.docker.com/machine/drivers/hyper-v/
C:\WINDOWS\system32>docker-machine create -d hyperv --hyperv-virtual-switch "Virtual Switch Main" manager1
Running pre-create checks...
Creating machine...
(manager1) Copying C:\Users\Spartan.docker\machine\cache\boot2docker.iso to C:\Users\Spartan.docker\machine\machines\manager1\boot2docker.iso...
(manager1) Creating SSH key...
(manager1) Creating VM...
(manager1) Using switch "Virtual Switch Main"
(manager1) Creating VHD
(manager1) Starting VM...
(manager1) Waiting for host to start...
And it hangs there forever.... :( If any of you have suggestions on how to get it working from here that would be amazing!
When I run docker-machine ls
C:\WINDOWS\system32>docker-machine ls
NAME ACTIVE DRIVER STATE URL SWARM DOCKER ERRORS
manager1 * hyperv Running Unknown IP not found
tensor * hyperv Running Unknown IP not found
C:\WINDOWS\system32>docker --version
Docker version 1.12.1, build 23cf638
C:\WINDOWS\system32>docker-machine --version
docker-machine version 0.8.1, build 41b3b25
run as administrator too
The text was updated successfully, but these errors were encountered: