{"action":"created","issue":{"url":"https://api.github.com/repos/docker/for-win/issues/65","repository_url":"https://api.github.com/repos/docker/for-win","labels_url":"https://api.github.com/repos/docker/for-win/issues/65/labels{/name}","comments_url":"https://api.github.com/repos/docker/for-win/issues/65/comments","events_url":"https://api.github.com/repos/docker/for-win/issues/65/events","html_url":"https://github.com/docker/for-win/issues/65","id":174031222,"number":65,"title":"powershell cannot find hyper-v module on Docker startup (\"The specified module 'Hyper-V' was not loaded because no valid module file was found in any module directory.\")","user":{"login":"pcarrier","id":8641,"avatar_url":"https://avatars.githubusercontent.com/u/8641?v=3","gravatar_id":"","url":"https://api.github.com/users/pcarrier","html_url":"https://github.com/pcarrier","followers_url":"https://api.github.com/users/pcarrier/followers","following_url":"https://api.github.com/users/pcarrier/following{/other_user}","gists_url":"https://api.github.com/users/pcarrier/gists{/gist_id}","starred_url":"https://api.github.com/users/pcarrier/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/pcarrier/subscriptions","organizations_url":"https://api.github.com/users/pcarrier/orgs","repos_url":"https://api.github.com/users/pcarrier/repos","events_url":"https://api.github.com/users/pcarrier/events{/privacy}","received_events_url":"https://api.github.com/users/pcarrier/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/docker/for-win/labels/area/hyper-v","name":"area/hyper-v","color":"fbca04"},{"url":"https://api.github.com/repos/docker/for-win/labels/status/more-info-needed","name":"status/more-info-needed","color":"5319e7"},{"url":"https://api.github.com/repos/docker/for-win/labels/version/1.12.0","name":"version/1.12.0","color":"ededed"},{"url":"https://api.github.com/repos/docker/for-win/labels/version/beta24","name":"version/beta24","color":"ededed"}],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":4,"created_at":"2016-08-30T14:16:22Z","updated_at":"2016-09-01T17:20:28Z","closed_at":"2016-09-01T17:20:28Z","body":"### Expected behavior\r\n\r\nDocker starts happily on Windows 10 after enabling all Hyper-V-related Windows features, including \"Hyper-V Module for Windows PowerShell\".\r\n\r\n### Actual behavior\r\n\r\nOn startup, \"An error occured\" window pops up with the following output:\r\n\r\n```\r\nUnable to create: The running command stopped because the preference variable \"ErrorActionPreference\" or common parameter is set to Stop: The specified module 'Hyper-V' was not loaded because no valid module file was found in any module directory.\r\nat <ScriptBlock>, <No file>: line 76\r\n   at Docker.Backend.HyperV.RunScript(String action, Dictionary`2 parameters)\r\n   at Docker.Backend.LinuxContainersEngine.Start(Settings settings)\r\n   at Docker.Core.Pipe.NamedPipeServer.<>c__DisplayClass7_0.<Register>b__0(Object[] parameters)\r\n   at Docker.Core.Pipe.NamedPipeServer.RunAction(String action, Object[] parameters)\r\n```\r\n\r\nThe whale stays red.\r\n\r\nTurning the Hyper-V and PowerShell-related Windows features off, rebooting, turning them back on, rebooting, etc. doesn't help.\r\n\r\n### Information\r\n\r\n- Diagnostic ID: BB011AE5-130A-445A-9799-C76523151AF4/2016-08-30_07-00-07\r\n- Windows 10 Pro, 10.0.14393\r\n- Tried latest Docker for Windows stable and beta (infos here were collected with 1.12.1-beta24)\r\n- In a Powershell window, started from the start menu:\r\n\r\n```\r\nPS C:\\Users\\pcarrier> $PSVersionTable\r\n\r\nName                           Value\r\n----                           -----\r\nPSVersion                      5.1.14393.82\r\nPSEdition                      Desktop\r\nPSCompatibleVersions           {1.0, 2.0, 3.0, 4.0...}\r\nBuildVersion                   10.0.14393.82\r\nCLRVersion                     4.0.30319.42000\r\nWSManStackVersion              3.0\r\nPSRemotingProtocolVersion      2.3\r\nSerializationVersion           1.1.0.1\r\n```\r\n\r\n```\r\nPS C:\\Users\\pcarrier> $PsHome\r\nC:\\Windows\\System32\\WindowsPowerShell\\v1.0\r\n```\r\n\r\n```\r\nPS C:\\Users\\pcarrier> ls env:\r\nName                           Value\r\n----                           -----\r\nALLUSERSPROFILE                C:\\ProgramData\r\nAPPDATA                        C:\\Users\\pcarrier\\AppData\\Roaming\r\nCommonProgramFiles             C:\\Program Files\\Common Files\r\nCommonProgramFiles(x86)        C:\\Program Files (x86)\\Common Files\r\nCommonProgramW6432             C:\\Program Files\\Common Files\r\nCOMPUTERNAME                   PCARRIER-DELL\r\nComSpec                        C:\\Windows\\system32\\cmd.exe\r\nDEPLOY_HOSTNAME                galaxy.meteor.com\r\nFPS_BROWSER_APP_PROFILE_STRING Internet Explorer\r\nFPS_BROWSER_USER_PROFILE_ST... Default\r\nGOPATH                         C:\\projects\\go\r\nGOROOT                         C:\\opt\\go\r\nHOMEDRIVE                      C:\r\nHOMEPATH                       \\Users\\pcarrier\r\nJAVA_HOME                      C:\\Program Files\\Java\\jdk1.8.0_102\r\nLANG                           en_US.UTF-8\r\nLC_COLLATE                     C\r\nLOCALAPPDATA                   C:\\Users\\pcarrier\\AppData\\Local\r\nLOGONSERVER                    \\\\PCARRIER-DELL\r\nMETEOR_WAREHOUSE_DIR           C:\\opt\\meteor\r\nMSYS                           winsymlinks:nativestrict\r\nMSYS2_PATH_TYPE                inherit\r\nNUMBER_OF_PROCESSORS           8\r\nOS                             Windows_NT\r\nPath                           C:\\Program Files\\Docker\\Docker\\Resources\\bin;C:\\Users\\pcarrier\\bin;C:\\Users\\pcarrier\\.gem\\ruby\\2.3.0\\bin;C:\\Users\\pcarrier\\.npm;C:\\projects\\mdgscripts\\bin;C:\\projects\\go\\bin;C:\\opt\\go\\bin;C:\\opt\\meteor;C:\\opt\\subl;C:\\opt\\vscode\\bin;C:\\opt\\msys64\\usr\\local\\bin;C:\\opt\\msys64\\usr\\bin;C:\\opt\\msys64\\mingw64\\bin;C:\\opt\\msys64\\mingw32\\bin;C:\\opt\\sysinternals;C:\\Program Files\\Docker\\Docker\\Resources\\bin;C:\\ProgramData\\Oracle\\Java\\javapath;C:\\Windows\\system32;C:\\Windows;C:\\Windows\\System32\\Wbem;C:\\Program Files (x86)\\Windows Kits\\10\\Windows Performance Toolkit\\;C:\\Users\\pcarrier\\AppData\\Local\\Google\\Cloud SDK\\google-cloud-sdk\\bin\r\nPATHEXT                        .COM;.EXE;.BAT;.CMD;.VBS;.VBE;.JS;.JSE;.WSF;.WSH;.MSC;.CPL\r\nPROCESSOR_ARCHITECTURE         AMD64\r\nPROCESSOR_IDENTIFIER           Intel64 Family 6 Model 94 Stepping 3, GenuineIntel\r\nPROCESSOR_LEVEL                6\r\nPROCESSOR_REVISION             5e03\r\nProgramData                    C:\\ProgramData\r\nProgramFiles                   C:\\Program Files\r\nProgramFiles(x86)              C:\\Program Files (x86)\r\nProgramW6432                   C:\\Program Files\r\nPSModulePath                   C:\\Users\\pcarrier\\Documents\\WindowsPowerShell\\Modules;;C:\\Program Files\\WindowsPowerShell\\Modules\r\nPUBLIC                         C:\\Users\\Public\r\nPYTHONIOENCODING               utf-8\r\nSESSIONNAME                    Console\r\nSystemDrive                    C:\r\nSystemRoot                     C:\\Windows\r\nTEMP                           C:\\Users\\pcarrier\\AppData\\Local\\Temp\r\nTMP                            C:\\Users\\pcarrier\\AppData\\Local\\Temp\r\nUSERDOMAIN                     PCARRIER-DELL\r\nUSERDOMAIN_ROAMINGPROFILE      PCARRIER-DELL\r\nUSERNAME                       pcarrier\r\nUSERPROFILE                    C:\\Users\\pcarrier\r\nVISUAL                         subl -w\r\nVS140COMNTOOLS                 C:\\Program Files (x86)\\Microsoft Visual Studio 14.0\\Common7\\Tools\\\r\nwindir                         C:\\Windows\r\n```\r\n\r\n```\r\nPS C:\\Users\\pcarrier> Get-Module -ListAvailable\r\n\r\n\r\n    Directory: C:\\Program Files\\WindowsPowerShell\\Modules\r\n\r\n\r\nModuleType Version    Name                                ExportedCommands\r\n---------- -------    ----                                ----------------\r\nScript     1.0.1      Microsoft.PowerShell.Operation.V... {Get-OperationValidation, Invoke-OperationValidation}\r\nBinary     1.0.0.1    PackageManagement                   {Find-Package, Get-Package, Get-PackageProvider, Get-PackageSource...}\r\nScript     3.4.0      Pester                              {Describe, Context, It, Should...}\r\nScript     1.0.0.1    PowerShellGet                       {Install-Module, Find-Module, Save-Module, Update-Module...}\r\nScript     1.2        PSReadline                          {Get-PSReadlineKeyHandler, Set-PSReadlineKeyHandler, Remove-PSReadlineKeyHandler, Get-PSReadlineOption...}\r\n\r\n\r\n    Directory: C:\\windows\\system32\\windowspowershell\\v1.0\\Modules\r\n\r\n\r\nModuleType Version    Name                                ExportedCommands\r\n---------- -------    ----                                ----------------\r\nManifest   1.0.0.0    AppBackgroundTask                   {Disable-AppBackgroundTaskDiagnosticLog, Enable-AppBackgroundTaskDiagnosticLog, Set-AppBackgroundTaskResourc...\r\nManifest   2.0.0.0    AppLocker                           {Get-AppLockerFileInformation, Get-AppLockerPolicy, New-AppLockerPolicy, Set-AppLockerPolicy...}\r\nManifest   1.0.0.0    AppvClient                          {Add-AppvClientConnectionGroup, Add-AppvClientPackage, Add-AppvPublishingServer, Disable-Appv...}\r\nManifest   2.0.0.0    Appx                                {Add-AppxPackage, Get-AppxPackage, Get-AppxPackageManifest, Remove-AppxPackage...}\r\nScript     1.0.0.0    AssignedAccess                      {Clear-AssignedAccess, Get-AssignedAccess, Set-AssignedAccess}\r\nManifest   1.0.0.0    BitLocker                           {Unlock-BitLocker, Suspend-BitLocker, Resume-BitLocker, Remove-BitLockerKeyProtector...}\r\nManifest   2.0.0.0    BitsTransfer                        {Add-BitsFile, Complete-BitsTransfer, Get-BitsTransfer, Remove-BitsTransfer...}\r\nManifest   1.0.0.0    BranchCache                         {Add-BCDataCacheExtension, Clear-BCCache, Disable-BC, Disable-BCDowngrading...}\r\nManifest   1.0.0.0    CimCmdlets                          {Get-CimAssociatedInstance, Get-CimClass, Get-CimInstance, Get-CimSession...}\r\nManifest   1.0        ConfigCI                            {Get-SystemDriver, New-CIPolicyRule, New-CIPolicy, Get-CIPolicy...}\r\nBinary     1.0.0.0    Containers                          {Add-ContainerNetworkAdapter, Add-ContainerNetworkAdapterStaticMapping, Get-ContainerNetworkAdapterStaticMap...\r\nManifest   1.0        Defender                            {Get-MpPreference, Set-MpPreference, Add-MpPreference, Remove-MpPreference...}\r\nManifest   1.0.0.0    DirectAccessClientComponents        {Disable-DAManualEntryPointSelection, Enable-DAManualEntryPointSelection, Get-DAClientExperienceConfiguratio...\r\nScript     3.0        Dism                                {Add-AppxProvisionedPackage, Add-WindowsDriver, Add-WindowsCapability, Add-WindowsImage...}\r\nManifest   1.0.0.0    DnsClient                           {Resolve-DnsName, Clear-DnsClientCache, Get-DnsClient, Get-DnsClientCache...}\r\nManifest   1.0.0.0    EventTracingManagement              {New-EtwTraceSession, Get-EtwTraceSession, Set-EtwTraceSession, Send-EtwTraceSession...}\r\nManifest   1.0.0.0    HgsClient                           {Get-HgsAttestationBaselinePolicy, Get-HgsClientConfiguration, Set-HgsClientConfiguration, New-HgsGuardian...}\r\nManifest   1.0.0.0    HgsDiagnostics                      {New-HgsTraceTarget, Get-HgsTrace, Get-HgsTraceFileData, Test-HgsTraceTarget}\r\nBinary     1.0.0.0    HostComputeService                  {Get-ComputeProcess, Stop-ComputeProcess}\r\nBinary     2.0.0.0    Hyper-V                             {Add-VMAssignableDevice, Add-VMDvdDrive, Add-VMFibreChannelHba, Add-VMGpuPartitionAdapter...}\r\nBinary     1.1        Hyper-V                             {Add-VMDvdDrive, Add-VMFibreChannelHba, Add-VMHardDiskDrive, Add-VMMigrationNetwork...}\r\nManifest   2.0.0.0    International                       {Get-WinDefaultInputMethodOverride, Set-WinDefaultInputMethodOverride, Get-WinHomeLocation, Set-WinHomeLocat...\r\nManifest   1.0.0.0    iSCSI                               {Get-IscsiTargetPortal, New-IscsiTargetPortal, Remove-IscsiTargetPortal, Update-IscsiTargetPortal...}\r\nScript     1.0.0.0    ISE                                 {New-IseSnippet, Import-IseSnippet, Get-IseSnippet}\r\nManifest   1.0.0.0    Kds                                 {Add-KdsRootKey, Get-KdsRootKey, Test-KdsRootKey, Set-KdsConfiguration...}\r\nManifest   1.0.1.0    Microsoft.PowerShell.Archive        {Compress-Archive, Expand-Archive}\r\nManifest   3.0.0.0    Microsoft.PowerShell.Diagnostics    {Get-WinEvent, Get-Counter, Import-Counter, Export-Counter...}\r\nManifest   3.0.0.0    Microsoft.PowerShell.Host           {Start-Transcript, Stop-Transcript}\r\nManifest   1.0.0.0    Microsoft.PowerShell.LocalAccounts  {Add-LocalGroupMember, Disable-LocalUser, Enable-LocalUser, Get-LocalGroup...}\r\nManifest   3.1.0.0    Microsoft.PowerShell.Management     {Add-Content, Clear-Content, Clear-ItemProperty, Join-Path...}\r\nScript     1.0        Microsoft.PowerShell.ODataUtils     Export-ODataEndpointProxy\r\nManifest   3.0.0.0    Microsoft.PowerShell.Security       {Get-Acl, Set-Acl, Get-PfxCertificate, Get-Credential...}\r\nManifest   3.1.0.0    Microsoft.PowerShell.Utility        {Format-List, Format-Custom, Format-Table, Format-Wide...}\r\nManifest   3.0.0.0    Microsoft.WSMan.Management          {Disable-WSManCredSSP, Enable-WSManCredSSP, Get-WSManCredSSP, Set-WSManQuickConfig...}\r\nManifest   1.0        MMAgent                             {Disable-MMAgent, Enable-MMAgent, Set-MMAgent, Get-MMAgent...}\r\nManifest   1.0.0.0    MsDtc                               {New-DtcDiagnosticTransaction, Complete-DtcDiagnosticTransaction, Join-DtcDiagnosticResourceManager, Receive...\r\nBinary     1.0.0.0    MSMQ                                {Clear-MsmqOutgoingQueue, Clear-MsmqQueue, Enable-MsmqCertificate, Get-MsmqCertificate...}\r\nManifest   2.0.0.0    NetAdapter                          {Disable-NetAdapter, Disable-NetAdapterBinding, Disable-NetAdapterChecksumOffload, Disable-NetAdapterEncapsu...\r\nManifest   1.0.0.0    NetConnection                       {Get-NetConnectionProfile, Set-NetConnectionProfile}\r\nManifest   1.0.0.0    NetEventPacketCapture               {New-NetEventSession, Remove-NetEventSession, Get-NetEventSession, Set-NetEventSession...}\r\nManifest   2.0.0.0    NetLbfo                             {Add-NetLbfoTeamMember, Add-NetLbfoTeamNic, Get-NetLbfoTeam, Get-NetLbfoTeamMember...}\r\nManifest   1.0.0.0    NetNat                              {Get-NetNat, Get-NetNatExternalAddress, Get-NetNatStaticMapping, Get-NetNatSession...}\r\nManifest   2.0.0.0    NetQos                              {Get-NetQosPolicy, Set-NetQosPolicy, Remove-NetQosPolicy, New-NetQosPolicy}\r\nManifest   2.0.0.0    NetSecurity                         {Get-DAPolicyChange, New-NetIPsecAuthProposal, New-NetIPsecMainModeCryptoProposal, New-NetIPsecQuickModeCryp...\r\nManifest   1.0.0.0    NetSwitchTeam                       {New-NetSwitchTeam, Remove-NetSwitchTeam, Get-NetSwitchTeam, Rename-NetSwitchTeam...}\r\nManifest   1.0.0.0    NetTCPIP                            {Get-NetIPAddress, Get-NetIPInterface, Get-NetIPv4Protocol, Get-NetIPv6Protocol...}\r\nManifest   1.0.0.0    NetWNV                              {Get-NetVirtualizationProviderAddress, Get-NetVirtualizationGlobal, Get-NetVirtualizationLookupRecord, Get-N...\r\nManifest   1.0.0.0    NetworkConnectivityStatus           {Get-DAConnectionStatus, Get-NCSIPolicyConfiguration, Reset-NCSIPolicyConfiguration, Set-NCSIPolicyConfigura...\r\nManifest   1.0.0.0    NetworkSwitchManager                {Disable-NetworkSwitchEthernetPort, Enable-NetworkSwitchEthernetPort, Get-NetworkSwitchEthernetPort, Remove-...\r\nManifest   1.0.0.0    NetworkTransition                   {Add-NetIPHttpsCertBinding, Disable-NetDnsTransitionConfiguration, Disable-NetIPHttpsProfile, Disable-NetNat...\r\nManifest   1.0.0.0    PcsvDevice                          {Get-PcsvDevice, Start-PcsvDevice, Stop-PcsvDevice, Restart-PcsvDevice...}\r\nManifest   1.0.0.0    PKI                                 {Add-CertificateEnrollmentPolicyServer, Export-Certificate, Export-PfxCertificate, Get-CertificateAutoEnroll...\r\nManifest   1.0.0.0    PnpDevice                           {Get-PnpDevice, Get-PnpDeviceProperty, Enable-PnpDevice, Disable-PnpDevice}\r\nManifest   1.1        PrintManagement                     {Add-Printer, Add-PrinterDriver, Add-PrinterPort, Get-PrintConfiguration...}\r\nManifest   1.1        PSDesiredStateConfiguration         {Set-DscLocalConfigurationManager, Start-DscConfiguration, Test-DscConfiguration, Publish-DscConfiguration...}\r\nScript     1.0.0.0    PSDiagnostics                       {Disable-PSTrace, Disable-PSWSManCombinedTrace, Disable-WSManTrace, Enable-PSTrace...}\r\nBinary     1.1.0.0    PSScheduledJob                      {New-JobTrigger, Add-JobTrigger, Remove-JobTrigger, Get-JobTrigger...}\r\nManifest   2.0.0.0    PSWorkflow                          {New-PSWorkflowExecutionOption, New-PSWorkflowSession, nwsn}\r\nManifest   1.0.0.0    PSWorkflowUtility                   Invoke-AsWorkflow\r\nManifest   1.0.0.0    ScheduledTasks                      {Get-ScheduledTask, Set-ScheduledTask, Register-ScheduledTask, Unregister-ScheduledTask...}\r\nManifest   2.0.0.0    SecureBoot                          {Confirm-SecureBootUEFI, Set-SecureBootUEFI, Get-SecureBootUEFI, Format-SecureBootUEFI...}\r\nManifest   2.0.0.0    SmbShare                            {Get-SmbShare, Remove-SmbShare, Set-SmbShare, Block-SmbShareAccess...}\r\nManifest   2.0.0.0    SmbWitness                          {Get-SmbWitnessClient, Move-SmbWitnessClient, gsmbw, msmbw...}\r\nManifest   1.0.0.0    StartLayout                         {Export-StartLayout, Import-StartLayout, Get-StartApps}\r\nManifest   2.0.0.0    Storage                             {Add-InitiatorIdToMaskingSet, Add-PartitionAccessPath, Add-PhysicalDisk, Add-TargetPortToMaskingSet...}\r\nManifest   2.0.0.0    TLS                                 {New-TlsSessionTicketKey, Enable-TlsSessionTicketKey, Disable-TlsSessionTicketKey, Export-TlsSessionTicketKe...\r\nManifest   1.0.0.0    TroubleshootingPack                 {Get-TroubleshootingPack, Invoke-TroubleshootingPack}\r\nManifest   2.0.0.0    TrustedPlatformModule               {Get-Tpm, Initialize-Tpm, Clear-Tpm, Unblock-Tpm...}\r\nBinary     2.1.639.0  UEV                                 {Clear-UevConfiguration, Clear-UevAppxPackage, Restore-UevBackup, Set-UevTemplateProfile...}\r\nManifest   2.0.0.0    VpnClient                           {Add-VpnConnection, Set-VpnConnection, Remove-VpnConnection, Get-VpnConnection...}\r\nManifest   1.0.0.0    Wdac                                {Get-OdbcDriver, Set-OdbcDriver, Get-OdbcDsn, Add-OdbcDsn...}\r\nManifest   1.0.0.0    WindowsDeveloperLicense             {Get-WindowsDeveloperLicense, Unregister-WindowsDeveloperLicense, Show-WindowsDeveloperLicenseRegistration}\r\nScript     1.0        WindowsErrorReporting               {Enable-WindowsErrorReporting, Disable-WindowsErrorReporting, Get-WindowsErrorReporting}\r\nManifest   1.0.0.0    WindowsSearch                       {Get-WindowsSearchSetting, Set-WindowsSearchSetting}\r\nManifest   1.0.0.0    WindowsUpdate                       Get-WindowsUpdateLog\r\n```"},"comment":{"url":"https://api.github.com/repos/docker/for-win/issues/comments/244149159","html_url":"https://github.com/docker/for-win/issues/65#issuecomment-244149159","issue_url":"https://api.github.com/repos/docker/for-win/issues/65","id":244149159,"user":{"login":"rneugeba","id":3338098,"avatar_url":"https://avatars.githubusercontent.com/u/3338098?v=3","gravatar_id":"","url":"https://api.github.com/users/rneugeba","html_url":"https://github.com/rneugeba","followers_url":"https://api.github.com/users/rneugeba/followers","following_url":"https://api.github.com/users/rneugeba/following{/other_user}","gists_url":"https://api.github.com/users/rneugeba/gists{/gist_id}","starred_url":"https://api.github.com/users/rneugeba/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/rneugeba/subscriptions","organizations_url":"https://api.github.com/users/rneugeba/orgs","repos_url":"https://api.github.com/users/rneugeba/repos","events_url":"https://api.github.com/users/rneugeba/events{/privacy}","received_events_url":"https://api.github.com/users/rneugeba/received_events","type":"User","site_admin":false},"created_at":"2016-09-01T17:20:28Z","updated_at":"2016-09-01T17:20:28Z","body":"@pcarrier thanks for the reply. I think this is is first time we have seen this issue. I'll be closing it for now. We added some additional logging to the diagnose which should help us catch this issue should others have it too. Thanks again for reporting and following up."}}
{"actor":{"display_login":"rneugeba"}}