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

Fails to provide network on IPv6-only hosts #207

Open
helmutg opened this issue May 13, 2024 · 0 comments · May be fixed by #208
Open

Fails to provide network on IPv6-only hosts #207

helmutg opened this issue May 13, 2024 · 0 comments · May be fixed by #208

Comments

@helmutg
Copy link

helmutg commented May 13, 2024

Running fakemachine on an IPv6-only host results in "Network is unreachable" when trying to access the network. The network stack usually tries IPv6 first, but machine.go sets LinkLocalAddressing=no and IPv6AcceptRA=no, so it does not have any IPv6 address nor route and the Linux kernel inside KVM reports -ENETUNREACH. It then falls back to IPv4 and sends a packet. KVM's slirp-based user network stack then tries to send this packet, but observes that the host machine does not have any IPv4 addresses nor routes and generates an ICMPv4 packet indicating -ENETUNREACH. Having failed both address families, -ENETUNREACH is reported to the end user. This makes e.g. debos fail.

Debian-Bug: https://bugs.debian.org/1071033

helmutg added a commit to helmutg/fakemachine that referenced this issue May 14, 2024
The networkd template explicitly disables IPv6-connectivity. When
connecting to a host, the attempt to use IPv6 results in -ENETUNREACH
from the guest kernel. If the host is IPv6-only, the host kernel
likewise makes attempts to use IPv4 result in -ENETUNREACH. Hence
fakemachine has dysfunctional network when invoked on an IPv6-only host.

Closes: go-debos#207
Signed-off-by: Helmut Grohne <[email protected]>
@helmutg helmutg linked a pull request May 14, 2024 that will close this issue
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant