Docker Community Forums

Share and learn in the Docker community.

Waiting for SSH to be available

When I run the command “docker-machine --debug create --driver hyperv teste” I get the following output:

Docker Machine Version: 0.16.1, build cce350d7
Found binary path at C:\Program Files\Docker\Docker\Resources\bin\docker-machine.exe
Launching plugin server for driver hyperv
Plugin server listening at address 127.0.0.1:61001
() Calling .GetVersion
Using API Version 1
() Calling .SetConfigRaw
() Calling .GetMachineName
(flag-lookup) Calling .GetMachineName
(flag-lookup) Calling .DriverName
(flag-lookup) Calling .GetCreateFlags
Found binary path at C:\Program Files\Docker\Docker\Resources\bin\docker-machine.exe
Launching plugin server for driver hyperv
Plugin server listening at address 127.0.0.1:61003
() Calling .GetVersion
Using API Version 1
() Calling .SetConfigRaw
() Calling .GetMachineName
(teste) Calling .GetMachineName
(teste) Calling .DriverName
(teste) Calling .GetCreateFlags
(teste) Calling .SetConfigFromFlags
Reading certificate data from C:\Users\suporte.docker\machine\certs\ca.pem
Decoding PEM data…
Parsing certificate…
Reading certificate data from C:\Users\suporte.docker\machine\certs\cert.pem
Decoding PEM data…
Parsing certificate…
Running pre-create checks…
(teste) Calling .PreCreateCheck
(teste) DBG | [executing ==>] : C:\WINDOWS\System32\WindowsPowerShell\v1.0\powershell.exe -NoProfile -NonInteractive @(Get-Module -ListAvailable hyper-v).Name | Get-Unique
(teste) DBG | [stdout =====>] : Hyper-V
(teste) DBG |
(teste) DBG | [stderr =====>] :
(teste) DBG | [executing ==>] : C:\WINDOWS\System32\WindowsPowerShell\v1.0\powershell.exe -NoProfile -NonInteractive @([Security.Principal.WindowsPrincipal][Security.Principal.WindowsIdentity]::GetCurrent()).IsInRole(“S-1-5-32-578”)
(teste) DBG | [stdout =====>] : True
(teste) DBG |
(teste) DBG | [stderr =====>] :
(teste) DBG | [executing ==>] : C:\WINDOWS\System32\WindowsPowerShell\v1.0\powershell.exe -NoProfile -NonInteractive (Hyper-V\Get-VMSwitch -SwitchType External).Name
(teste) DBG | [stdout =====>] : lab07
(teste) DBG |
(teste) DBG | [stderr =====>] :
(teste) DBG | local Boot2Docker ISO version: v18.09.9
(teste) Calling .GetConfigRaw
Creating machine…
(teste) Calling .Create
(teste) DBG | local Boot2Docker ISO version: v18.09.9
(teste) Copying C:\Users\suporte.docker\machine\cache\boot2docker.iso to C:\Users\suporte.docker\machine\machines\teste\boot2docker.iso…
(teste) Creating SSH key…
(teste) DBG | [executing ==>] : C:\WINDOWS\System32\WindowsPowerShell\v1.0\powershell.exe -NoProfile -NonInteractive (Hy
per-V\Get-VMSwitch -SwitchType External).Name
(teste) Creating VM…
(teste) Using switch “lab07”
(teste) DBG | [stdout =====>] : lab07
(teste) DBG |
(teste) DBG | [stderr =====>] :
(teste) DBG | [executing ==>] : C:\WINDOWS\System32\WindowsPowerShell\v1.0\powershell.exe -NoProfile -NonInteractive @([
Security.Principal.WindowsPrincipal][Security.Principal.WindowsIdentity]::GetCurrent()).IsInRole([Security.Principal.Win
dowsBuiltInRole] “Administrator”)
(teste) DBG | [stdout =====>] : True
(teste) DBG |
(teste) DBG | [stderr =====>] :
(teste) Creating VHD
(teste) DBG | [executing ==>] : C:\WINDOWS\System32\WindowsPowerShell\v1.0\powershell.exe -NoProfile -NonInteractive Hyper-V\New-VHD -Path ‘C:\Users\suporte.docker\machine\machines\teste\fixed.vhd’ -SizeBytes 10MB -Fixed
(teste) DBG | [stdout =====>] :
(teste) DBG |
(teste) DBG | ComputerName : L702
(teste) DBG | Path : C:\Users\suporte.docker\machine\machines\teste\fixed.vhd
(teste) DBG | VhdFormat : VHD
(teste) DBG | VhdType : Fixed
(teste) DBG | FileSize : 10486272
(teste) DBG | Size : 10485760
(teste) DBG | MinimumSize :
(teste) DBG | LogicalSectorSize : 512
(teste) DBG | PhysicalSectorSize : 512
(teste) DBG | BlockSize : 0
(teste) DBG | ParentPath :
(teste) DBG | DiskIdentifier : 1CBBF388-8C60-4313-A518-3893AFBA9DDB
(teste) DBG | FragmentationPercentage : 0
(teste) DBG | Alignment : 1
(teste) DBG | Attached : False
(teste) DBG | DiskNumber :
(teste) DBG | IsPMEMCompatible : False
(teste) DBG | AddressAbstractionType : None
(teste) DBG | Number :
(teste) DBG |
(teste) DBG |
(teste) DBG |
(teste) DBG |
(teste) DBG | [stderr =====>] :
(teste) DBG | Writing magic tar header
(teste) DBG | Writing SSH key tar header
(teste) DBG | [executing ==>] : C:\WINDOWS\System32\WindowsPowerShell\v1.0\powershell.exe -NoProfile -NonInteractive Hyper-V\Convert-VHD -Path ‘C:\Users\suporte.docker\machine\machines\teste\fixed.vhd’ -DestinationPath ‘C:\Users\suporte.docker\machine\machines\teste\disk.vhd’ -VHDType Dynamic -DeleteSource
(teste) DBG | [stdout =====>] :
(teste) DBG | [stderr =====>] :
(teste) DBG | [executing ==>] : C:\WINDOWS\System32\WindowsPowerShell\v1.0\powershell.exe -NoProfile -NonInteractive Hyper-V\Resize-VHD -Path ‘C:\Users\suporte.docker\machine\machines\teste\disk.vhd’ -SizeBytes 20000MB
(teste) DBG | [stdout =====>] :
(teste) DBG | [stderr =====>] :
(teste) DBG | [executing ==>] : C:\WINDOWS\System32\WindowsPowerShell\v1.0\powershell.exe -NoProfile -NonInteractive Hyper-V\New-VM teste -Path ‘C:\Users\suporte.docker\machine\machines\teste’ -SwitchName ‘lab07’ -MemoryStartupBytes 1024MB
(teste) DBG | [stdout =====>] :
(teste) DBG | Name State CPUUsage(%) MemoryAssigned(M) Uptime Status Version
(teste) DBG | ---- ----- ----------- ----------------- ------ ------ -------
(teste) DBG | teste Off 0 0 00:00:00 Operando normalmente 8.3
(teste) DBG |
(teste) DBG |
(teste) DBG |
(teste) DBG | [stderr =====>] :
(teste) DBG | [executing ==>] : C:\WINDOWS\System32\WindowsPowerShell\v1.0\powershell.exe -NoProfile -NonInteractive Hyper-V\Set-VMDvdDrive -VMName teste -Path ‘C:\Users\suporte.docker\machine\machines\teste\boot2docker.iso’
(teste) DBG | [stdout =====>] :
(teste) DBG | [stderr =====>] :
(teste) DBG | [executing ==>] : C:\WINDOWS\System32\WindowsPowerShell\v1.0\powershell.exe -NoProfile -NonInteractive Hyper-V\Add-VMHardDiskDrive -VMName teste -Path ‘C:\Users\suporte.docker\machine\machines\teste\disk.vhd’
(teste) DBG | [stdout =====>] :
(teste) Starting VM…
(teste) DBG | [stderr =====>] :
(teste) DBG | [executing ==>] : C:\WINDOWS\System32\WindowsPowerShell\v1.0\powershell.exe -NoProfile -NonInteractive Hyper-V\Start-VM teste
(teste) Waiting for host to start…
(teste) DBG | [stdout =====>] :
(teste) DBG | [stderr =====>] :
(teste) DBG | [executing ==>] : C:\WINDOWS\System32\WindowsPowerShell\v1.0\powershell.exe -NoProfile -NonInteractive ( Hyper-V\Get-VM teste ).state
(teste) DBG | [stdout =====>] : Running
(teste) DBG |
(teste) DBG | [stderr =====>] :
(teste) DBG | [executing ==>] : C:\WINDOWS\System32\WindowsPowerShell\v1.0\powershell.exe -NoProfile -NonInteractive (( Hyper-V\Get-VM teste ).networkadapters[0]).ipaddresses[0]
(teste) DBG | [stdout =====>] :
(teste) DBG | [stderr =====>] :
(teste) DBG | [executing ==>] : C:\WINDOWS\System32\WindowsPowerShell\v1.0\powershell.exe -NoProfile -NonInteractive ( Hyper-V\Get-VM teste ).state
(teste) DBG | [stdout =====>] : Running
(teste) DBG |
(teste) DBG | [stderr =====>] :
(teste) DBG | [executing ==>] : C:\WINDOWS\System32\WindowsPowerShell\v1.0\powershell.exe -NoProfile -NonInteractive (( Hyper-V\Get-VM teste ).networkadapters[0]).ipaddresses[0]
(teste) DBG | [stdout =====>] :
(teste) DBG | [stderr =====>] :
(teste) DBG | [executing ==>] : C:\WINDOWS\System32\WindowsPowerShell\v1.0\powershell.exe -NoProfile -NonInteractive ( Hyper-V\Get-VM teste ).state
(teste) DBG | [stdout =====>] : Running
(teste) DBG |
(teste) DBG | [stderr =====>] :
(teste) DBG | [executing ==>] : C:\WINDOWS\System32\WindowsPowerShell\v1.0\powershell.exe -NoProfile -NonInteractive (( Hyper-V\Get-VM teste ).networkadapters[0]).ipaddresses[0]
(teste) DBG | [stdout =====>] :
(teste) DBG | [stderr =====>] :
(teste) DBG | [executing ==>] : C:\WINDOWS\System32\WindowsPowerShell\v1.0\powershell.exe -NoProfile -NonInteractive ( Hyper-V\Get-VM teste ).state
(teste) DBG | [stdout =====>] : Running
(teste) DBG |
(teste) DBG | [stderr =====>] :
(teste) DBG | [executing ==>] : C:\WINDOWS\System32\WindowsPowerShell\v1.0\powershell.exe -NoProfile -NonInteractive (( Hyper-V\Get-VM teste ).networkadapters[0]).ipaddresses[0]
(teste) DBG | [stdout =====>] :
(teste) DBG | [stderr =====>] :
(teste) DBG | [executing ==>] : C:\WINDOWS\System32\WindowsPowerShell\v1.0\powershell.exe -NoProfile -NonInteractive ( Hyper-V\Get-VM teste ).state
(teste) DBG | [stdout =====>] : Running
(teste) DBG |
(teste) DBG | [stderr =====>] :
(teste) DBG | [executing ==>] : C:\WINDOWS\System32\WindowsPowerShell\v1.0\powershell.exe -NoProfile -NonInteractive (( Hyper-V\Get-VM teste ).networkadapters[0]).ipaddresses[0]
(teste) DBG | [stdout =====>] :
(teste) DBG | [stderr =====>] :
(teste) DBG | [executing ==>] : C:\WINDOWS\System32\WindowsPowerShell\v1.0\powershell.exe -NoProfile -NonInteractive ( Hyper-V\Get-VM teste ).state
(teste) DBG | [stdout =====>] : Running
(teste) DBG |
(teste) DBG | [stderr =====>] :
(teste) DBG | [executing ==>] : C:\WINDOWS\System32\WindowsPowerShell\v1.0\powershell.exe -NoProfile -NonInteractive (( Hyper-V\Get-VM teste ).networkadapters[0]).ipaddresses[0]
(teste) DBG | [stdout =====>] :
(teste) DBG | [stderr =====>] :
(teste) DBG | [executing ==>] : C:\WINDOWS\System32\WindowsPowerShell\v1.0\powershell.exe -NoProfile -NonInteractive ( Hyper-V\Get-VM teste ).state
(teste) DBG | [stdout =====>] : Running
(teste) DBG |
(teste) DBG | [stderr =====>] :
(teste) DBG | [executing ==>] : C:\WINDOWS\System32\WindowsPowerShell\v1.0\powershell.exe -NoProfile -NonInteractive (( Hyper-V\Get-VM teste ).networkadapters[0]).ipaddresses[0]
(teste) DBG | [stdout =====>] :
(teste) DBG | [stderr =====>] :
(teste) DBG | [executing ==>] : C:\WINDOWS\System32\WindowsPowerShell\v1.0\powershell.exe -NoProfile -NonInteractive ( Hyper-V\Get-VM teste ).state
(teste) DBG | [stdout =====>] : Running
(teste) DBG |
(teste) DBG | [stderr =====>] :
(teste) DBG | [executing ==>] : C:\WINDOWS\System32\WindowsPowerShell\v1.0\powershell.exe -NoProfile -NonInteractive (( Hyper-V\Get-VM teste ).networkadapters[0]).ipaddresses[0]
(teste) DBG | [stdout =====>] :
(teste) DBG | [stderr =====>] :
(teste) DBG | [executing ==>] : C:\WINDOWS\System32\WindowsPowerShell\v1.0\powershell.exe -NoProfile -NonInteractive ( Hyper-V\Get-VM teste ).state
(teste) DBG | [stdout =====>] : Running
(teste) DBG |
(teste) DBG | [stderr =====>] :
(teste) DBG | [executing ==>] : C:\WINDOWS\System32\WindowsPowerShell\v1.0\powershell.exe -NoProfile -NonInteractive (( Hyper-V\Get-VM teste ).networkadapters[0]).ipaddresses[0]
(teste) DBG | [stdout =====>] :
(teste) DBG | [stderr =====>] :
(teste) DBG | [executing ==>] : C:\WINDOWS\System32\WindowsPowerShell\v1.0\powershell.exe -NoProfile -NonInteractive ( Hyper-V\Get-VM teste ).state
(teste) DBG | [stdout =====>] : Running
(teste) DBG |
(teste) DBG | [stderr =====>] :
(teste) DBG | [executing ==>] : C:\WINDOWS\System32\WindowsPowerShell\v1.0\powershell.exe -NoProfile -NonInteractive (( Hyper-V\Get-VM teste ).networkadapters[0]).ipaddresses[0]
(teste) DBG | [stdout =====>] :
(teste) DBG | [stderr =====>] :
(teste) DBG | [executing ==>] : C:\WINDOWS\System32\WindowsPowerShell\v1.0\powershell.exe -NoProfile -NonInteractive ( Hyper-V\Get-VM teste ).state
(teste) DBG | [stdout =====>] : Running
(teste) DBG |
(teste) DBG | [stderr =====>] :
(teste) DBG | [executing ==>] : C:\WINDOWS\System32\WindowsPowerShell\v1.0\powershell.exe -NoProfile -NonInteractive (( Hyper-V\Get-VM teste ).networkadapters[0]).ipaddresses[0]
(teste) DBG | [stdout =====>] :
(teste) DBG | [stderr =====>] :
(teste) DBG | [executing ==>] : C:\WINDOWS\System32\WindowsPowerShell\v1.0\powershell.exe -NoProfile -NonInteractive ( Hyper-V\Get-VM teste ).state
(teste) DBG | [stdout =====>] : Running
(teste) DBG |
(teste) DBG | [stderr =====>] :
(teste) DBG | [executing ==>] : C:\WINDOWS\System32\WindowsPowerShell\v1.0\powershell.exe -NoProfile -NonInteractive (( Hyper-V\Get-VM teste ).networkadapters[0]).ipaddresses[0]
(teste) DBG | [stdout =====>] :
(teste) DBG | [stderr =====>] :
(teste) DBG | [executing ==>] : C:\WINDOWS\System32\WindowsPowerShell\v1.0\powershell.exe -NoProfile -NonInteractive ( Hyper-V\Get-VM teste ).state
(teste) DBG | [stdout =====>] : Running
(teste) DBG |
(teste) DBG | [stderr =====>] :
(teste) DBG | [executing ==>] : C:\WINDOWS\System32\WindowsPowerShell\v1.0\powershell.exe -NoProfile -NonInteractive (( Hyper-V\Get-VM teste ).networkadapters[0]).ipaddresses[0]
(teste) DBG | [stdout =====>] : 172.16.43.72
(teste) Calling .GetConfigRaw
(teste) DBG |
(teste) DBG | [stderr =====>] :
(teste) Calling .DriverName
(teste) Calling .DriverName
Waiting for machine to be running, this may take a few minutes…
(teste) Calling .GetState
(teste) DBG | [executing ==>] : C:\WINDOWS\System32\WindowsPowerShell\v1.0\powershell.exe -NoProfile -NonInteractive ( Hyper-V\Get-VM teste ).state
(teste) DBG | [stdout =====>] : Running
(teste) DBG |
Detecting operating system of created instance…
(teste) DBG | [stderr =====>] :
Waiting for SSH to be available…
Getting to WaitForSSH function…
(teste) Calling .GetSSHHostname
(teste) DBG | [executing ==>] : C:\WINDOWS\System32\WindowsPowerShell\v1.0\powershell.exe -NoProfile -NonInteractive ( Hyper-V\Get-VM teste ).state
(teste) DBG | [stdout =====>] : Running
(teste) DBG |
(teste) DBG | [stderr =====>] :
(teste) DBG | [executing ==>] : C:\WINDOWS\System32\WindowsPowerShell\v1.0\powershell.exe -NoProfile -NonInteractive (( Hyper-V\Get-VM teste ).networkadapters[0]).ipaddresses[0]
(teste) DBG | [stdout =====>] : 172.16.43.72
(teste) Calling .GetSSHPort
(teste) DBG |
(teste) DBG | [stderr =====>] :
(teste) Calling .GetSSHKeyPath
(teste) Calling .GetSSHKeyPath
(teste) Calling .GetSSHUsername
Using SSH client type: external
&{[-F /dev/null -o ConnectionAttempts=3 -o ConnectTimeout=10 -o ControlMaster=no -o ControlPath=none -o LogLevel=quiet -o PasswordAuthentication=no -o ServerAliveInterval=60 -o StrictHostKeyChecking=no -o UserKnownHostsFile=/dev/null docker@172.16.43.72 -o IdentitiesOnly=yes -i C:\Users\suporte.docker\machine\machines\teste\id_rsa -p 22] C:\WINDOWS\System32\OpenSSH\ssh.exe }
About to run SSH command:
exit 0

Does anyone knows how to fix it??