Skip to content
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

[Windows] Support Finch on Windows with WSL2 in "mirrored" networkMode #792

Open
ollypom opened this issue Feb 2, 2024 · 0 comments
Open
Labels
enhancement New feature or request windows Anything Windows specific

Comments

@ollypom
Copy link
Contributor

ollypom commented Feb 2, 2024

What is the problem you're trying to solve?.
With Finch on Windows if the user has WSL configured in networkingMode=mirrored then a finch vm init will fail. It appears finch / limactl is unable to create a SSH connection to the VM.

The C:\Program Files\Finch\lima\data\finch\ha.stderr.log shows repeated SSH timeouts:

{
    "level": "info",
    "msg": "Waiting for the essential requirement 1 of 2: \"ssh\"",
    "time": "2024-02-02T09:52:49Z"
}
{
    "level": "debug",
    "msg": "executing script \"ssh\"",
    "time": "2024-02-02T09:52:49Z"
}
{
    "level": "debug",
    "msg": "executing ssh for script \"ssh\": C:\\Program Files\\Finch\\lima\\bin\\ssh.exe [ssh -F /dev/null -o IdentityFile='C:/Program Files/Finch/lima/data/_config/user' -o IdentityFile='C:\\Users\\myuser\\.ssh\\id_ecdsa' -o StrictHostKeyChecking=no -o UserKnownHostsFile=/dev/null -o NoHostAuthenticationForLocalhost=yes -o GSSAPIAuthentication=no -o PreferredAuthentications=publickey -o Compression=no -o BatchMode=yes -o IdentitiesOnly=yes -o Ciphers=^[email protected],[email protected] -o User=lima -o ControlMaster=auto -o ControlPath='C:/Program Files/Finch/lima/data/finch/ssh.sock' -o ControlPersist=yes -p 22 192.168.2.19 -- /bin/bash]",
    "time": "2024-02-02T09:52:49Z"
}
{
    "level": "debug",
    "msg": "stdout=\"\", stderr=\"ssh: connect to host 192.168.2.19 port 22: Connection timed out\\r\\n\", err=failed to execute script \"ssh\": stdout=\"\", stderr=\"ssh: connect to host 192.168.2.19 port 22: Connection timed out\\r\\n\": exit status 255",
    "time": "2024-02-02T09:53:10Z"
}

Describe the feature you'd like
Support Finch on Windows with WSL2 in "mirrored" networkMode

Additional context
Finch on Windows

@ollypom ollypom added enhancement New feature or request windows Anything Windows specific labels Feb 2, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request windows Anything Windows specific
Projects
None yet
Development

No branches or pull requests

1 participant