for-win icon indicating copy to clipboard operation
for-win copied to clipboard

Unable to start: The running command stopped because the preference variable "ErrorActionPreference" or common parameter is set to Stop: 'MobyLinuxVM' failed to start. Failed to start the virtual machine 'MobyLinuxVM' because one of the Hyper-V components is not running.

Open BrianDeJesus opened this issue 7 years ago • 14 comments

Expected behavior

Launch Docker

Actual behavior

Unable to start

Information

  • Windows Version: 10.0.14393
  • Docker for Windows Version: 2.0.0.3

Steps to reproduce the behavior

  1. Download Docker on Windows Server 2016 (Virtual Machine)
  2. Launch Docker Desktop 2b. If I run Docker with Admin powershell, I get : Program 'docker.exe' failed to run: Access is deniedAt line:1 char:1

BrianDeJesus avatar Mar 15 '19 15:03 BrianDeJesus

@BrianDeJesus I did hit similar problem and opened this issue and I got mine working with this workaround posted here. Please give it a try and see if this resolves your problem as well.

https://github.com/docker/for-win/issues/3597#issuecomment-474949164

jagraj avatar Mar 20 '19 17:03 jagraj

This might help,

1, Open "Window Security" 2, Open "App & Browser control" 3, Click "Exploit protection settings" at the bottom 4, Switch to "Program settings" tab 5, Locate "C:\WINDOWS\System32\vmcompute.exe" in the list and expand it 6, Click "Edit" 7, Scroll down to "Code flow guard (CFG)" and uncheck "Override system settings" 8, Start vmcompute from powershell "net start vmcompute"

vml19 avatar May 30 '19 16:05 vml19

Hi guys!

I solved my problem opening the Hyper-V and applying the right directory for my HD and Conf folders. To check if it's your problem as well, please follow the steps:

1 - Open Hyper-V 2 - Right-click on the virtual machine (if you have it already created) 3 - Click on Hyper-V settings 4 - Check the "Virtual Hard Disk" and "Virtual Machine" directories.

I started to have this issue after trying to change my files to another directory.

edjostenes avatar Jul 25 '19 13:07 edjostenes

Hi, this error looks like its caused by running nested virtualisation, i.e. running Docker Desktop on windows running inside a virtual machine.

For anyone that has got this working (e.g. using the Code Flow Guard fix), could you let me know which virtual machine type / provider this worked for? E.g. AWS, VirtualBox..

I would also be interested in hearing if anyone saw this error NOT using a virtual machine windows.

mikeparker avatar Sep 02 '19 13:09 mikeparker

I'm also having this issue. Running Windows 10 on Parallels on OS X. Sadly the The Code Flow Guard fix did not work.

Stack trace below:

at Docker.Core.Pipe.NamedPipeClient.<TrySendAsync>d__5.MoveNext() --- End of stack trace from previous location where exception was thrown --- at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw() at Docker.Core.Pipe.NamedPipeClient.Send(String action, Object[] parameters) at Docker.Actions.DoStart(SynchronizationContext syncCtx, Boolean showWelcomeWindow, Boolean executeAfterStartCleanup) at Docker.Actions.<>c__DisplayClass24_0.<Start>b__0() at Docker.ApiServices.TaskQueuing.TaskQueue.<>c__DisplayClass17_0.<.ctor>b__1()

joelabrahamsson avatar Sep 06 '19 17:09 joelabrahamsson

In case anyone running Parallels stumbles upon this thread: enabling nested virtualization in Parallels fixed this issue for me.

joelabrahamsson avatar Sep 06 '19 20:09 joelabrahamsson

Hi guys! I solved my problem opening the Hyper-V and applying the right directory for my HD and Conf folders. To check if it's your problem as well, please follow the steps: 1 - Open Hyper-V 2 - Right-click on the virtual machine (if you have it already created) 3 - Click on Hyper-V settings 4 - Check the "Virtual Hard Disk" and "Virtual Machine" directories. I started to have this issue after trying to change my files to another directory.

Thanks for this fix! Somehow after a Windows and docker update, I started getting this error. I created new directories for the "Virtual Hard Disk" and "Virtual Machine" and deleted the old ones. After that, Docker started up properly.

ldario avatar Sep 17 '19 17:09 ldario

I would also be interested in hearing if anyone saw this error NOT using a virtual machine windows.

@mikeparker I am running docker for windows not using a VM. Some possibly relevant details:

  • Started getting the error after I ran a script in a container that was killed after it ran out of memory. Played with the Docker memory slider and started getting this.
  • Fresh reinstall doesn't work
  • Am connecting to Docker for Windows through WSL. EDIT: error message is slightly different: [18:38:29.631][Notifications ][Error ] Unable to start - The running command stopped because the preference variable "ErrorActionPreference" or common parameter is set to Stop: 'DockerDesktopVM' failed to change state.

`... The operation failed with error code '32788'. at System.Management.Automation.Runspaces.AsyncResult.EndInvoke() at System.Management.Automation.PowerShell.EndInvoke(IAsyncResult asyncResult) at Docker.Core.PowerShell.<>c__DisplayClass13_0.b__0(IAsyncResult asyncResult) --- End of stack trace from previous location where exception was thrown --- at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw() at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task) at Docker.Core.PowerShell.d__13.MoveNext() --- End of stack trace from previous location where exception was thrown --- at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw() at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task) at Docker.Core.PowerShell.d__6.MoveNext() [18:38:29.631][NamedPipeClient ][Error ] Unable to send engine/start: Unable to start - The running command stopped because the preference variable "ErrorActionPreference" or common parameter is set to Stop: 'DockerDesktopVM' failed to change state.

The operation failed with error code '32788'. [18:38:29.631][Notifications ][Error ] Unable to start - The running command stopped because the preference variable "ErrorActionPreference" or common parameter is set to Stop: 'DockerDesktopVM' failed to change state. `

auberginekenobi avatar Oct 01 '19 01:10 auberginekenobi

@auberginekenobi unfortunately thats a completely different error message with a separate cause. I know its confusing because a lot of the powershell errors start with The running command stopped because the preference variable "ErrorActionPreference" or common parameter is set to Stop:. We've tweaked our powershell to remove this part of the error message for next release so the real error will be more obvious.

mikeparker avatar Oct 01 '19 09:10 mikeparker

Issues go stale after 90d of inactivity. Mark the issue as fresh with /remove-lifecycle stale comment. Stale issues will be closed after an additional 30d of inactivity.

Prevent issues from auto-closing with an /lifecycle frozen comment.

If this issue is safe to close now please do so.

Send feedback to Docker Community Slack channels #docker-for-mac or #docker-for-windows. /lifecycle stale

docker-robott avatar Dec 30 '19 01:12 docker-robott

I am trying to get docker working in a Windows 10 Enterprise VM running on Linux machine. I would appreciate any potential fix. Thanks

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

Failed to start the virtual machine 'DockerDesktopVM' because one of the Hyper-V components is not running.

'DockerDesktopVM' failed to start. (Virtual machine ID 14535F37-442E-4FDB-8B21-20443497D8D4)

The Virtual Machine Management Service failed to start the virtual machine 'DockerDesktopVM' because one of the Hyper-V components is not running (Virtual machine ID 14535F37-442E-4FDB-8B21-20443497D8D4).

at Docker.Core.Pipe.NamedPipeClient.d__5.MoveNext() --- End of stack trace from previous location where exception was thrown --- at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw() at Docker.Core.Pipe.NamedPipeClient.Send(String action, Object[] parameters) at Docker.Actions.DoStart(SynchronizationContext syncCtx, Boolean showWelcomeWindow, Boolean executeAfterStartCleanup) at Docker.Actions.<>c__DisplayClass24_0.b__0() at Docker.ApiServices.TaskQueuing.TaskQueue.<>c__DisplayClass17_0.<.ctor>b__1()

SandeepTechM avatar Jan 13 '20 16:01 SandeepTechM

A suggestion from @mojiwa in this thread https://github.com/docker/for-win/issues/4470 worked for me. The answer was to "expose hardware assisted virtualization to the guest OS" under CPU settings. Running Windows Server 2019 on VMware 6.7.

genemcsween avatar Jan 16 '20 15:01 genemcsween

Docker Error After Install check-windows10.docx attached word doc shows some screen shots of my issues with my installation of docker on windows10. Any ideas from anyone since we are stuck inside with the "New Normal" - Stay Safe!!

trumpet4hire avatar Apr 04 '20 15:04 trumpet4hire

Closed issues are locked after 30 days of inactivity. This helps our team focus on active issues.

If you have found a problem that seems similar to this, please open a new issue.

Send feedback to Docker Community Slack channels #docker-for-mac or #docker-for-windows. /lifecycle locked

docker-robott avatar Jul 05 '20 03:07 docker-robott