-
Notifications
You must be signed in to change notification settings - Fork 40
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
Comments
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 <helmut@subdivi.de>
sjoerdsimons
pushed a commit
to helmutg/fakemachine
that referenced
this issue
Feb 16, 2025
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 <helmut@subdivi.de>
sjoerdsimons
pushed a commit
to helmutg/fakemachine
that referenced
this issue
Feb 16, 2025
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 <helmut@subdivi.de>
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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
setsLinkLocalAddressing=no
andIPv6AcceptRA=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
The text was updated successfully, but these errors were encountered: