Cannot start Docker due to MobyLinuxVM virtual disk sharing issue

Expected behavior

Docker starts up correctly and creates the MobyLinuxVM

Actual behavior

Docker initializes then fails when it cannot create the MobyLinuxVM in Hyper-V due to hard disk sharing not being supported. Producing error in log: The storage where the virtual hard disk is located does not support virtual hard disk sharing.

Information

#####Diagnostic
270872BB-0D35-45AB-B6A3-4BCEEC88D641/2016-07-08_10-58-30

#####Log
[10:34:44.010][Program ][Info ] 1.12.0-rc2-beta17
[10:34:44.010][Program ][Info ] Starting on: 7/7/2016 10:34:44 AM
[10:34:44.010][Program ][Info ] Resources: C:\Program Files\Docker\Docker\Resources
[10:34:44.010][Program ][Info ] OS: Windows 10 Pro
[10:34:44.010][Program ][Info ] Edition: Professional
[10:34:44.010][Program ][Info ] Id: 1511
[10:34:44.010][Program ][Info ] Build: 10586
[10:34:44.010][Program ][Info ] BuildLabName: 10586.420.amd64fre.th2_release_sec.160527-1834
[10:34:44.010][Program ][Info ] Mixpanel Id: 270872BB-0D35-45AB-B6A3-4BCEEC88D641
[10:34:44.026][Program ][Info ] Sha1: ff18c0c63c5ff3c4a4a925d191d5592d655779d7
[10:34:44.026][Program ][Info ] You can send feedback, including this log file, at https://forums.docker.com/c/docker-for-windows
[10:34:47.537][TrackingStatus ][Info ] Crash report and usage statistics are enabled
[10:34:47.552][Mixpanel ][Info ] Usage Statistic: appLaunched
[10:34:48.834][NamedPipeClient][Info ] Sending Version()…
[10:34:48.912][NamedPipeClient][Info ] Received response for Version
[10:34:48.927][Mixpanel ][Info ] Usage Statistic: heartbeat
[10:34:33.580][BackendServer ][Info ] Started
[10:34:48.896][NamedPipeServer][Info ] Version()
[10:34:48.896][NamedPipeServer][Info ] Version done.
[10:34:51.193][NamedPipeClient][Info ] Sending Stop()…
[10:34:51.193][NamedPipeServer][Info ] Stop()
[10:34:51.193][HyperV ][Info ] Stop
[10:34:51.240][PowerShell ][Info ] Run script with parameters: -Stop True…
[10:34:51.240][Updater ][Info ] Checking for updates on channel Beta…
[10:34:52.505][Updater ][Info ] Local build 5022 is as good as the remote 5022 on channel Beta
[10:35:12.524][HyperV ][Info ] VM MobyLinuxVM does not exist
[10:35:12.540][NamedPipeClient][Info ] Received response for Stop
[10:35:12.540][NamedPipeServer][Info ] Stop done.
[10:35:12.540][NamedPipeClient][Info ] Sending Start(Docker.Core.Settings)…
[10:35:12.571][NamedPipeServer][Info ] Start(Docker.Core.Settings)
[10:35:12.571][HyperVGuids ][Info ] Installing GUIDs…
[10:35:12.571][HyperVGuids ][Info ] GUIDs installed
[10:35:12.602][Firewall ][Info ] Opening ports for C:\Program Files\Docker\Docker\Resources\com.docker.proxy.exe…
[10:35:13.649][Firewall ][Info ] Ports are opened
[10:35:13.649][HyperV ][Info ] Create
[10:35:13.649][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…
[10:35:15.790][HyperV ][Info ] Using existing Switch: DockerNAT
[10:35:18.415][HyperV ][Info ] Using existing Switch IP address
[10:35:20.071][HyperV ][Info ] VHD C:\Users\Public\Documents\Hyper-V\Virtual Hard Disks\MobyLinuxVM.vhdx already exists
[10:35:31.785][NamedPipeServer][Error ] Unable to execute Start: Failed to create VM “MobyLinuxVM”: Failed to get the disk information.

The storage where the virtual hard disk is located does not support virtual hard disk sharing. at System.Management.Automation.Interpreter.ThrowInstruction.Run(InterpretedFrame frame)
at System.Management.Automation.Interpreter.EnterTryCatchFinallyInstruction.Run(InterpretedFrame frame)
[10:35:31.863][NamedPipeClient][Error ] Unable to send Start: Failed to create VM “MobyLinuxVM”: Failed to get the disk information.

The storage where the virtual hard disk is located does not support virtual hard disk sharing.
[10:35:31.863][NamedPipeClient][Info ] Sending CheckInstallation()…
[10:35:31.879][NamedPipeServer][Info ] CheckInstallation()
[10:35:31.879][HyperV ][Info ] Check Hyper-V Windows optional feature
[10:35:31.879][PowerShell ][Info ] Run script…
[10:35:43.623][HyperV ][Info ] Hyper-V Windows feature is enabled
[10:35:43.638][NamedPipeServer][Info ] CheckInstallation done.
[10:35:43.638][NamedPipeClient][Info ] Received response for CheckInstallation
[10:35:43.638][NamedPipeClient][Info ] Sending CheckHyperVState()…
[10:35:43.654][NamedPipeServer][Info ] CheckHyperVState()
[10:35:43.654][HyperV ][Info ] Check Hyper-V Service State
[10:35:43.654][PowerShell ][Info ] Run script with parameters: -Check True…
[10:35:44.279][HyperV ][Info ] Hyper-V is running and responding
[10:35:44.279][NamedPipeClient][Info ] Received response for CheckHyperVState
[10:35:44.279][HyperV ][Info ] Hyper-V is running
[10:35:44.279][NamedPipeServer][Info ] CheckHyperVState done.
[10:35:44.279][Notifications ][Error ] Failed to create VM “MobyLinuxVM”: Failed to get the disk information.

The storage where the virtual hard disk is located does not support virtual hard disk sharing.
[10:35:44.279][NamedPipeClient][Info ] Sending GetDebugInfo()…
[10:35:44.295][NamedPipeServer][Info ] GetDebugInfo()
[10:36:09.577][NamedPipeServer][Info ] GetDebugInfo done.
[10:36:09.577][NamedPipeClient][Info ] Received response for GetDebugInfo
[10:36:09.624][Program ][Info ] Sending Bugsnag report 62a26f17-6c26-4097-a056-605403efe5bb…
[10:36:15.764][Program ][Info ] Bugsnag report 62a26f17-6c26-4097-a056-605403efe5bb senthard disk
[10:36:15.827][NamedPipeClient][Info ] Sending DownloadVmLogs()…
[10:36:15.858][NamedPipeServer][Info ] DownloadVmLogs()
[10:36:15.874][PowerShell ][Info ] Run script…
[10:36:15.905][HyperV ][Warning] Unable to download logs: The running command stopped because the preference variable “ErrorActionPreference” or common parameter is set to Stop: Hyper-V was unable to find a virtual machine with name “MobyLinuxVM”.
[10:36:15.905][NamedPipeClient][Info ] Received response for DownloadVmLogs
[10:36:15.905][NamedPipeServer][Info ] DownloadVmLogs done.
[10:37:15.421][FeedbackSettings][Info ] Open logs
[10:37:25.525][FeedbackSettings][Info ] Open logs
[11:34:49.007][Mixpanel ][Info ] Usage Statistic: heartbeat
[12:34:49.008][Mixpanel ][Info ] Usage Statistic: heartbeat
[13:34:49.024][Mixpanel ][Info ] Usage Statistic: heartbeat
[14:34:49.026][Mixpanel ][Info ] Usage Statistic: heartbeat
[15:34:49.031][Mixpanel ][Info ] Usage Statistic: heartbeat
[16:34:49.041][Mixpanel ][Info ] Usage Statistic: heartbeat
[04:07:05.005][Mixpanel ][Info ] Usage Statistic: heartbeat
[05:07:05.017][Mixpanel ][Info ] Usage Statistic: heartbeat
[06:07:05.028][Mixpanel ][Info ] Usage Statistic: heartbeat
[07:07:05.039][Mixpanel ][Info ] Usage Statistic: heartbeat
[08:07:05.045][Mixpanel ][Info ] Usage Statistic: heartbeat
[09:07:05.057][Mixpanel ][Info ] Usage Statistic: heartbeat
[09:26:11.812][FeedbackSettings][Info ] Open logs
[10:07:05.064][Mixpanel ][Info ] Usage Statistic: heartbeat
[10:40:19.504][FeedbackSettings][Info ] Upload diagnostic
[10:40:19.504][Program ][Info ] Sending Bugsnag report 7932064d-fc2f-4dff-b4c6-9a4bb23358e0…
[10:40:24.949][Program ][Info ] Bugsnag report 7932064d-fc2f-4dff-b4c6-9a4bb23358e0 sent
[10:40:24.949][NamedPipeClient][Info ] Sending DownloadVmLogs()…
[10:40:24.965][NamedPipeServer][Info ] DownloadVmLogs()
[10:40:24.965][PowerShell ][Info ] Run script…
[10:40:25.111][HyperV ][Warning] Unable to download logs: The running command stopped because the preference variable “ErrorActionPreference” or common parameter is set to Stop: Hyper-V was unable to find a virtual machine with name “MobyLinuxVM”.
[10:40:25.111][NamedPipeClient][Info ] Received response for DownloadVmLogs
[10:40:25.111][NamedPipeServer][Info ] DownloadVmLogs done.
[10:40:50.170][FeedbackSettings][Info ] Open logs

  • the output of:
    • Moby Notification > Diagose & Feedback on Windows
  • a reproducible case if this is a bug, Dockerfiles FTW
  • page URL if this is a docs issue or the name of a man page
  • host distribution and version ( OSX 10.10.x, OSX 10.11.x, Windows, etc )

Steps to reproduce the behavior

  1. Install Docker into Windows 10 Machine
  2. Reboot computer after Hyper-V installation completed
  3. Docker produces notification: "Failed to create VM “MobyLiinuxVM: failed to get the disk in…” [truncation by Docker]

My apologies, my OS and app version are as follows:

Edition Windows 10 Pro 64-bit
Version 1511
OS Build 10586.420

Docker Vesion 1.12.0

Just updated to 1.12.0-rc3-beta18 but still have the same error, the diagnostics file is below:
270872BB-0D35-45AB-B6A3-4BCEEC88D641/2016-07-08_16-32-45

The log:
s[16:32:06.854][Program ][Info ] 1.12.0-rc3-beta18
[16:32:06.869][Program ][Info ] Starting on: 7/8/2016 4:32:06 PM
[16:32:06.869][Program ][Info ] Resources: C:\Program Files\Docker\Docker\Resources
[16:32:06.869][Program ][Info ] OS: Windows 10 Pro
[16:32:06.869][Program ][Info ] Edition: Professional
[16:32:06.869][Program ][Info ] Id: 1511
[16:32:06.869][Program ][Info ] Build: 10586
[16:32:06.869][Program ][Info ] BuildLabName: 10586.420.amd64fre.th2_release_sec.160527-1834
[16:32:06.869][Program ][Info ] Mixpanel Id: 270872BB-0D35-45AB-B6A3-4BCEEC88D641
[16:32:06.869][Program ][Info ] Sha1: ec40b14c72adc0bff3b01fa8886dae7f2eee1541
[16:32:06.869][Program ][Info ] You can send feedback, including this log file, at https://forums.docker.com/c/docker-for-windows
[16:32:07.166][TrackingStatus ][Info ] Crash report and usage statistics are enabled
[16:32:07.276][Mixpanel ][Info ] Usage Statistic: appLaunched
[16:32:08.026][NamedPipeClient][Info ] Sending Version()…
[16:32:08.057][NamedPipeClient][Info ] Received response for Version
[16:32:08.057][Mixpanel ][Info ] Usage Statistic: heartbeat
[16:32:06.510][BackendServer ][Info ] Started
[16:32:08.057][NamedPipeServer][Info ] Version()
[16:32:08.057][NamedPipeServer][Info ] Version done.
[16:32:08.338][Notifications ][Info ] Docker is starting…
[16:32:08.338][Updater ][Info ] Checking for updates on channel Beta…
[16:32:08.354][NamedPipeClient][Info ] Sending Stop()…
[16:32:08.369][NamedPipeServer][Info ] Stop()
[16:32:08.369][HyperV ][Info ] Stop
[16:32:08.494][PowerShell ][Info ] Run script with parameters: -Stop True…
[16:32:09.409][Updater ][Info ] Local build 5226 is as good as the remote 5226 on channel Beta
[16:32:16.659][HyperV ][Info ] VM MobyLinuxVM does not exist
[16:32:16.659][NamedPipeClient][Info ] Received response for Stop
[16:32:16.659][NamedPipeServer][Info ] Stop done.
[16:32:16.675][NamedPipeClient][Info ] Sending Start(Docker.Core.Settings)…
[16:32:16.690][NamedPipeServer][Info ] Start(Docker.Core.Settings)
[16:32:16.690][HyperVGuids ][Info ] Installing GUIDs…
[16:32:16.690][HyperVGuids ][Info ] GUIDs installed
[16:32:16.690][Firewall ][Info ] Opening ports for C:\Program Files\Docker\Docker\Resources\com.docker.proxy.exe…
[16:32:17.300][Firewall ][Info ] Ports are opened
[16:32:17.300][HyperV ][Info ] Create
[16:32:17.300][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…
[16:32:18.065][HyperV ][Info ] Enabled workaround for Build 10586 VMSwitch issue
[16:32:24.162][HyperV ][Info ] Creating Switch: DockerNAT…
[16:32:27.693][HyperV ][Info ] Switch created.
[16:32:28.459][HyperV ][Info ] Set IP address on switch
[16:32:29.724][HyperV ][Info ] VHD C:\Users\Public\Documents\Hyper-V\Virtual Hard Disks\MobyLinuxVM.vhdx already exists
[16:32:30.193][NamedPipeServer][Error ] Unable to execute Start: Failed to create VM “MobyLinuxVM”: Failed to get the disk information.

The storage where the virtual hard disk is located does not support virtual hard disk sharing. at System.Management.Automation.Interpreter.ThrowInstruction.Run(InterpretedFrame frame)
at System.Management.Automation.Interpreter.EnterTryCatchFinallyInstruction.Run(InterpretedFrame frame)
[16:32:30.240][NamedPipeClient][Error ] Unable to send Start: Failed to create VM “MobyLinuxVM”: Failed to get the disk information.

The storage where the virtual hard disk is located does not support virtual hard disk sharing.
[16:32:30.240][NamedPipeClient][Info ] Sending CheckInstallation()…
[16:32:30.271][NamedPipeServer][Info ] CheckInstallation()
[16:32:30.271][HyperV ][Info ] Check Hyper-V Windows optional feature
[16:32:30.271][PowerShell ][Info ] Run script…
[16:32:32.115][HyperV ][Info ] Hyper-V Windows feature is enabled
[16:32:32.115][NamedPipeClient][Info ] Received response for CheckInstallation
[16:32:32.115][NamedPipeServer][Info ] CheckInstallation done.
[16:32:32.115][NamedPipeClient][Info ] Sending CheckHyperVState()…
[16:32:32.131][NamedPipeServer][Info ] CheckHyperVState()
[16:32:32.131][HyperV ][Info ] Check Hyper-V Service State
[16:32:32.131][PowerShell ][Info ] Run script with parameters: -Check True…
[16:32:32.834][HyperV ][Info ] Hyper-V is running and responding
[16:32:32.834][NamedPipeClient][Info ] Received response for CheckHyperVState
[16:32:32.834][HyperV ][Info ] Hyper-V is running
[16:32:32.834][NamedPipeServer][Info ] CheckHyperVState done.
[16:32:32.834][Notifications ][Error ] Failed to create VM “MobyLinuxVM”: Failed to get the disk information.

The storage where the virtual hard disk is located does not support virtual hard disk sharing.
[16:32:32.834][NamedPipeClient][Info ] Sending GetDebugInfo()…
[16:32:32.849][NamedPipeServer][Info ] GetDebugInfo()
[16:32:42.628][NamedPipeServer][Info ] GetDebugInfo done.
[16:32:42.628][NamedPipeClient][Info ] Received response for GetDebugInfo
[16:32:42.644][Program ][Info ] Sending Bugsnag report 773fb9d5-fad6-4908-b135-574ccd0805d6…
[16:32:45.597][Program ][Info ] Bugsnag report 773fb9d5-fad6-4908-b135-574ccd0805d6 sent
[16:32:45.597][NamedPipeClient][Info ] Sending DownloadVmLogs()…
[16:32:45.597][NamedPipeServer][Info ] DownloadVmLogs()
[16:32:45.597][PowerShell ][Info ] Run script…
[16:32:45.644][HyperV ][Warning] Unable to download logs: The running command stopped because the preference variable “ErrorActionPreference” or common parameter is set to Stop: Hyper-V was unable to find a virtual machine with name “MobyLinuxVM”.
[16:32:45.644][NamedPipeClient][Info ] Received response for DownloadVmLogs
[16:32:45.644][NamedPipeServer][Info ] DownloadVmLogs done.
[16:34:09.934][ErrorReportWindow][Info ] Open logs

So, I had the same problem and I used to solve it!
Here’s what I’ve did:

  1. I’ve installed all windows updates for my Windows 10 x64
  2. Reinstalled Hyper-V
    After that Docker managed to create a VM and everything works) Good luck!
1 Like

Awesome, it worked! Thanks!

Hyper-V was the issue, once it was removed, machine rebooted, hyper-v added, machine rebooted, Docker started (and failed), machine rebooted then I could see MobyLinuxVM in Hyper-V along with Docker starting successfully!

I had tried reinstalling Hyper-V in the past however I don’t believe I did the reboot between adding and removing, which was a rookie error on my part.

Thanks again.

+1 for uninstalling Hyper-V, rebooting, re-installing, rebooting. Worked perfectly. Thanks to you all.