-
Notifications
You must be signed in to change notification settings - Fork 241
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Startup failure: Error getting config for native Go SSH: open The system cannot find the file specified. #784
Comments
can you also describe the setup more, like why your username is a set of numbers? are you in a corporate environment? Note: it is likely not related to permissions, but the fact the IP wasn't given or IPv6 was returned first |
I also notice you are getting a IPv6 address ... how is your networking configured? As you using a VPN at the moment of starting the CRC instance? |
I think we should add a check to the IPAddresses like:
like we did in Minishift (however we did this as part of the post-flight), but now part of the driver |
Also see: machine-drivers/machine#23 |
@gbraad I have this problem, too. So what are the permissions supposed to be? |
Hy everyone, same probleme for me with crc 1.1.0 and hyperV. Someone has a workaround ? |
Hi Everyone, someone could explain where the problem is ? HYperV network configuration ? Or a bug on crc ? |
It is not a bug on CRC, but rather the behaviour of a library we use. Also, it seems that in most of the aforementioned logs, IPv6 wins out as the address that was given to the VM. This should not be the case as IPv4 is the default. In other words, it is unexepcted behaviour from the hypervisor and libmachine. We are looking into this. Make sure DHCP is enable for the Default Switch network adapter:
... but disable the one which allows IPv6:
Please report back if this helped |
Hi @gbraad thanks, i try to create a dedicated virtual Switch , assign this switch to crc VM and assign dhcp configuration on it .
But CRC still catching IP v6 adresse ... i couldn't find knowledge base about DHCP "server" on HyperV .. are you sure that is possible ? Another solution could be to assign a static IP on the virtual Switch (on the network interface of the Host hyperV windows) and ask at the startup of the crc machine an IP through the prompt.
|
@piellick CRC at the moment does NOT use any network switch different from the "Default Switch". Only with #722 this will be possible. So yes, it will get IPv6 on the Default Switch as the changes you made are on a dedicated switch. Can you make them on the Default Switch instead, for testing purposes? Note: I do not have the issue, or unable to reproduce, as what you are all seeing at this moment. |
This is not possible. We added such functionality to Minishift, but this needed modifications to the startup script and passing configuration information in on startup by the message bus. We will likely not redo this for crc. Also, the Default Switch does not play well with pre-assigned addresses, as an address is only valid after it was granted by the DHCRequest->DHCPOffer exchange. |
@gbraad , i did a incredible tunned Vm attached to same virtual switch than CRC with an embedded DHCP server. CRC as now an ipv4 IP but new problem. How SSH key is created ? through the "start" script ?
|
the initial ssh keys are by us, which are used on initial connection; a new
set is created and (ex)changed during this process, after which this unique
set is stored for this VM/instance
…On Tue, Nov 19, 2019 at 9:30 PM piellick ***@***.***> wrote:
@gbraad <https://github.com/gbraad> , i did a incredible tunned VVm
attached to same virtual switch than CRC with an embedded DHCP server. CRC
as now an ipv4 IP but new problem. How SSH key is created ? through the
"start" script ?
Found binary path at C:\codeready\crc-windows-1.1.0-amd64\crc.exe
Launching plugin server for driver hyperv
Plugin server listening at address 127.0.0.1:51582
() Calling .GetVersion
Using API Version 1
() Calling .SetConfigRaw
() Calling .GetMachineName
DEBU Waiting until ssh is available
(crc) Calling .GetSSHHostname
(crc) DBG | [executing ==>] : C:\WINDOWS\System32\WindowsPowerShell\v1.0\powershell.exe -NoProfile -NonInteractive ( Hyper-V\Get-VM crc ).state
(crc) DBG | [stdout =====>] : Running
(crc) DBG |
(crc) DBG | [stderr =====>] :
(crc) DBG | [executing ==>] : C:\WINDOWS\System32\WindowsPowerShell\v1.0\powershell.exe -NoProfile -NonInteractive (( Hyper-V\Get-VM crc ).networkadapters[0]).ipaddresses[0]
(crc) DBG | [stdout =====>] : 192.168.10.20
(crc) DBG |
(crc) DBG | [stderr =====>] :
(crc) Calling .GetSSHPort
(crc) Calling .GetSSHKeyPath
(crc) Calling .GetSSHKeyPath
(crc) Calling .GetSSHUsername
Using SSH client type: native
<nil>
DEBU error: Temporary Error: Error getting config for native Go SSH: open C:\Users\XXX\.crc\machines\crc\id_rsa: The system cannot find the file specified. - sleeping 1s
DEBU retry loop 1
(crc) Calling .GetSSHHostname
(crc) DBG | [executing ==>] : C:\WINDOWS\System32\WindowsPowerShell\v1.0\powershell.exe -NoProfile -NonInteractive ( Hyper-V\Get-VM crc ).state
(crc) DBG | [stdout =====>] : Running
(crc) DBG |
(crc) DBG | [stderr =====>] :
(crc) DBG | [executing ==>] : C:\WINDOWS\System32\WindowsPowerShell\v1.0\powershell.exe -NoProfile -NonInteractive (( Hyper-V\Get-VM crc ).networkadapters[0]).ipaddresses[0]
(crc) DBG | [stdout =====>] : 192.168.10.20
(crc) DBG |
(crc) DBG | [stderr =====>] :
(crc) Calling .GetSSHPort
(crc) Calling .GetSSHKeyPath
(crc) Calling .GetSSHKeyPath
(crc) Calling .GetSSHUsername
Using SSH client type: native
<nil>
DEBU error: Temporary Error: Error getting config for native Go SSH: open C:\Users\XXX\.crc\machines\crc\id_rsa: The system cannot find the file specified. - sleeping 1s
DEBU retry loop 2
(crc) Calling .GetSSHHostname
(crc) DBG | [executing ==>] : C:\WINDOWS\System32\WindowsPowerShell\v1.0\powershell.exe -NoProfile -NonInteractive ( Hyper-V\Get-VM crc ).state
(crc) DBG | [stdout =====>] : Running
(crc) DBG |
(crc) DBG | [stderr =====>] :
(crc) DBG | [executing ==>] : C:\WINDOWS\System32\WindowsPowerShell\v1.0\powershell.exe -NoProfile -NonInteractive (( Hyper-V\Get-VM crc ).networkadapters[0]).ipaddresses[0]
(crc) DBG | [stdout =====>] : 192.168.10.20
(crc) DBG |
(crc) DBG | [stderr =====>] :
(crc) Calling .GetSSHPort
(crc) Calling .GetSSHKeyPath
(crc) Calling .GetSSHKeyPath
(crc) Calling .GetSSHUsername
Using SSH client type: native
<nil>
DEBU error: Temporary Error: Error getting config for native Go SSH: open C:\Users\XXX\.crc\machines\crc\id_rsa: The system cannot find the file specified. - sleeping 1s
DEBU retry loop 3
(crc) Calling .GetSSHHostname
(crc) DBG | [executing ==>] : C:\WINDOWS\System32\WindowsPowerShell\v1.0\powershell.exe -NoProfile -NonInteractive ( Hyper-V\Get-VM crc ).state
(crc) DBG | [stdout =====>] : Running
(crc) DBG |
(crc) DBG | [stderr =====>] :
(crc) DBG | [executing ==>] : C:\WINDOWS\System32\WindowsPowerShell\v1.0\powershell.exe -NoProfile -NonInteractive (( Hyper-V\Get-VM crc ).networkadapters[0]).ipaddresses[0]
(crc) DBG | [stdout =====>] : 192.168.10.20
(crc) DBG |
(crc) DBG | [stderr =====>] :
(crc) Calling .GetSSHPort
(crc) Calling .GetSSHKeyPath
(crc) Calling .GetSSHKeyPath
(crc) Calling .GetSSHUsername
Using SSH client type: native
<nil>
DEBU error: Temporary Error: Error getting config for native Go SSH: open C:\Users\XXX\.crc\machines\crc\id_rsa: The system cannot find the file specified. - sleeping 1s
PS C:\codeready\crc-windows-1.1.0-amd64>
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
<#784>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AAAAOZU5I7S7VJAPQNYGLGDQUPTAZANCNFSM4JIEWRZA>
.
--
Gerard Braad | http://gbraad.nl
[ Doing Open Source Matters ]
|
ok thanks but how to debug please ? Or use openSSH windows and not native go implementation. I founded a lot of issues about it but no documentation. |
I am not sure how you started, but from the explanation I understand you
are doing a non-standard flow. You started the VM and changed the Virtual
Switch to be a different one?
|
i have created a dedicated virtual switch , assigned crc VM and a DHCP
server VM on it.
I start CRC with command line tool crc.exe .CRC VM catch an IP from the
other VM.
Have you hard coded the fact of using the default virtual switch on
Hyper-V when the script try to connect to CRC VM through SSH ?
|
The Virtual Switch is assumed to be used throughout the lifetime for now. It is not in scripts or whatever (as we run commands), BUT it shows you are now using an untested setup.
This means you are not using the expected setup; you have modified an instance and assume this works. This is untested. I have asked you in a previous message to disable the DHCP server on the Default Switch and test this way for now.
Any other setup will not be debugged by me at this moment, as this also involves routes and other settings that might now be wrongly provided by the DHCP server you have running. |
hi @gbraad no problem i understand, same problem with the default virtual switch and IPv6 DHCP disabled through your command : i have now a dhcp offer by default virtual switch (172.17.67.187) ================================================================= PS C:\codeready\crc-windows-1.1.0-amd64> .\crc.exe start --log-level debug |
@piellick at the moment it shows the expected IP address; The
and
come from different parts in the code. The It is however different from the |
Please make sure you are running this against a new instance, use |
@east4ming can you try disabling IPv6 on the Default Switch?
and rerun the start after a |
@tsmaeder can you try the same as above ^^^, disabling IPv6 on a new instance? I believe something went wrong in the authentication flow and the 'not found' is a result of this. It is likely not a permission issue, but rather an expectation error in the key exchange code (which fails to login due to IPv6 perhaps). |
Unfortunately, this started working for me. Not sure when i'll have time to get back to try setting up crc, I'm afraid. |
Thanks. so it is not a persistent issue. Waiting for the OP to come backto us. |
Hi @gbraad , same problem if i run 'crc delete -f` before . |
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions. |
General information
crc setup
before starting it (Yes)?CRC version
crc version: 1.0.0+575079b OpenShift version: 4.2.0 (embedded in binary)
CRC status
CRC config
Host Operating System
Steps to reproduce
Expected
can start
Actual
Logs
The text was updated successfully, but these errors were encountered: