docker / for-win

Bug reports for Docker Desktop for Windows
https://www.docker.com/products/docker#/windows
1.85k stars 287 forks source link

Docker fails to start on Windows 10 #27

Closed sdevane closed 7 years ago

sdevane commented 8 years ago

Expected behavior

Docker should start

Actual behavior

Docker fails to start and an Error reported in a window

Information

Windows 10 pre and post Windows 10 anniverssary editions latest builds

  1. installer Docker (also tried Beta version)
  2. After installation completes the Docker is supposed to auto launch, but it fails to start

A diagnostic was uploaded with id: 5829B164-D591-4EF5-9283-A838DDE27F7D/2016-08-05_19-06-39

dsperling commented 8 years ago

I am see a similar issue with the Anniversary update (version 1607). Here is my docker version output.

docker version
Client:
 Version:      1.12.0
 API version:  1.24
 Go version:   go1.6.3
 Git commit:   8eab29e
 Built:        Thu Jul 28 21:15:28 2016
 OS/Arch:      windows/amd64
An error occurred trying to connect: Get http://%2F%2F.%2Fpipe%2Fdocker_engine/v1.24/version: open //./pipe/docker_engine: The system cannot find the file specified.
Morgy93 commented 8 years ago

Same problem here. I already posted mine here: https://github.com/docker/docker/issues/25443 I'll just copy it over here:

Output of docker version:

Client:
 Version:      1.12.0
 API version:  1.24
 Go version:   go1.6.3
 Git commit:   8eab29e
 Built:        Thu Jul 28 21:15:28 2016
 OS/Arch:      windows/amd64
Error response from daemon: The requested address is not valid in its context.

Additional environment details (AWS, VirtualBox, physical, etc.):

Steps to reproduce the issue: I don't know how to "reproduce", but all I did was to upgrade to the anniversary update and activated the Windows Subsystem for Linux (WSL) for Bash on Ubuntu on Windows My docker worked just nice before~

Describe the results you received: The VM doesn't start.

Describe the results you expected: The VM does start / boot

Additional information you deem important (e.g. issue happens only occasionally):

Failed to start VM "MobyLinuxVM": Fehler beim Starten von "MobyLinuxVM".

Fehler beim Starten von "MobyLinuxVM" (ID des virtuellen Computers 5534CC75-8A5C-4BA7-82BC-EB315C4DAA77).

"MobyLinuxVM": Fehler beim Starten des Arbeitsprozesses: Der Prozess wurde unerwartet beendet. (0x8007042B) (ID des virtuellen Computers 5534CC75-8A5C-4BA7-82BC-EB315C4DAA77).
   bei Docker.Core.Pipe.NamedPipeClient.TrySend(String action, Object[] parameters)
   bei Docker.Core.Pipe.NamedPipeClient.Send(String action, Object[] parameters)
   bei Docker.Core.Backend.BackendClient.Start(Settings settings)
   bei Docker.Actions.DoStart(Settings settings, Boolean showWelcomeWindow)
   bei Docker.Core.TaskQueue.<.ctor>b__16_0()
eino-makitalo commented 8 years ago

I fixed my problem with hyper-v console and choosing MobyLinuxVM and right mouse click to update settings to newest. Then it gave warning that it is not running with older version of Hyper-V but after that. I managed to start Docker again. Situation before: I updated my Windows 10 to newest version and docker for windows hangs in situation ..."Starting ". Before update I killed all docker and Hyper-V processes ( I do not know if its realy needed)

Morgy93 commented 8 years ago

I also upgraded the configuration from 7.0 to 8.0 (whatever that means), but no change. After I removed the VM manually, it gets the 8.0 automatically, but still the same error occurs. I cannot start the VM within the Hyper-V either:

unbenannt

It basically just states that it failed to start and that the process exited unexpectedly.

shairez commented 8 years ago

I reverted back from the windows 10 anniversary update and now it works again.

So it might be a temporary solution for you too, until they'll sort it out.

rn commented 8 years ago

In general, several of us run the anniversary update (including WSL) and we do test releases on it as well and we haven't seen any issues. So we are curious to get to the bottom of this.

@Morgy93 when you say "Upgraded configuration from 7.0 to 8.0" what do you mean?

friism commented 8 years ago

image

@rneugeba I suspect it's the Hyper-V VM configuration version

dsperling commented 8 years ago

I was finally able to get the 'stable' release running on 1607 on a PC that had previous failures. Here are the steps I used.

  1. Download the Docker for Windows 'stable' installer
  2. Disconnect the PC from local networking
  3. Uninstall any previous Docker version and ensure no VM's are listed in the Hyper-V Manager
  4. Install Docker for Windows 'stable'
  5. The last step allows you to launch Docker. Keep the box checked.
    • Docker tray app fails to display its icon, no notifications occur
    • Open Hyper-V Manager and I did not see any VM's listed
    • Docker for Windows.exe is running and displayed in Task Manager
  6. Reboot
  7. Now I see the Docker notification and the tray icon.
  8. Docker welcome window appears and everything is functional.
  9. Reconnect to your local network

Notes:

Update:

I have seen an install succeed with the PC connected to the network, although this is not reproducible.

  1. Install Docker 'stable'
  2. Reboot
  3. Wait 18 minutes
  4. Docker welcome screen appears
Morgy93 commented 8 years ago

@rneugeba Yeah, that what @friism said. :grin:

PetaPetaPeta commented 8 years ago

I seem to have some of the same issues. Should #28 and this be merged into one?

dsperling commented 8 years ago

@PetaPetaPeta I agree that the issue I am seeing matches #28. However the original issue that @sdevane reported is a different issue in MobyLinuxVM:

'MobyLinuxVM' failed to start worker process: The process terminated unexpectedly.

So I suggest we keep #28 for the issue we are seeing and #27 reflects @sdevane original issue.

Morgy93 commented 8 years ago

I guess I tried almost everything possible related to network stuff. But I can even remove the network switch and network adapter within the VM and it fails to start with the same error as before. So I'd assume that it's not directly an issue with the network stuff for the VM to fail booting.

Even though I reported thousands of crash reports already, here's the latest one: EF5CEE54-6553-4655-A810-98A1549E5A7D/2016-08-09_19-30-33

Morgy93 commented 8 years ago

There seem to be other people out there who are having the same issue, probably using some whole different VM: https://social.technet.microsoft.com/Forums/en-US/a539273e-d80e-4dcb-993a-5b1dd0935728/vm-not-starting?forum=virtualserver So maybe this has nothing to do with docker at all?!

Morgy93 commented 8 years ago

I'm sure now. I tried the HoloLens emulator and Windows Phone emulator from Visual Studio 2015 (I used the Windows Phone emulator before and it always worked fine) and both VM fail to start with the same error as the docker VM.

So I'm creating a new thread over here: https://social.technet.microsoft.com/Forums/windows/en-US/home?forum=win10itprovirt

EDIT: https://social.technet.microsoft.com/Forums/windows/en-US/2df51b2d-18d3-463e-8fe5-3517bfb2950f/vm-failed-to-start-worker-process-the-process-terminated-unexpectedly?forum=win10itprovirt

PetaPetaPeta commented 8 years ago

Temporary fix proposed here(https://github.com/docker/for-win/issues/28#issuecomment-238622233) is a working workaround for me.

burgoyn1 commented 8 years ago

I am having the same issue with a fresh install of docker and I am completely lost. I keep getting the following error. I have tried to re-install docker, remove everything, but nothing works.

Failed to start VM "MobyLinuxVM": 'MobyLinuxVM' failed to start.

'MobyLinuxVM' failed to initialize.

'MobyLinuxVM' failed to start. (Virtual machine ID 817661C8-62FA-4E75-9C79-79F4AF06CA50)

'MobyLinuxVM' failed to initialize. (Virtual machine ID 817661C8-62FA-4E75-9C79-79F4AF06CA50) at Docker.Core.Pipe.NamedPipeClient.TrySend(String action, Object[] parameters) at Docker.Core.Pipe.NamedPipeClient.Send(String action, Object[] parameters) at Docker.Core.Backend.BackendClient.Start(Settings settings) at Docker.Actions.<>c__DisplayClass26_0.b0() at Docker.Core.TaskQueue.<.ctor>b16_0()

Attached are the log files. Anyone have any idea because I am lost. Below are the versions I am running:

PS C:\Users\Steven> docker --version Docker version 1.12.0, build 8eab29e PS C:\Users\Steven> docker-compose --version docker-compose version 1.8.0, build d988a55 PS C:\Users\Steven> docker-machine --version docker-machine.exe version 0.8.0, build b85aac1 PS C:\Users\Steven> docker version Client: Version: 1.12.0 API version: 1.24 Go version: go1.6.3 Git commit: 8eab29e Built: Thu Jul 28 21:15:28 2016 OS/Arch: windows/amd64 Error response from daemon: An invalid argument was supplied PS C:\Users\Steven> [System.Environment]::OSVersion.Version

Major Minor Build Revision


10 0 10586 0

anusornc commented 8 years ago

id = 5A0795B3-B950-4CC3-B296-F392FD31D7B2/2016-08-16_21-19-47

The running command stopped because the preference variable "ErrorActionPreference" or common parameter is set to Stop: Hyper-V encountered an error trying to access an object on computer 'AJ' because the object was not found. The object might have been deleted, or you might not have permission to perform the task. Verify that the Virtual Machine Management service on the computer is running. If the service is running, try to perform the task again by using Run as Administrator. at Docker.Core.Pipe.NamedPipeClient.TrySend(String action, Object[] parameters) at Docker.Core.Pipe.NamedPipeClient.Send(String action, Object[] parameters) at Docker.Core.Backend.BackendClient.Start(Settings settings) at Docker.Actions.DoStart(Settings settings, Boolean showWelcomeWindow) at Docker.Core.TaskQueue.<.ctor>b__16_0()

rn commented 8 years ago

For those who still experience this issue, could you try un-installing and then install the latest Beta (Beta23) from here: https://download.docker.com/win/beta/InstallDocker.msi

We made some significant changes to the way the VM is created/started but also improved the diagnostics so it would be useful for us to know if this issue is resolved. Thanks Rolf

tomgeorge commented 8 years ago

I have a similar issue.

PS C:\Users\Tom> docker version

Client:
 Version:      1.12.1-rc1
 API version:  1.24
 Go version:   go1.6.3
 Git commit:   7889dc7
 Built:        Fri Aug 12 18:35:53 2016
 OS/Arch:      windows/amd64
 Experimental: true
An error occurred trying to connect: Get http://%2F%2F.%2Fpipe%2Fdocker_engine/v1.24/version: open //./pipe/docker_engin
e: The system cannot find the file specified.

Logs for a restart:

[01:29:36.934][Notifications  ][Info   ] Docker is restarting...
[01:29:36.968][NamedPipeClient][Info   ] Sending Stop()...
[01:29:36.997][NamedPipeServer][Info   ] Stop()
[01:29:37.024][HyperV         ][Info   ] Stop
[01:29:37.049][PowerShell     ][Info   ] Run script with parameters: -Stop True...
[01:29:38.149][HyperV         ][Info   ] VM MobyLinuxVM is stopped
[01:29:38.176][VpnKit         ][Info   ] Killing existing com.docker.slirp with PID 8444
[01:29:38.205][DataKit        ][Info   ] Killing existing com.docker.db with PID 3640
[01:29:38.237][NamedPipeServer][Info   ] Stop done.
[01:29:38.262][NamedPipeClient][Info   ] Received response for Stop
[01:29:38.313][NamedPipeClient][Info   ] Sending Start(Docker.Core.Settings)...
[01:29:38.350][NamedPipeServer][Info   ] Start(Docker.Core.Settings)
[01:29:38.379][HyperVGuids    ][Info   ] Installing GUIDs...
[01:29:38.406][HyperVGuids    ][Info   ] GUIDs installed
[01:29:38.433][Firewall       ][Info   ] Opening ports for C:\Program Files\Docker\Docker\Resources\com.docker.proxy.exe...
[01:29:40.742][Firewall       ][Info   ] Ports are opened
[01:29:40.768][HyperV         ][Info   ] Create
[01:29:40.794][PowerShell     ][Info   ] Run script with parameters: -Create True -SwitchSubnetAddress 10.0.75.0 -SwitchSubnetMaskSize 24 -CPUs 2 -Memory 2048 -IsoFile C:\Program Files\Docker\Docker\Resources\mobylinux.iso...
[01:29:41.526][HyperV         ][Info   ] Using existing Switch: DockerNAT
[01:29:43.456][HyperV         ][Info   ] Using existing Switch IP address
[01:29:43.492][HyperV         ][Info   ] Using existing: MobyLinuxVM (state = Off)
[01:29:43.955][HyperV         ][Info   ] Setting MobyLinuxVM vm CPUs to 2 and Memory to 2048 MB
[01:29:43.986][DataKit        ][Info   ] Starting...
[01:29:44.021][PowerShell     ][Info   ] Run script...
[01:29:44.109][DataKit        ][Info   ] Started
[01:29:44.159][VpnKit         ][Info   ] Starting...
[01:29:44.225][PowerShell     ][Info   ] Run script...
[01:29:44.312][VpnKit         ][Info   ] Started
[01:29:44.384][Database       ][Info   ] Writing com.docker.driver.amd64-linux/net/config=static
[01:29:44.445][Database       ][Info   ] Writing com.docker.driver.amd64-linux/net/address=10.0.75.2
[01:29:44.482][Database       ][Info   ] Writing com.docker.driver.amd64-linux/net/netmask=255.255.255.0
[01:29:44.517][Database       ][Info   ] Writing com.docker.driver.amd64-linux/net/gateway=10.0.75.1
[01:29:44.575][Database       ][Info   ] Writing com.docker.driver.amd64-linux/etc/resolv.conf=nameserver 10.0.75.1
[01:29:44.610][Database       ][Info   ] Writing com.docker.driver.amd64-linux/network=hybrid
[01:29:44.656][Database       ][Info   ] Writing com.docker.driver.amd64-linux/etc/docker/daemon.json={"registry-mirrors":[],"insecure-registries":[],"debug":false}
[01:29:44.711][Database       ][Info   ] Writing com.docker.driver.amd64-linux/etc/sysctl.conf=
[01:29:44.746][Database       ][Info   ] Writing com.docker.driver.amd64-linux/native/port-forwarding=true
[01:29:44.828][DataKit        ][Info   ] 
[01:29:44.843][DataKit        ][Info   ] +7036us    Datakit  Starting com.docker.db.exe 09081b4 ...
[01:29:45.032][VpnKit         ][Info   ] com.docker.slirp.exe: Logging to stdout (stdout:true DEBUG:false)
[01:29:45.046][VpnKit         ][Info   ] com.docker.slirp.exe: Setting handler to ignore all SIGPIPE signals
[01:29:45.052][VpnKit         ][Info   ] com.docker.slirp.exe: vpnkit version %VERSION% with hostnet version local %HOSTNET_PINNED% uwt version 0.0.3 hvsock version 0.10.0 %HVSOCK_PINNED%
[01:29:45.059][VpnKit         ][Info   ] com.docker.slirp.exe: starting port_forwarding port_control_url:hyperv-connect://e63516d7-4e39-4a2c-880e-f9bfb390ef19 max_connections:None vsock_path:
[01:29:45.066][VpnKit         ][Info   ] com.docker.slirp.exe: connecting to e63516d7-4e39-4a2c-880e-f9bfb390ef19:0B95756A-9985-48AD-9470-78E060895BE7
[01:29:45.075][VpnKit         ][Debug  ] com.docker.slirp.exe: Waiting for connections on socket hyperv-connect://e63516d7-4e39-4a2c-880e-f9bfb390ef19
[01:29:45.081][VpnKit         ][Warning] com.docker.slirp.exe: no database: using hardcoded network configuration values
[01:29:45.090][VpnKit         ][Info   ] com.docker.slirp.exe: connecting to e63516d7-4e39-4a2c-880e-f9bfb390ef19:30D48B34-7D27-4B0B-AAAF-BBBED334DD59
[01:29:45.096][VpnKit         ][Debug  ] com.docker.slirp.exe: Waiting for connections on socket hyperv-connect://e63516d7-4e39-4a2c-880e-f9bfb390ef19
[01:29:46.342][DataKit        ][Info   ] 
[01:29:46.353][DataKit        ][Info   ] +1521241us       fs9p [ERROR] dispatcher caught Unix.Unix_error(Unix.EPIPE, "bytes_read", ""): no more requests will be handled
[01:29:46.343][Database       ][Info   ] Successfully wrote 9 value(s)
[01:29:46.367][HyperV         ][Info   ] Start
[01:29:46.377][PowerShell     ][Info   ] Run script with parameters: -Start True...
[01:29:46.431][HyperV         ][Info   ] Starting VM MobyLinuxVM...
[01:29:49.996][HyperV         ][Info   ] Hyper-V is running
[01:29:50.001][HyperV         ][Info   ] Create
[01:29:50.005][PowerShell     ][Info   ] Run script with parameters: -Create True -SwitchSubnetAddress 10.0.75.0 -SwitchSubnetMaskSize 24 -CPUs 2 -Memory 2048 -IsoFile C:\Program Files\Docker\Docker\Resources\mobylinux.iso...
[01:29:50.564][HyperV         ][Info   ] Using existing Switch: DockerNAT
[01:29:50.656][HyperV         ][Info   ] Using existing Switch IP address
[01:29:50.777][HyperV         ][Info   ] Using existing: MobyLinuxVM (state = Off)
[01:29:51.205][HyperV         ][Info   ] Setting MobyLinuxVM vm CPUs to 2 and Memory to 2048 MB
[01:29:51.217][HyperV         ][Info   ] Stop
[01:29:51.224][PowerShell     ][Info   ] Run script with parameters: -Stop True...
[01:29:51.382][HyperV         ][Info   ] VM MobyLinuxVM is stopped
[01:29:51.392][VpnKit         ][Info   ] Killing existing com.docker.slirp with PID 10728
[01:29:51.409][DataKit        ][Info   ] Killing existing com.docker.db with PID 3916
[01:29:51.446][HyperVGuids    ][Info   ] Installing GUIDs...
[01:29:51.451][HyperVGuids    ][Info   ] GUIDs installed
[01:29:51.457][Firewall       ][Info   ] Opening ports for C:\Program Files\Docker\Docker\Resources\com.docker.proxy.exe...
[01:29:54.295][Firewall       ][Info   ] Ports are opened
[01:29:54.307][HyperV         ][Info   ] Create
[01:29:54.316][PowerShell     ][Info   ] Run script with parameters: -Create True -SwitchSubnetAddress 10.0.75.0 -SwitchSubnetMaskSize 24 -CPUs 2 -Memory 2048 -IsoFile C:\Program Files\Docker\Docker\Resources\mobylinux.iso...
[01:29:54.523][HyperV         ][Info   ] Using existing Switch: DockerNAT
[01:29:54.673][HyperV         ][Info   ] Using existing Switch IP address
[01:29:54.737][HyperV         ][Info   ] Using existing: MobyLinuxVM (state = Off)
[01:29:54.804][HyperV         ][Info   ] Setting MobyLinuxVM vm CPUs to 2 and Memory to 2048 MB
[01:29:54.818][DataKit        ][Info   ] Starting...
[01:29:54.826][PowerShell     ][Info   ] Run script...
[01:29:54.880][DataKit        ][Info   ] Started
[01:29:54.902][VpnKit         ][Info   ] Starting...
[01:29:54.915][PowerShell     ][Info   ] Run script...
[01:29:55.011][VpnKit         ][Info   ] Started
[01:29:55.022][Database       ][Info   ] Writing com.docker.driver.amd64-linux/net/config=static
[01:29:55.041][Database       ][Info   ] Writing com.docker.driver.amd64-linux/net/address=10.0.75.2
[01:29:55.072][Database       ][Info   ] Writing com.docker.driver.amd64-linux/net/netmask=255.255.255.0
[01:29:55.089][Database       ][Info   ] Writing com.docker.driver.amd64-linux/net/gateway=10.0.75.1
[01:29:55.098][Database       ][Info   ] Writing com.docker.driver.amd64-linux/etc/resolv.conf=nameserver 10.0.75.1
[01:29:55.107][Database       ][Info   ] Writing com.docker.driver.amd64-linux/network=hybrid
[01:29:55.113][Database       ][Info   ] Writing com.docker.driver.amd64-linux/etc/docker/daemon.json={"registry-mirrors":[],"insecure-registries":[],"debug":false}
[01:29:55.123][Database       ][Info   ] Writing com.docker.driver.amd64-linux/etc/sysctl.conf=
[01:29:55.132][Database       ][Info   ] Writing com.docker.driver.amd64-linux/native/port-forwarding=true
[01:29:55.504][DataKit        ][Info   ] 
[01:29:55.516][DataKit        ][Info   ] +14689us    Datakit  Starting com.docker.db.exe 09081b4 ...
[01:29:55.577][VpnKit         ][Info   ] com.docker.slirp.exe: Logging to stdout (stdout:true DEBUG:false)
[01:29:55.584][VpnKit         ][Info   ] com.docker.slirp.exe: Setting handler to ignore all SIGPIPE signals
[01:29:55.594][VpnKit         ][Info   ] com.docker.slirp.exe: vpnkit version %VERSION% with hostnet version local %HOSTNET_PINNED% uwt version 0.0.3 hvsock version 0.10.0 %HVSOCK_PINNED%
[01:29:55.600][VpnKit         ][Info   ] com.docker.slirp.exe: starting port_forwarding port_control_url:hyperv-connect://e63516d7-4e39-4a2c-880e-f9bfb390ef19 max_connections:None vsock_path:
[01:29:55.607][VpnKit         ][Info   ] com.docker.slirp.exe: connecting to e63516d7-4e39-4a2c-880e-f9bfb390ef19:0B95756A-9985-48AD-9470-78E060895BE7
[01:29:55.613][VpnKit         ][Debug  ] com.docker.slirp.exe: Waiting for connections on socket hyperv-connect://e63516d7-4e39-4a2c-880e-f9bfb390ef19
[01:29:55.618][VpnKit         ][Warning] com.docker.slirp.exe: no database: using hardcoded network configuration values
[01:29:55.624][VpnKit         ][Info   ] com.docker.slirp.exe: connecting to e63516d7-4e39-4a2c-880e-f9bfb390ef19:30D48B34-7D27-4B0B-AAAF-BBBED334DD59
[01:29:55.630][VpnKit         ][Debug  ] com.docker.slirp.exe: Waiting for connections on socket hyperv-connect://e63516d7-4e39-4a2c-880e-f9bfb390ef19
[01:29:56.864][Database       ][Info   ] Successfully wrote 9 value(s)
[01:29:56.869][HyperV         ][Info   ] Start
[01:29:56.875][PowerShell     ][Info   ] Run script with parameters: -Start True...
[01:29:56.873][DataKit        ][Info   ] 
[01:29:56.889][DataKit        ][Info   ] +1384240us       fs9p [ERROR] dispatcher caught Unix.Unix_error(Unix.EPIPE, "bytes_read", ""): no more requests will be handled
[01:29:56.923][HyperV         ][Info   ] Starting VM MobyLinuxVM...
[01:29:57.581][NamedPipeServer][Error  ] Unable to execute Start: Unable to start: The running command stopped because the preference variable "ErrorActionPreference" or common parameter is set to Stop: 'MobyLinuxVM' failed to start. (Virtual machine ID E63516D7-4E39-4A2C-880E-F9BFB390EF19)

'MobyLinuxVM' failed to start worker process: The process terminated unexpectedly. (0x8007042B). (Virtual machine ID E63516D7-4E39-4A2C-880E-F9BFB390EF19)
at Start-MobyLinuxVM, <No file>: line 228
at <ScriptBlock>, <No file>: line 322    at Docker.Backend.HyperV.RunScript(String action, Dictionary`2 parameters)
   at Docker.Backend.LinuxContainersEngine.DoStart(Settings settings)
   at Docker.Backend.LinuxContainersEngine.Start(Settings settings)
   at Docker.Core.Pipe.NamedPipeServer.<>c__DisplayClass7_0.<Register>b__0(Object[] parameters)
   at Docker.Core.Pipe.NamedPipeServer.RunAction(String action, Object[] parameters)
[01:29:57.747][NamedPipeClient][Error  ] Unable to send Start: Unable to start: The running command stopped because the preference variable "ErrorActionPreference" or common parameter is set to Stop: 'MobyLinuxVM' failed to start. (Virtual machine ID E63516D7-4E39-4A2C-880E-F9BFB390EF19)

'MobyLinuxVM' failed to start worker process: The process terminated unexpectedly. (0x8007042B). (Virtual machine ID E63516D7-4E39-4A2C-880E-F9BFB390EF19)
at Start-MobyLinuxVM, <No file>: line 228
at <ScriptBlock>, <No file>: line 322
[01:29:57.885][Notifications  ][Error  ] Unable to start: The running command stopped because the preference variable "ErrorActionPreference" or common parameter is set to Stop: 'MobyLinuxVM' failed to start. (Virtual machine ID E63516D7-4E39-4A2C-880E-F9BFB390EF19)

'MobyLinuxVM' failed to start worker process: The process terminated unexpectedly. (0x8007042B). (Virtual machine ID E63516D7-4E39-4A2C-880E-F9BFB390EF19)

And trying to start it in hyper-v manager: hyperv

rn commented 8 years ago

@tomgeorge thanks for the report. Could you provide the diagnostics id? Thanks

tomgeorge commented 8 years ago

@rneugeba do you mean the crash report id? if so, one you can reference is:

8e3a687d-9c88-4adc-8572-2630686aad6b

Also, I have a few more pieces of info for you. Here's my current docker version (I have tried stable and beta):

dockerversion

And looking through the event viewer in windows, I see a couple of things that might be of interest:

One Critical Error from source Hyper-V-VMMS, Event ID 15350, with the description "The virtualization infrastructure driver (VID) is not running."

One Critical Error from source Hyper-V-VMMS, Event ID 14096, with the description "Virtual Machine Management service failed to start."

And for each attempt to start docker, the following events:

Event ID 15130, 'MobyLinuxVM' failed to start. (Virtual machine ID )

Event ID 15500 'MobyLinuxVM' failed to start worker process: The process terminated unexpectedly. (0x8007042B). (Virtual machine ID )'

VirtualBox and an OLD version of docker toolbox was installed on my computer when I enabled Hyper-V and installed docker for windows.

burgoyn1 commented 8 years ago

Mine also still does not start running the new beta. I also reset docker to default settings and still nothing.

Unable to start: The running command stopped because the preference variable "ErrorActionPreference" or common parameter is set to Stop: 'MobyLinuxVM' failed to start.

'MobyLinuxVM' failed to initialize.

'MobyLinuxVM' failed to start. (Virtual machine ID A15CBE3A-E9CA-4A19-84AA-DD833A837518)

'MobyLinuxVM' failed to initialize. (Virtual machine ID A15CBE3A-E9CA-4A19-84AA-DD833A837518)
at Start-MobyLinuxVM, <No file>: line 228
at <ScriptBlock>, <No file>: line 322
   at Docker.Backend.HyperV.RunScript(String action, Dictionary`2 parameters)
   at Docker.Backend.LinuxContainersEngine.DoStart(Settings settings)
   at Docker.Backend.LinuxContainersEngine.Start(Settings settings)
   at Docker.Core.Pipe.NamedPipeServer.<>c__DisplayClass7_0.<Register>b__0(Object[] parameters)
   at Docker.Core.Pipe.NamedPipeServer.RunAction(String action, Object[] parameters)

Diagnostic ID - 29B832CD-87FF-4E78-9985-50BAB90BABD7/2016-08-20_08-44-06

Morgy93 commented 8 years ago

@rneugeba This whole issue is not related to docker. There are several other people around who are facing the exact same issue while not beeing related to docker at all. Have a look at: https://social.technet.microsoft.com/Forums/windows/en-US/2df51b2d-18d3-463e-8fe5-3517bfb2950f/vm-failed-to-start-worker-process-the-process-terminated-unexpectedly?forum=win10itprovirt

We obviously need to wait for a solution from Microsoft.

Morgy93 commented 8 years ago

I can't believe it - I found a solution to this.

I was using "COMODO Internet Security Pro" as my 3rd party firewall, anti virus, sandbox and whatsoever program - after I removed it completely and rebooted my pc, all of my Hyper-V VM are working again - including docker of course. I also reported this here so we'll see if this is the case for other users as well using third party firewall, av, sandbox, etc. software.

Finally I can benefit from the new "Bash on Ubuntu on Windows" terminal in addition to Docker for Windows. ("Full" Linux experience on Windows, yay :D)

Morgy93 commented 8 years ago

Fun thing .. it's already reported on the official COMODO forums and they're aware of it: https://forums.comodo.com/bug-reports-cis/comodo-firewall-began-conflict-with-hyperv-t116351.0.html

tomgeorge commented 8 years ago

@Morgy93 @rneugeba I can confirm that removing COMODO and restarting fixed my issue. I had to also set the DNS servers in the docker settings window to be fixed at 8.8.8.8. Woo!!

Tom@Home MINGW64 /
$ docker run hello-world
Unable to find image 'hello-world:latest' locally
latest: Pulling from library/hello-world
c04b14da8d14: Pulling fs layer
c04b14da8d14: Verifying Checksum
c04b14da8d14: Download complete
c04b14da8d14: Pull complete
Digest: sha256:0256e8a36e2070f7bf2d0b0763dbabdd67798512411de4cdcf9431a1feb60fd9
Status: Downloaded newer image for hello-world:latest

Hello from Docker!
This message shows that your installation appears to be working correctly.

To generate this message, Docker took the following steps:
 1. The Docker client contacted the Docker daemon.
 2. The Docker daemon pulled the "hello-world" image from the Docker Hub.
 3. The Docker daemon created a new container from that image which runs the
    executable that produces the output you are currently reading.
 4. The Docker daemon streamed that output to the Docker client, which sent it
    to your terminal.

To try something more ambitious, you can run an Ubuntu container with:
 $ docker run -it ubuntu bash

Share images, automate workflows, and more with a free Docker Hub account:
 https://hub.docker.com

For more examples and ideas, visit:
 https://docs.docker.com/engine/userguide/
rn commented 8 years ago

Glad to hear that this issue is fixed for some of you. As for the others:

Beta24 can be downloaded from here: https://download.docker.com/win/beta/InstallDocker.msi

Thanks

juhams commented 8 years ago

docker 4win 1.20.1 beta24 did not start after installation. Checked with hyperv manager and mobylinuxvm could not be started because the virtual disk was completely missing. I created the disk manually and rebooted. --> docker 1.20.1 beta 24 running with win 10 build 14393.105

chen-xin commented 8 years ago

Hi, I fixed my problem as following:

  1. Open Hyper-V manager, delete all the "MobyLinuxVM' inside;
  2. From the docker gui select "Reset/Restart Docker", and everything is OK, with all my images and containers.

Windows: 10.0.14393 Docker: version 1.12.0, build 8eab29e

friism commented 8 years ago

@londoncalling it might be worth adding this COMODO thing to the FAQ: https://forums.comodo.com/bug-reports-cis/comodo-firewall-began-conflict-with-hyperv-t116351.0.html

Morgy93 commented 8 years ago

@friism @londoncalling It might not just be limited to Comodo:

Hi,

I was having the exact same issue and have found that this problem is not limited to just COMODO software but, most of the 3rd party anti virus and firewall providers. It would seem that Microsoft have a problem and didn't do adequate testing prior to the Anniversary release as, if it was just one provider then you could blame the provider but not 6 that i have tested.

by SuperCoach91 https://social.technet.microsoft.com/Forums/windows/en-US/2df51b2d-18d3-463e-8fe5-3517bfb2950f/vm-failed-to-start-worker-process-the-process-terminated-unexpectedly?forum=win10itprovirt

rn commented 8 years ago

@chen-xin thanks for reporting. Did this happen after you updated to 10.0.14393, ie did you have an installation of Docker for Windows before the windows upgrade?

@juhams thanks for reporting and glad it's working for you. I'm curious as to why the virtual disk wasn't there in the first place....but this might just be one of these things which might be hard to reproduce.

londoncalling commented 8 years ago

@Morgy93 thanks for providing more info on this. @friism @rneugeba I'll further update the FAQ and troubleshooting to clarify that this issue extends to many applications. (The first pass on this in the docs, w/focus on Comodo, is here. I'll update it today: https://docs.docker.com/docker-for-windows/troubleshoot/#/docker-fails-to-start-when-comodo-firewall-is-installed and https://docs.docker.com/docker-for-windows/faqs/#/why-does-docker-for-windows-fail-to-start-when-the-comodo-firewall-is-installed.)

sdevane commented 8 years ago

Yes. Comodo was the problem for me too.

On 6 September 2016 at 18:49, Victoria Bialas notifications@github.com wrote:

@Morgy93 https://github.com/Morgy93 thanks for providing more info on this. @friism https://github.com/friism @rneugeba https://github.com/rneugeba I'll further update the FAQ and troubleshooting to clarify that this issue extends to many applications. (The first pass on this in the docs, w/focus on Comodo, is here. I'll update it today: https://docs.docker.com/docker-for-windows/ troubleshoot/#/docker-fails-to-start-when-comodo-firewall-is-installed and https://docs.docker.com/docker-for-windows/faqs/#/why- does-docker-for-windows-fail-to-start-when-the-comodo- firewall-is-installed.)

— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub https://github.com/docker/for-win/issues/27#issuecomment-245032190, or mute the thread https://github.com/notifications/unsubscribe-auth/AO4w-CqfN0FTvOINoLz2M2T8Sbw5FA41ks5qnaewgaJpZM4Jd7N3 .

Best regards

Stephen Devane

jlengrand commented 8 years ago

Hi there,

I have been trying all of the suggestions above for hours without success so far.

MY diagnostic id is : 6D065BF0-47D5-4CEA-B931-BD18015F5257/2016-09-07_23-39-03

Reinstalling, Using the beta 23, deleting the MobyLinuxVM, disabling/reenabling network adapters, nothing has worked so far. My MobyLinuxVM stays in a starting state and will not move from it whatever I do. This in turn blocks Docker .

Hyper-V screenshot

Is there anything obvious someone can see in the logs that I might have missed? I had Docker working fine for long, until I decided to install the anniversary update . . .

I think the most relevant part of the log is here :

[23:38:35.990][PowerShell ][Info ] Run script with parameters: -Create True -SwitchSubnetAddress

10.0.75.0 -SwitchSubnetMaskSize 24 -CPUs 2 -Memory 2048 -IsoFile C:\Program Files\Docker\Docker\Resources\mobylinux.iso... [23:38:36.303][HyperV ][Info ] Using existing Switch: DockerNAT [23:38:36.457][HyperV ][Info ] Using existing Switch IP address [23:38:36.485][HyperV ][Info ] Using existing: MobyLinuxVM (state = Off) [23:38:37.649][HyperV ][Info ] Hyper-V is running [23:38:37.650][HyperV ][Info ] Create [23:38:37.650][PowerShell ][Info ] Run script with parameters: -Create True -SwitchSubnetAddress 10.0.75.0 -SwitchSubnetMaskSize 24 -CPUs 2 -Memory 2048 -IsoFile C:\Program Files\Docker\Docker\Resources\mobylinux.iso... [23:38:37.720][HyperV ][Info ] Using existing Switch: DockerNAT [23:38:37.752][HyperV ][Info ] Using existing Switch IP address [23:38:37.768][HyperV ][Info ] Using existing: MobyLinuxVM (state = Off) [23:38:37.779][NamedPipeServer][Error ] Unable to execute Start: Unable to create: Modifying the properties of the device 'Memory' failed.

The operation cannot be performed while the object is in its current state. at , : line 332 at Docker.Backend.HyperV.RunScript(String action, Dictionary`2 parameters) at Docker.Backend.ContainerEngine.Linux.Start(Settings settings) at Docker.Core.Pipe.NamedPipeServer.<>c__DisplayClass7_0.b__0(Object[] parameters) at Docker.Core.Pipe.NamedPipeServer.RunAction(String action, Object[] parameters) [23:38:37.780][NamedPipeClient][Error ] Unable to send Start: Unable to create: Modifying the properties of the device 'Memory' failed.

Thanks

EDIT : I have been able to finally get Docker running by removing the "KPN VeiligheidsPakket" that we run at the office (A security tool that among other things includes Mcafee). I thought about it when I was able to reproduce the issue on my colleague's computer as well. Just to be sure, I installed Docker with my Ethernet cable plugged out, not sure it helped.

So it looks like the issue is not only related to Comodo.

sdevane commented 8 years ago

On 8 September 2016 at 14:09, julien Lengrand-Lambert < notifications@github.com> wrote:

MobyLinuxVM refuses to start

check that the Windows firewall is ON. and that the HyperVM ferature is enabled... also that Comodo firewall or AV is not installed - as we discovered issues with it and Docker.

Best regards

Stephen Devane

jlengrand commented 8 years ago

Thanks @sdevane for the answer. As written above, the issue was solved by uninstalling a security package, but one that was not on the list yet :).

Cheers

ljfolino commented 7 years ago

To add some more detail I was able to work around COMODO by adding c:\windows\system32\vmwp.exe to the "Detect shellcode injection" exclusion in the HIPS Settings. This got Hyper-V working and vagrant, but docker is still throwing the same errors as stated above.

rn commented 7 years ago

can we close this issue?

londoncalling commented 7 years ago

@rneugeba well it is now very meticulously documented, and I don't know that there is any development side work that can be done ... it sounds like it's a Windows OS compatibility problem. Seems like you could close it.

rn commented 7 years ago

closing. please re-open if the problem persists and not covered by the docs.

oparoz commented 7 years ago

The statement in the documentation is no longer true. The Comodo firewall no longer has issues with Hyper-V.

londoncalling commented 7 years ago

@oparoz ,thanks I will update the docs on the next go-round

peijie commented 7 years ago

I have same issue after upgrade to windows 10 anniversary version. The MobyLinuxVM is not created. The following is the error message:

Unable to create: Hyper-V encountered an error trying to access an object on computer 'HOME-NOTEBOOK' because the object was not found. The object might have been deleted. Verify that the Virtual Machine Management service on the computer is running. at , : line 340 at Docker.Core.Pipe.NamedPipeClient.TrySend(String action, Object[] parameters) at Docker.Core.Pipe.NamedPipeClient.Send(String action, Object[] parameters) at Docker.Core.Backend.BackendClient.Start(Settings settings) at Docker.Actions.DoStart(Settings settings, Boolean showWelcomeWindow) at Docker.Actions.<>cDisplayClass13_0.b0() at Docker.Core.TaskQueue.<>cDisplayClass18_0.<.ctor>b1()

peijie commented 7 years ago

i fixed the issue by restarting the docker service and start docker desktop again

damtur commented 7 years ago

I have exact same problem with docker Version: 1.12.3 (8488) Channel: Stable

Unable to create: The running command stopped because the preference variable "ErrorActionPreference" or common parameter is set to Stop: Hyper-V encountered an error trying to access an object on computer 'DTURCZYNSKI15L' because the object was not found. The object might have been deleted, or you might not have permission to perform the task. Verify that the Virtual Machine Management service on the computer is running. If the service is running, try to perform the task again by using Run as Administrator.
at New-MobyLinuxVM, <No file>: line 242
at <ScriptBlock>, <No file>: line 362
   at Docker.Backend.HyperV.RunScript(String action, Dictionary`2 parameters)
   at Docker.Backend.ContainerEngine.Linux.Start(Settings settings)
   at Docker.Core.Pipe.NamedPipeServer.<>c__DisplayClass8_0.<Register>b__0(Object[] parameters)
   at Docker.Core.Pipe.NamedPipeServer.RunAction(String action, Object[] parameters)

Log:

Version: 1.12.3 (8488)
Channel: Stable
Sha1: d63ec34a49019d2e0b29d7706e57ccfc721ddb8f
Started on: 2016/11/17 11:50:32.094
Resources: C:\Program Files\Docker\Docker\Resources
OS: Windows 10 Enterprise
Edition: Enterprise
Id: 1607
Build: 14393
BuildLabName: 14393.447.amd64fre.rs1_release_inmarket.161102-0100
You can send feedback, including this log file, at https://github.com/docker/for-win/issues
[11:50:32.063][Tracking       ][Info   ] Crash report and usage statistics are enabled
[11:50:32.110][SegmentApi     ][Info   ] Usage statistic: appLaunched
[11:50:32.141][NamedPipeClient][Info   ] Sending Version()...
[11:50:32.141][NamedPipeClient][Info   ] Received response for Version
[11:50:32.141][SegmentApi     ][Info   ] Usage statistic: heartbeat
[11:50:12.889][BackendServer  ][Info   ] Started
[11:50:12.889][Moby           ][Info   ] Connecting...
[11:50:32.141][NamedPipeServer][Info   ] Version()
[11:50:32.141][NamedPipeServer][Info   ] Version done.
[11:50:32.326][Notifications  ][Info   ] Docker is starting...
[11:50:32.326][Updater        ][Info   ] Checking for updates on channel Stable...
[11:50:32.342][NamedPipeClient][Info   ] Sending Start(Docker.Core.Settings)...
[11:50:32.342][NamedPipeServer][Info   ] Start(Docker.Core.Settings)
[11:50:32.342][HyperVGuids    ][Info   ] Installing GUIDs...
[11:50:32.342][HyperVGuids    ][Info   ] GUIDs installed
[11:50:32.342][Firewall       ][Info   ] Opening ports for C:\Program Files\Docker\Docker\Resources\com.docker.proxy.exe...
[11:50:32.459][Updater        ][Info   ] Local build 8488 is as good as the remote 8488 on channel Stable
[11:50:43.584][SegmentApi     ][Info   ] Usage statistic: actionMenuSettings
[11:51:40.800][Firewall       ][Info   ] Ports are opened
[11:51:40.802][HyperV         ][Info   ] Create
[11:51:40.807][PowerShell     ][Info   ] Run script with parameters: -Create True -SwitchSubnetAddress 10.0.75.0 -SwitchSubnetMaskSize 24 -CPUs 2 -Memory 2048 -IsoFile C:\Program Files\Docker\Docker\Resources\mobylinux.iso...
[11:51:42.581][HyperV         ][Info   ] Creating Switch: DockerNAT...
[11:51:43.793][HyperV         ][Info   ] Switch created.
[11:51:44.352][HyperV         ][Info   ] Set IP address on switch
[11:51:45.517][HyperV         ][Info   ] Creating VM MobyLinuxVM...
[11:51:46.623][HyperV         ][Info   ] Setting CPUs to 2 and Memory to 2048 MB
[11:51:46.879][HyperV         ][Info   ] Creating dynamic VHD: C:\Users\Public\Documents\Hyper-V\Virtual Hard Disks\MobyLinuxVM.vhdx
[11:51:47.971][HyperV         ][Info   ] Attach VHD C:\Users\Public\Documents\Hyper-V\Virtual Hard Disks\MobyLinuxVM.vhdx
[11:51:48.413][HyperV         ][Info   ] Connect Internal Switch DockerNAT
[11:51:48.616][HyperV         ][Info   ] Attach DVD C:\Program Files\Docker\Docker\Resources\mobylinux.iso
[11:51:49.070][PowerShell     ][Info   ] Run script 'Import-Module Dism; Get-WindowsOptionalFeature -Online | where FeatureName -like "*Hyper-V*" | where State -ne Enabled'...
[11:51:50.541][HyperV         ][Info   ] Hyper-V is running
[11:51:50.543][HyperV         ][Info   ] Create
[11:51:50.544][PowerShell     ][Info   ] Run script with parameters: -Create True -SwitchSubnetAddress 10.0.75.0 -SwitchSubnetMaskSize 24 -CPUs 2 -Memory 2048 -IsoFile C:\Program Files\Docker\Docker\Resources\mobylinux.iso...
[11:51:50.833][HyperV         ][Info   ] Using existing Switch: DockerNAT
[11:51:50.896][HyperV         ][Info   ] Using existing Switch IP address
[11:51:50.921][HyperV         ][Info   ] Setting CPUs to 2 and Memory to 2048 MB
[11:51:51.037][HyperV         ][Info   ] Connect Internal Switch DockerNAT
[11:51:51.121][NamedPipeServer][Error  ] Unable to execute Start: Unable to create: The running command stopped because the preference variable "ErrorActionPreference" or common parameter is set to Stop: Hyper-V encountered an error trying to access an object on computer 'DTURCZYNSKI15L' because the object was not found. The object might have been deleted, or you might not have permission to perform the task. Verify that the Virtual Machine Management service on the computer is running. If the service is running, try to perform the task again by using Run as Administrator.
at New-MobyLinuxVM, <No file>: line 242
at <ScriptBlock>, <No file>: line 362    at Docker.Backend.HyperV.RunScript(String action, Dictionary`2 parameters)
   at Docker.Backend.ContainerEngine.Linux.Start(Settings settings)
   at Docker.Core.Pipe.NamedPipeServer.<>c__DisplayClass8_0.<Register>b__0(Object[] parameters)
   at Docker.Core.Pipe.NamedPipeServer.RunAction(String action, Object[] parameters)
[11:51:51.181][NamedPipeClient][Error  ] Unable to send Start: Unable to create: The running command stopped because the preference variable "ErrorActionPreference" or common parameter is set to Stop: Hyper-V encountered an error trying to access an object on computer 'DTURCZYNSKI15L' because the object was not found. The object might have been deleted, or you might not have permission to perform the task. Verify that the Virtual Machine Management service on the computer is running. If the service is running, try to perform the task again by using Run as Administrator.
at New-MobyLinuxVM, <No file>: line 242
at <ScriptBlock>, <No file>: line 362
[11:51:51.183][Notifications  ][Error  ] Unable to create: The running command stopped because the preference variable "ErrorActionPreference" or common parameter is set to Stop: Hyper-V encountered an error trying to access an object on computer 'DTURCZYNSKI15L' because the object was not found. The object might have been deleted, or you might not have permission to perform the task. Verify that the Virtual Machine Management service on the computer is running. If the service is running, try to perform the task again by using Run as Administrator.
at New-MobyLinuxVM, <No file>: line 242
at <ScriptBlock>, <No file>: line 362
[11:52:01.753][ErrorReportWindow][Info   ] Open logs

I've tried:

Please help :)

Morgy93 commented 7 years ago

@damtur Actually that's not the exact same problem we all encountered here. There seems to be something wrong with your Hyper-V - did you try to reinstall Hyper-V? Or tried the installation with administrator privileges?

By the way .. you should open up another issue for that one.

damtur commented 7 years ago

After weekend and doing nothing it started to work. By nothing I mean:

  1. uninstalling docker for windows
  2. Turning off Hyper-V
  3. installing docker-toolbox
  4. working with docker-toolbox
  5. doing nothing for 2 days
  6. Turning on Hyper-V again
  7. Installing docker for windows

... p.s. I've trying re-enabling Hyper-V before so I'm like ¯_(ツ)_/¯

rn commented 7 years ago

@damtur glad it works for you now! Unfortunately the switch between Virtual Box (used by toolbox) and Hyper-V (used by Docker for Windows) is nowhere near as smooth as we'd like. But unfortunately, there is fairly little we can do about this.

antonio-petricca commented 7 years ago

I get this error

Unable to create: Il comando in esecuzione è stato interrotto perché la variabile di preferenza "ErrorActionPreference" o il parametro comune è impostato su Stop: Impossibile modificare le proprietà del dispositivo 'Memoria'.

Impossibile eseguire l'operazione mentre l'oggetto è nello stato corrente. in New-MobyLinuxVM, : riga 204 in , : riga 362 in Docker.Backend.HyperV.RunScript(String action, Dictionary`2 parameters) in Docker.Backend.ContainerEngine.Linux.Start(Settings settings) in Docker.Core.Pipe.NamedPipeServer.<>c__DisplayClass8_0.b__0(Object[] parameters) in Docker.Core.Pipe.NamedPipeServer.RunAction(String action, Object[] parameters)