Docker can't connect and "MobyLinuxVM" shows only a black screen

Expected behavior

VM boots and Docker can connect to it

Actual behavior

Docker says the VM failed to boot and that it can’t get an IP

Information

[04:48:34.834][Program ][Info ] Version 1.11.1-beta11 (build: 2789)
[04:48:34.840][Program ][Info ] Starting on: 5/14/2016 4:48:34 AM
[04:48:34.845][Program ][Info ] Resources: C:\Program Files\Docker\Docker\Resources
[04:48:34.851][Program ][Info ] OS: Windows 10 Pro Insider Preview
[04:48:34.855][Program ][Info ] Edition: Professional
[04:48:34.860][Program ][Info ] Id: 1511
[04:48:34.865][Program ][Info ] Build: 14332
[04:48:34.872][Program ][Info ] BuildLabName: 14332.1001.amd64fre.rs1_release.160422-1940
[04:48:34.889][Program ][Info ] Mixpanel Id: D35E03C2-E5C5-44FB-BD09-827EBD6FCCF3
[04:48:34.895][Program ][Info ] Sha1: b0bc231ec0337a84cc1ce50f51df77f9b0f5c993
[04:48:34.900][Program ][Info ] You can send feedback, including this log file, at https://forums.docker.com/c/docker-for-windows
[04:48:35.250][Mixpanel ][Info ] Tracking: appLaunched
[04:48:38.913][Mixpanel ][Info ] Tracking: heartbeat
[04:48:38.952][BackendServer ][Info ] Started
[04:48:39.132][NamedPipeClient][Info ] Sending Version()…
[04:48:39.147][NamedPipeServer][Info ] Version()
[04:48:39.153][NamedPipeServer][Info ] Version done.
[04:48:39.160][NamedPipeClient][Info ] Received response for Version: Version 1.11.1-beta11 (build: 2789)
[04:48:39.166][NamedPipeClient][Info ] Sending CheckInstallation()…
[04:48:39.173][NamedPipeServer][Info ] CheckInstallation()
[04:48:39.181][HyperV ][Info ] Check Hyper-V Windows optional feature
[04:48:39.190][PowerShell ][Info ] Run script…
[04:48:42.463][HyperV ][Info ] Hyper-V Windows feature is enabled
[04:48:42.466][NamedPipeServer][Info ] CheckInstallation done.
[04:48:42.470][NamedPipeClient][Info ] Received response for CheckInstallation:
[04:48:42.474][NamedPipeClient][Info ] Sending CheckHyperVState()…
[04:48:42.477][NamedPipeServer][Info ] CheckHyperVState()
[04:48:42.481][HyperV ][Info ] Check Hyper-V Service State
[04:48:42.491][PowerShell ][Info ] Run script with parameters: -Check True…
[04:48:50.364][HyperV ][Info ] Hyper-V is running and responding
[04:48:50.372][HyperV ][Info ] Hyper-V is running
[04:48:50.377][NamedPipeServer][Info ] CheckHyperVState done.
[04:48:50.382][NamedPipeClient][Info ] Received response for CheckHyperVState:
[04:48:50.724][Authentication ][Info ] Checking token
[04:48:50.801][Authentication ][Info ] Token is valid
[04:48:50.957][Notifications ][Info ] Docker is Initializing…
[04:48:50.965][Updater ][Info ] Checking for updates on the Beta channel…
[04:48:50.987][NamedPipeClient][Info ] Sending Stop()…
[04:48:50.995][NamedPipeServer][Info ] Stop()
[04:48:51.003][HyperV ][Info ] Stop
[04:48:51.012][PowerShell ][Info ] Run script with parameters: -Stop True…
[04:48:51.737][HyperV ][Info ] Kill VM MobyLinuxVM…
[04:48:51.786][HyperV ][Info ] VM MobyLinuxVM is stopped
[04:48:51.802][Firewall ][Info ] Closing ports…
[04:48:51.808][PowerShell ][Info ] Run script…
[04:48:52.624][Updater ][Info ] Found remote version. Version = 1.11.1.2789
[04:48:52.633][Updater ][Info ] Local version is up to date.
[04:48:52.641][Updater ][Info ] Check for update done.
[04:48:55.565][Firewall ][Info ] Ports are closed
[04:48:55.569][NamedPipeServer][Info ] Stop done.
[04:48:55.573][NamedPipeClient][Info ] Received response for Stop:
[04:48:55.660][NamedPipeClient][Info ] Sending Start(2, 2048)…
[04:48:55.666][NamedPipeServer][Info ] Start(2, 2048)
[04:48:55.672][Firewall ][Info ] Opening ports for C:\Program Files\Docker\Docker\Resources\com.docker.proxy.exe and C:\Program Files\Docker\Docker\DockerForWindows.exe…
[04:48:55.676][PowerShell ][Info ] Run script…
[04:48:58.285][Firewall ][Info ] Ports are opened
[04:48:58.289][HyperV ][Info ] Create
[04:48:58.293][PowerShell ][Info ] Run script with parameters: -Create True -CPUs 2 -Memory 2048 -IsoFile C:\Program Files\Docker\Docker\Resources\mobylinux.iso…
[04:48:58.577][HyperV ][Info ] Using existing Switch: DockerNAT
[04:48:58.838][HyperV ][Info ] Using existing Switch IP address
[04:48:58.870][HyperV ][Info ] Using existing Net NAT: DockerNAT
[04:49:00.103][HyperV ][Info ] Using existing: MobyLinuxVM
[04:49:00.513][HyperV ][Info ] Setting MobyLinuxVM vm CPUs to 2 and Memory to 2048 MB
[04:49:00.521][Dhcp ][Info ] Dhcp starting on port 67, on interface vEthernet (DockerNAT)…
[04:49:00.567][Dhcp ][Info ] Dhcp started.
[04:49:00.580][Proxy ][Info ] Starting com.docker.proxy
[04:49:00.591][HyperV ][Info ] Start
[04:49:00.597][PowerShell ][Info ] Run script with parameters: -Start True…
[04:49:00.731][HyperV ][Info ] Starting VM MobyLinuxVM…
[04:49:00.793][Proxy ][Info ] docker proxy (on deprecated port): ready
[04:49:00.798][Proxy ][Info ] dns server: ready
[04:49:00.804][Proxy ][Info ] poison pill: ready. Will kill ourself if parent process DockerForWindows.exe dies
[04:49:00.810][Proxy ][Info ] docker proxy: ready
[04:49:01.463][HyperV ][Info ] Wait for the VM to get an IP address
[04:49:02.496][HyperV ][Info ] Wait for the VM to get an IP address
[04:49:03.520][HyperV ][Info ] Wait for the VM to get an IP address
[04:49:04.541][HyperV ][Info ] Wait for the VM to get an IP address
[04:49:05.819][HyperV ][Info ] Wait for the VM to get an IP address
[04:49:06.894][HyperV ][Info ] Wait for the VM to get an IP address
[04:49:07.938][HyperV ][Info ] Wait for the VM to get an IP address
[04:49:08.961][HyperV ][Info ] Wait for the VM to get an IP address
[04:49:09.981][HyperV ][Info ] Wait for the VM to get an IP address
[04:49:11.329][HyperV ][Info ] Wait for the VM to get an IP address
[04:49:12.429][HyperV ][Info ] Wait for the VM to get an IP address
[04:49:13.482][HyperV ][Info ] Wait for the VM to get an IP address
[04:49:14.546][HyperV ][Info ] Wait for the VM to get an IP address
[04:49:15.568][HyperV ][Info ] Wait for the VM to get an IP address
[04:49:16.903][HyperV ][Info ] Wait for the VM to get an IP address
[04:49:17.968][HyperV ][Info ] Wait for the VM to get an IP address
[04:49:18.989][HyperV ][Info ] Wait for the VM to get an IP address
[04:49:20.008][HyperV ][Info ] Wait for the VM to get an IP address
[04:49:21.030][HyperV ][Info ] Wait for the VM to get an IP address
[04:49:22.300][HyperV ][Info ] Wait for the VM to get an IP address
[04:49:23.375][HyperV ][Info ] Wait for the VM to get an IP address
[04:49:24.430][HyperV ][Info ] Wait for the VM to get an IP address
[04:49:25.451][HyperV ][Info ] Wait for the VM to get an IP address
[04:49:26.470][HyperV ][Info ] Wait for the VM to get an IP address
[04:49:27.758][HyperV ][Info ] Wait for the VM to get an IP address
[04:49:28.823][HyperV ][Info ] Wait for the VM to get an IP address
[04:49:29.841][HyperV ][Info ] Wait for the VM to get an IP address
[04:49:30.862][HyperV ][Info ] Wait for the VM to get an IP address
[04:49:31.884][HyperV ][Info ] Wait for the VM to get an IP address
[04:49:33.196][HyperV ][Info ] It’s taking too long. Let’s restart the VM…
[04:49:33.279][HyperV ][Info ] Kill VM MobyLinuxVM…
[04:49:33.503][HyperV ][Info ] VM MobyLinuxVM is stopped
[04:49:33.509][HyperV ][Info ] Starting VM MobyLinuxVM…
[04:49:33.853][HyperV ][Info ] Wait for the VM to get an IP address
[04:49:34.923][HyperV ][Info ] Wait for the VM to get an IP address
[04:49:35.945][HyperV ][Info ] Wait for the VM to get an IP address
[04:49:36.995][HyperV ][Info ] Wait for the VM to get an IP address
[04:49:38.063][HyperV ][Info ] Wait for the VM to get an IP address
[04:49:39.369][HyperV ][Info ] Wait for the VM to get an IP address
[04:49:40.478][HyperV ][Info ] Wait for the VM to get an IP address
[04:49:41.531][HyperV ][Info ] Wait for the VM to get an IP address
[04:49:42.552][HyperV ][Info ] Wait for the VM to get an IP address
[04:49:43.632][HyperV ][Info ] Wait for the VM to get an IP address
[04:49:44.908][HyperV ][Info ] Wait for the VM to get an IP address
[04:49:46.049][HyperV ][Info ] Wait for the VM to get an IP address
[04:49:47.067][HyperV ][Info ] Wait for the VM to get an IP address
[04:49:48.086][HyperV ][Info ] Wait for the VM to get an IP address
[04:49:49.112][HyperV ][Info ] Wait for the VM to get an IP address
[04:49:50.373][HyperV ][Info ] Wait for the VM to get an IP address
[04:49:51.471][HyperV ][Info ] Wait for the VM to get an IP address
[04:49:52.515][HyperV ][Info ] Wait for the VM to get an IP address
[04:49:53.534][HyperV ][Info ] Wait for the VM to get an IP address
[04:49:54.570][HyperV ][Info ] Wait for the VM to get an IP address
[04:49:55.842][HyperV ][Info ] Wait for the VM to get an IP address
[04:49:56.906][HyperV ][Info ] Wait for the VM to get an IP address
[04:49:57.925][HyperV ][Info ] Wait for the VM to get an IP address
[04:49:58.983][HyperV ][Info ] Wait for the VM to get an IP address
[04:50:00.014][HyperV ][Info ] Wait for the VM to get an IP address
[04:50:01.292][HyperV ][Info ] Wait for the VM to get an IP address
[04:50:02.363][HyperV ][Info ] Wait for the VM to get an IP address
[04:50:03.390][HyperV ][Info ] Wait for the VM to get an IP address
[04:50:04.448][HyperV ][Info ] Wait for the VM to get an IP address
[04:50:05.481][HyperV ][Info ] Wait for the VM to get an IP address
[04:50:06.816][NamedPipeServer][Error ] Unable to executeStart: Failed to start VM “MobyLinuxVM”: The VM couldn’t get an IP address after 60 tries
[04:50:06.821][NamedPipeClient][Error ] Unable to sending Start: Failed to start VM “MobyLinuxVM”: The VM couldn’t get an IP address after 60 tries
[04:50:06.827][Notifications ][Error ] Error: Failed to start VM “MobyLinuxVM”: The VM couldn’t get an IP address after 60 tries
[04:50:20.943][Program ][Info ] Sending Bugsnag report 709e2839-254a-43e0-a983-69be172fa387 …
[04:50:24.278][Program ][Info ] Bugsnag report sent
[05:48:39.034][Mixpanel ][Info ] Tracking: heartbeat
[06:48:39.035][Mixpanel ][Info ] Tracking: heartbeat

Steps to reproduce the behavior

1.Install Docker for Windows
2.Reboot

have a look here: VM "MobyLinuxVM": The VM couldn't get an IP address after 60 tries
may be you find a workaround.

Yeah, I’ve had a look there, but it seems that the VM won’t boot, on a working installation can you see something on the VM or is it just black?

Thanks,

Ok, so now I can get an IP, the screen is still black. I think it may be related to TeamViewer, after I stopped the service , I restarted the VM and the IP showed up.

Edit:
Was not linked to TeamViewer, I shared the connection with the DockerNAT, but Docker is still not working… Now the contextual menu refuses to show up

The VM screen is black for me too. You could have a look at: C:\Users\<yourUser>\AppData\Local\Docker That’s the directory with the log files. So it may tell you what’s going on.

I was running an insider preview version of Windows. I reinstalled Windows 10 and now it works. Pretty extreme solution but I couldn’t make it work otherwise.

It seems windows changed something. see: http://www.thomasmaurer.ch/2016/05/set-up-a-hyper-v-virtual-switch-using-a-nat-network/ and: https://msdn.microsoft.com/en-us/virtualization/hyperv_on_windows/user_guide/setup_nat_network
I didn’t read the full stuff, but it seems there are some problems. … @friism some info about these problems?

I could make it work on a fresh W10 install without any problem. Maybe something changed between insider version and actual W10 version. I am not sure about that, maybe it was something else, I also had VMWare installed previously, so I can’t be sure of anything.

I’m having the same problem without running insider preview for Windows 10. Docker works otherwise fine.