Disable IPv6 in browser VMs at boot - #218
Merged
Merged
Conversation
The VM environment has no IPv6 route, so any IPv6 connection attempt fails immediately. Chromium's built-in DNS client may attempt DNS-over-HTTPS to IPv6 endpoints, and each failed attempt wastes a connection slot from the MaxConnectionsPerProxy pool. Under certain conditions this can exhaust all available connections. Disable IPv6 at the kernel level in both headful and headless wrapper scripts, using the same /proc/sys pattern already used for hostname.
sjmiller609
marked this pull request as ready for review
April 14, 2026 20:38
|
Firetiger deploy monitoring skipped This PR didn't match the auto-monitor filter configured on your GitHub connection:
Reason: PR modifies VM wrapper scripts and kernel parameters, not API endpoints or Temporal workflows as specified in the filter. To monitor this PR anyway, reply with |
rgarcia
approved these changes
Apr 14, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Disables IPv6 at the kernel level during VM boot in both headful and headless wrapper scripts.
Browser VMs have no IPv6 route, so any IPv6 connection attempt fails immediately with
ENETUNREACH. Chromium's built-in DNS client may attempt DNS-over-HTTPS to IPv6 endpoints (e.g.[2001:4860:4860::8888]:443), and each failed attempt wastes a connection slot from theMaxConnectionsPerProxypool. Under certain conditions — particularly when combined with intermittent DNS failures — this can exhaust all available connection slots and lead toERR_INSUFFICIENT_RESOURCEStab crashes.Changes
images/chromium-headful/wrapper.sh— write1to/proc/sys/net/ipv6/conf/{all,default}/disable_ipv6after hostname setup, before service startupimages/chromium-headless/image/wrapper.sh— same changeUses the same
/proc/syswrite pattern already used for hostname configuration. Writes are best-effort (|| true) so the script continues if the sysctl paths are unavailable.Testing
Verified on a live stealth browser VM (
gb732pp14lssq510l2lq4q53):net.ipv6.conf.all.disable_ipv6 = 0, link-local IPv6 addr on eth0, IPv6 ping fails with "Network is unreachable"8.8.4.4:443in TIME_WAIT at startup — Chrome's DoH probe to Google DNS over IPv4 (IPv6 attempt would have also fired)Note
Medium Risk
Low code complexity, but it changes VM networking behavior at the kernel level and could impact workloads that rely on IPv6 connectivity.
Overview
Disables IPv6 at boot in both headful and headless Chromium VM wrapper scripts by writing
1to/proc/sys/net/ipv6/conf/{all,default}/disable_ipv6(best-effort), to prevent Chromium making futile IPv6 DoH/proxy connection attempts that can exhaust connection slots and triggerERR_INSUFFICIENT_RESOURCEScrashes.Reviewed by Cursor Bugbot for commit b99ba46. Bugbot is set up for automated code reviews on this repo. Configure here.