Docker Community Forums

Share and learn in the Docker community.

VM "MobyLinuxVM": The VM couldn't get an IP address after 60 tries

beta
docker

(Chris Van Pelt) #12

I’m having the same issue on the latest Windows Pro Insider Preview. I tried uninstalling and reinstalling the latest Docker build. Opening Hyper-V the VM is running but it doesn’t have an IP in the networking session:


(Chris Van Pelt) #13

I’m able to ping the gateway and the network is configured as you specified. When I attach to the VM it only displays the Hyper-V logo which struck me as odd, thought I could get a shell or at least some historic output.


(Chris Van Pelt) #14

I believe this was caused by a program named “Acrylic DNS Server” which was bound to udp port 53. After stopping it, docker booted fine.


(Rolf Neugebauer) #15

Hi Chris

thanks for the followup. We had another user on a different thread who also kindly provided a lot of info. Yes, running a local DNS server, or in fact enabling Internet Connection Sharing will cause the error. We now have an easy way to repro this issue which will help us a lot to find a solution.

Thanks
Rolf


(Rjmarsh65) #16

Same issue with couldn’t get IP address after 60 tries. The fix for me was to completely uninstall and reinstall Docker and that fixed the issue. This started with Docker version 1.11.0-rc3, build eabf97a.


(Obajic) #17

Hi,
I have the same problem.I have tried all the remedies described previously (restart, uninstall). I can ping the gateway and it works. It looks exactly as in Chris’ entry from Aplril 8th 2016. 12:13 am. I have checked Internet connection sharing and it is not turned on. have checked the processes and don’t see any that would look like a DNS server. I don’t see any obvious errors in the log file either.

This is my docker startup log:

[09:10:42.974][Program ][Info ] Version: Version 1.11.0-beta6 (build: 1288)
[09:10:42.980][Program ][Info ] Starting on: 4/9/2016 9:10:42 AM
[09:10:42.982][Program ][Info ] Resources: C:\Program Files\Docker\Docker\Resources
[09:10:42.985][Program ][Info ] OS: Windows 10 Enterprise
[09:10:42.987][Program ][Info ] Edition: Enterprise
[09:10:42.990][Program ][Info ] Id: 1511
[09:10:42.992][Program ][Info ] Build: 10586
[09:10:42.994][Program ][Info ] BuildLabName: 10586.162.amd64fre.th2_release_sec.160223-1728
[09:10:42.998][Program ][Info ] Sha1: c97b76ba9aea72a29cb56ffc0de4e142f33a5999
[09:10:43.000][Program ][Info ] You can send feedback, including this log file, at https://forums.docker.com/c/docker-for-windows
[09:10:43.196][HyperV ][Info ] Checking for Hyper-V Windows optional feature
[09:10:43.330][PowerShell ][Info ] Run script…
[09:10:45.089][HyperV ][Info ] Hyper-V Windows feature is enabled
[09:10:45.547][Authentication ][Info ] Checking token
[09:10:45.665][Authentication ][Info ] Token is valid
[09:10:45.670][Notifications ][Info ] Docker is initializing…
[09:10:45.676][Updater ][Info ] Checking for updates on the Beta channel…
[09:10:45.771][Auth ][Info ] Retrieved credentials: ob:***********
[09:10:45.777][SmbShare ][Info ] Testing connection to host filesystem
[09:10:45.837][SmbShare ][Info ] C File sharing status: Shared
[09:10:45.840][Auth ][Info ] Retrieved credentials: ob:***********
[09:10:45.843][HyperV ][Info ] Creating a virtual machine named MobyLinuxVM
[09:10:45.846][HyperV ][Info ] Checking for Hyper-V Windows optional feature
[09:10:45.848][PowerShell ][Info ] Run script…
[09:10:46.284][HyperV ][Info ] Hyper-V Windows feature is enabled
[09:10:46.294][PowerShell ][Info ] Run script with parameters: -IsoFile C:\Program Files\Docker\Docker\Resources\mobylinux.iso -create True…
[09:10:46.302][Updater ][Info ] Found remote version. Version = 1.11.0.1288
[09:10:46.305][Updater ][Info ] Local version is up to date.
[09:10:46.308][Updater ][Info ] Check for update done.
[09:10:49.270][HyperV ][Info ] Using existing Switch: DockerNAT
[09:10:49.370][HyperV ][Info ] Using existing: MobyLinuxVM
[09:10:49.376][Firewall ][Info ] Opening TCP ports on the firewall for C:\Program Files\Docker\Docker\Resources\com.docker.proxy.exe…
[09:10:49.380][PowerShell ][Info ] Run script…
[09:10:51.654][Firewall ][Info ] Ports opened
[09:10:51.657][Firewall ][Info ] Opening UDP ports on the firewall for C:\Program Files\Docker\Docker\Resources\com.docker.proxy.exe…
[09:10:51.659][PowerShell ][Info ] Run script…
[09:10:52.828][Firewall ][Info ] Ports opened
[09:10:52.834][Proxy ][Info ] Starting com.docker.proxy
[09:10:52.844][HyperV ][Info ] Start a virtual machine named MobyLinuxVM
[09:10:52.846][HyperV ][Info ] Checking for Hyper-V Windows optional feature
[09:10:52.849][PowerShell ][Info ] Run script…
[09:10:52.885][Proxy ][Info ] 2016/04/09 09:10:52 dhcp server: ready
[09:10:52.888][Proxy ][Info ] 2016/04/09 09:10:52 docker proxy: ready
[09:10:52.892][Proxy ][Info ] 2016/04/09 09:10:52 dns server: ready
[09:10:52.895][Proxy ][Info ] 2016/04/09 09:10:52 docker proxy (on deprecated port): ready
[09:10:53.326][HyperV ][Info ] Hyper-V Windows feature is enabled
[09:10:53.329][PowerShell ][Info ] Run script with parameters: -start True -Credential System.Management.Automation.PSCredential…
[09:10:54.892][HyperV ][Info ] Starting VM MobyLinuxVM…
[09:10:54.896][HyperV ][Info ] Removing (potentially) existing mount authentication token
[09:10:55.624][HyperV ][Info ] Wait for the VM to get an IP address
[09:10:56.651][HyperV ][Info ] Wait for the VM to get an IP address
[09:10:57.679][HyperV ][Info ] Wait for the VM to get an IP address
[09:10:58.694][HyperV ][Info ] Wait for the VM to get an IP address
[09:10:59.718][HyperV ][Info ] Wait for the VM to get an IP address
[09:10:59.869][Proxy ][Info ] 2016/04/09 09:10:59 Discover
[09:11:00.818][Proxy ][Info ] 2016/04/09 09:11:00 Discover
[09:11:00.927][HyperV ][Info ] Wait for the VM to get an IP address
[09:11:01.348][Proxy ][Info ] 2016/04/09 09:11:01 Discover
[09:11:01.944][HyperV ][Info ] Wait for the VM to get an IP address
[09:11:02.407][Proxy ][Info ] 2016/04/09 09:11:02 Discover
[09:11:02.959][HyperV ][Info ] Wait for the VM to get an IP address
[09:11:03.468][Proxy ][Info ] 2016/04/09 09:11:03 Discover
[09:11:03.977][HyperV ][Info ] Wait for the VM to get an IP address
[09:11:04.996][HyperV ][Info ] Wait for the VM to get an IP address
[09:11:05.236][Proxy ][Info ] 2016/04/09 09:11:05 Discover
[09:11:06.188][HyperV ][Info ] Wait for the VM to get an IP address
[09:11:07.203][HyperV ][Info ] Wait for the VM to get an IP address
[09:11:08.220][HyperV ][Info ] Wait for the VM to get an IP address
[09:11:09.235][HyperV ][Info ] Wait for the VM to get an IP address
[09:11:10.250][HyperV ][Info ] Wait for the VM to get an IP address
[09:11:11.431][HyperV ][Info ] Wait for the VM to get an IP address
[09:11:12.445][HyperV ][Info ] Wait for the VM to get an IP address
[09:11:13.463][HyperV ][Info ] Wait for the VM to get an IP address
[09:11:14.479][HyperV ][Info ] Wait for the VM to get an IP address
[09:11:15.495][HyperV ][Info ] Wait for the VM to get an IP address
[09:11:16.663][HyperV ][Info ] Wait for the VM to get an IP address
[09:11:17.677][HyperV ][Info ] Wait for the VM to get an IP address
[09:11:18.691][HyperV ][Info ] Wait for the VM to get an IP address
[09:11:19.705][HyperV ][Info ] Wait for the VM to get an IP address
[09:11:20.720][HyperV ][Info ] Wait for the VM to get an IP address
[09:11:21.879][HyperV ][Info ] Wait for the VM to get an IP address
[09:11:22.894][HyperV ][Info ] Wait for the VM to get an IP address
[09:11:23.908][HyperV ][Info ] Wait for the VM to get an IP address
[09:11:24.923][HyperV ][Info ] Wait for the VM to get an IP address
[09:11:25.936][HyperV ][Info ] Wait for the VM to get an IP address
[09:11:27.112][HyperV ][Info ] Wait for the VM to get an IP address
[09:11:28.127][HyperV ][Info ] Wait for the VM to get an IP address
[09:11:29.141][HyperV ][Info ] Wait for the VM to get an IP address
[09:11:30.158][HyperV ][Info ] Wait for the VM to get an IP address
[09:11:31.174][HyperV ][Info ] Wait for the VM to get an IP address
[09:11:32.333][HyperV ][Info ] Wait for the VM to get an IP address
[09:11:33.348][HyperV ][Info ] Wait for the VM to get an IP address
[09:11:34.363][HyperV ][Info ] Wait for the VM to get an IP address
[09:11:35.377][HyperV ][Info ] Wait for the VM to get an IP address
[09:11:36.392][HyperV ][Info ] Wait for the VM to get an IP address
[09:11:37.574][HyperV ][Info ] Wait for the VM to get an IP address
[09:11:38.590][HyperV ][Info ] Wait for the VM to get an IP address
[09:11:39.605][HyperV ][Info ] Wait for the VM to get an IP address
[09:11:40.619][HyperV ][Info ] Wait for the VM to get an IP address
[09:11:41.633][HyperV ][Info ] Wait for the VM to get an IP address
[09:11:42.797][HyperV ][Info ] Wait for the VM to get an IP address
[09:11:43.812][HyperV ][Info ] Wait for the VM to get an IP address
[09:11:44.826][HyperV ][Info ] Wait for the VM to get an IP address
[09:11:45.841][HyperV ][Info ] Wait for the VM to get an IP address
[09:11:46.855][HyperV ][Info ] Wait for the VM to get an IP address
[09:11:48.014][HyperV ][Info ] Wait for the VM to get an IP address
[09:11:49.029][HyperV ][Info ] Wait for the VM to get an IP address
[09:11:50.047][HyperV ][Info ] Wait for the VM to get an IP address
[09:11:51.061][HyperV ][Info ] Wait for the VM to get an IP address
[09:11:52.075][HyperV ][Info ] Wait for the VM to get an IP address
[09:11:53.239][HyperV ][Info ] Wait for the VM to get an IP address
[09:11:54.254][HyperV ][Info ] Wait for the VM to get an IP address
[09:11:55.269][HyperV ][Info ] Wait for the VM to get an IP address
[09:11:56.283][HyperV ][Info ] Wait for the VM to get an IP address
[09:11:57.320][Notifications ][Error ] Error: Failed to start VM “MobyLinuxVM”: The VM couldn’t get an IP address after 60 tries
[09:11:57.390][PowerShell ][Info ] Run script…
[09:12:19.894][Program ][Info ] Sending Bugsnag report…
[09:12:21.057][Program ][Info ] Bugsnag report sent
[09:16:07.977][Proxy ][Info ] 2016/04/09 09:16:07 Discover
[09:16:12.896][Proxy ][Info ] 2016/04/09 09:16:12 Discover
[09:16:17.383][Proxy ][Info ] 2016/04/09 09:16:17 Discover
[09:16:24.881][Proxy ][Info ] 2016/04/09 09:16:24 Discover
[09:16:40.875][Proxy ][Info ] 2016/04/09 09:16:40 Discover
[09:17:12.859][Proxy ][Info ] 2016/04/09 09:17:12 Discover
[09:17:17.717][Proxy ][Info ] 2016/04/09 09:17:17 Discover
[09:17:25.929][Proxy ][Info ] 2016/04/09 09:17:25 Discover
[09:17:41.178][Proxy ][Info ] 2016/04/09 09:17:41 Discover

Thank you.
Any help will be much appreciated,
Ognjen


Error response from daemon: dial tcp 10.0.75.2:2375: connectex: A connection attempt failed because the connected party did not properly respond after a period of time, or established connection failed because connected host has failed to respond
(Dsebastien) #18

Same problem here, haven’t found a working solution yet


(Jörg Jooss) #19

Same here. Neither repairing nor reinstalling with the latest MSI fixes the issue. :unamused:


(pflannery) #20

@sujunmin reboot does not fix.

@svendowideit this is the error I see in the log before it reports Failed to start VM "MobyLinuxVM": The VM couldn't get an IP address after 60 tries

[21:43:06.713][Proxy          ][Info   ] Restarting com.docker.proxy
[21:43:06.716][Proxy          ][Info   ] 2016/04/09 21:43:06 docker proxy: ready
[21:43:06.720][Proxy          ][Info   ] 2016/04/09 21:43:06 dns server: ready
[21:43:06.727][Proxy          ][Info   ] 2016/04/09 21:43:06 docker proxy (on deprecated port): ready
[21:43:06.730][Proxy          ][Info   ] 2016/04/09 21:43:06 listen udp 10.0.75.1:53: bind: An attempt was made to access a socket in a way forbidden by its access permissions.

It gets further in the process when I change the network adapter to an already existing internal switch in my hyper-v.
But then fails


(Obajic) #21

I had similar issue and the reason was enabling Internet Connection Sharing or running a local DNS server.
There is another problem that has been blocking a couple of us, whereby there is no obvious error logged


(Jörg Jooss) #22

The funny thing is that I had ICS already active when I installed the Docker for Windows for the first time, since one of my Hyper-V virtual switches was an external switch. I have removed it in the meantime and reinstalled Docker for Windows afterwards, still no joy :disappointed:.


(Mario Pietsch) #23

@pflannery I had the same problem in a different context.

See my post, for the steps involved: Settings: Reset to default quits with Error [resolved]
-m


(Mohan Vedula) #24

I am having the same problem :frowning2: tried uninstall, reinstall etc, still no luck


(Vladan Colovic) #25

For me, it was Acrylic DNS Server.
“Stop Acrylic Service” solved my problem.

So thanks :wink:


(Keiichi Shimamura) #26

For me, removing all my other internal Hyper-V switch solved the issue.


VM “MobyLinuxVM”: "VM "MobyLinuxVM": The VM couldn't get an IP address after 60 tries" with permission related message in the log
(Tonći Vatavuk) #27

Had to uninstall D4W Beta 7, and install older version to overcome problem where VM couldn’t get an IP address…

[21:57:01.635][Program ][Info ] Version: 1.10.6.958
[21:57:01.637][Program ][Info ] Starting on: 4/15/2016 9:57:01 PM
[21:57:01.639][Program ][Info ] Resources: C:\Program Files (x86)\Docker\Docker\Resources
[21:57:01.641][Program ][Info ] OS: Windows 10 Pro Insider Preview
[21:57:01.642][Program ][Info ] Edition: Professional
[21:57:01.644][Program ][Info ] Id: 1511
[21:57:01.646][Program ][Info ] Build: 14316
[21:57:01.648][Program ][Info ] BuildLabName: 14316.1000.amd64fre.rs1_release.160402-2217


(Tonći Vatavuk) #28

Thx, removing all my other internal Hyper-V switches also solved issue with latest Beta 7 version…

[01:05:05.124][Program ][Info ] Version: Version 1.11.0-beta7 (build: 1692)
[01:05:05.127][Program ][Info ] Starting on: 4/16/2016 1:05:05 AM
[01:05:05.127][Program ][Info ] Resources: C:\Program Files\Docker\Docker\Resources
[01:05:05.127][Program ][Info ] OS: Windows 10 Pro
[01:05:05.127][Program ][Info ] Edition: Professional
[01:05:05.127][Program ][Info ] Id: 1511
[01:05:05.127][Program ][Info ] Build: 10586
[01:05:05.146][Program ][Info ] BuildLabName: 10586.212.amd64fre.th2_release_sec.160328-1908


(Rolf Neugebauer) #29

Glad to hear that the Beta7 solved the issue. We will look into setups with multiple internal switches


(Snowgirl) #30

Ugh… I can’t just remove my other HyperV virtual switches. It’s the only way this machine can get to the appropriate VLAN on my network. (Drivers are broken and won’t do VLAN, seriously.)


(Bigloudjeff) #31

I can confirm that deleting the other internal switch(s) fixed the issue. I had an internal switch for the Windows Phone Emulator VM (Windows Phone Emulator Internal Switch). I deleted the MobyLinuxVM and the DockerNAT switch and while the other internal switch was in place I ran the following and got the error you see listed…

//
PS C:\Program Files\Docker\Docker\resources> .\MobyLinux.ps1 -IsoFile .\mobylinux.iso -Create
Enabled workaround for Build 10586 VMSwitch issue
Creating Switch: DockerNAT…
New-NetIPAddress : Instance MSFT_NetIPAddress already exists
At C:\Program Files\Docker\Docker\resources\MobyLinux.ps1:140 char:32

  • $netIP = $networkAdapter | New-NetIPAddress -AddressFamily IPv4 `
    
  •                            ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    
    • CategoryInfo : InvalidArgument: (MSFT_NetIPAddress:ROOT/StandardCimv2/MSFT_NetIPAddress) [New-NetIPAddress], CimException
    • FullyQualifiedErrorId : Windows System Error 87,New-NetIPAddress

Switch created.
Using existing Net NAT: DockerNAT
Creading dynamic VHD: C:\Use
//

Notice the “Instance MSFT_NetIPAddress already exists” error above.

After getting that error the VM and switch looked fine but Docker could not run because of the “unable to get IP” error. So I deleted the Windows Phone Emulator switch and reran the command as listed below and now everything is working.

PS C:\Program Files\Docker\Docker\resources> .\MobyLinux.ps1 -IsoFile .\mobylinux.iso -Create
Enabled workaround for Build 10586 VMSwitch issue
Creating Switch: DockerNAT…
Switch created.
Using existing Net NAT: DockerNAT
Creading dynamic VHD: C:\Users\Public\Documents\Hyper-V\Virtual Hard Disks\MobyLinuxVM.vhdx
Creating VM MobyLinuxVM…
VM created.
PS C:\Program Files\Docker\Docker\resources>

Please let me know if there is any more data / testing / feedback I can give or do.

Thanks,

Jeff