-
-
Notifications
You must be signed in to change notification settings - Fork 396
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
VPN does not work in VM if CGO_ENABLED = 0 but works with CGO_ENABLED = 1 #358
Comments
Alright, then we can switch it back to using CGO_ENABLED=1. As a side note, thanks @tricktron, you've been very helpful with your feedbacks. |
@tricktron do you mind helping to confirm if it works with the |
@abiosoft sure, I can test it tomorrow. |
I can confirm, it works:+1: I think you are ready for a new tag/release:smiley:. |
@tricktron https://github.com/abiosoft/colima/releases/tag/v0.4.4.
Release is done. Thanks. |
* colima: use updated Makefile in build and install phases * colima: use lima-unwrapped * colima: fix dynamic version * colima: 0.4.2 -> 0.4.3 * colima: delete .git folder in postfetch when `leaveDotGit = true` Otherwise it may lead to non-deterministic behaviour. Co-authored-by: j-k <dev@j-k.io> * colima: do not override default buildGoModule phases The colima Makefile does more or less the same as the `buildGoModule` implementation. Instead of overriding it and using the Makefile directly, we reproduce the behaviour desired behaviour by customising env variables, e.g. `ldflags` and `subPackages`. Co-authored-by: j-k <dev@j-k.io> * colima: use `buildGoModule = buildGo118Module;` Co-authored-by: j-k <dev@j-k.io> * colima: update meta.description Co-authored-by: j-k <dev@j-k.io> * colima: set `CGO_ENABLED = 1` to make VPN connections work See abiosoft/colima#358 * colima: 0.4.3 -> 0.4.4 * colima: define all ldflags in preConfigure Co-authored-by: Atemu <Atemu@users.noreply.github.com> * colima: add version test * colima: add meta.mainProgram and meta.platforms * colima: remove unused runCommand input Co-authored-by: j-k <dev@j-k.io> * colima: cleanup meta Co-authored-by: Sandro <sandro.jaeckel@gmail.com> * colima: drop meta.platforms because we use the default value of `platforms.darwin ++ platforms.linux` Co-authored-by: Sandro <sandro.jaeckel@gmail.com> Co-authored-by: Atemu <Atemu@users.noreply.github.com> * Update pkgs/applications/virtualization/colima/default.nix Co-authored-by: j-k <dev@j-k.io> Co-authored-by: Atemu <Atemu@users.noreply.github.com> Co-authored-by: Sandro <sandro.jaeckel@gmail.com>
Description
While testing the newest #357 qemu fix with nix for NixOS/nixpkgs#179522 I noticed the following:
If
CGO_ENABLED=0
my vpn did not work. IfCGO_ENABLED=1
my vpn inside the vm works.Hypothesis:
CGO_ENABLED=1
means that go uses native libraries, e.g. for dns resolution. As a result, that means that vpn passthrough to the VM to QEMU may needCGO_ENABLED=1
.Possibly relevant/related: Lima needs
CGO_ENABLED=1
as well. https://github.com/lima-vm/lima/blob/master/docs/network.md#dns-19216853.Unfortunately I cannot share my vpn configs, since it is a customer.
Version
Colima Version: 0.4.3 git commit: 84fae1c
Lima Version: 0.11.1
Qemu Version: 7.0
Operating System
Reproduction Steps
Expected behaviour
Connection works.
Additional context
No response
The text was updated successfully, but these errors were encountered: