Skip to content

net: add configurable nat66Prefix for shared networking - #1639

Merged
abiosoft merged 1 commit into
abiosoft:mainfrom
stek29:issue-573-ipv6
Sep 19, 2026
Merged

abiosoft merged 1 commit into
abiosoft:mainfrom
stek29:issue-573-ipv6

Conversation

@stek29

@stek29 stek29 commented Sep 15, 2026

Copy link
Copy Markdown
Contributor

Add network.nat66Prefix and network-nat66-prefix for vmnet non-VZ shared networking, while preserving the existing behavior of not passing any value for nat66-prefix to vmnet by default.

This allows creating multiple colima instances with shared vmnet using IPv6 and is a follow-up for PR #1628, which fixed IPv4 use-case.

LLM disclosure: I've used LLM based coding Agent for spinning up test VMs before/after this change to test different options. None of the code (including tests) was written by an LLM.

@stek29

stek29 commented Sep 15, 2026

Copy link
Copy Markdown
Contributor Author

example reproducer:

for n in 1 2; do
  colima start "shared-noprefix-v6-$n" \
    --vm-type qemu --network-address \
    --network-subnet "192.168.11$n.0/24" \
    # --network-nat66-prefix "fd22:cafe:babe:f00${n}::"
done

for n in 1 2; do
  colima ssh --profile "shared-noprefix-v6-$n" -- \
    curl -v --max-time 5 "https://[2606:4700:4700::1111]/"
done

here second VM's IPv6 will time out without the network-nat66-prefix fix.

@abiosoft

Copy link
Copy Markdown
Owner

Is nat66 a convention? I would expect the wording simply include ipv6.

@stek29

stek29 commented Sep 15, 2026

Copy link
Copy Markdown
Contributor Author

@abiosoft it's the name of the option in vmnet: https://developer.apple.com/documentation/vmnet/vmnet_nat66_prefix_key

@abiosoft

Copy link
Copy Markdown
Owner

Kindly rebase.

Add network.nat66Prefix and network-nat66-prefix for vmnet non-VZ shared
networking, while preserving the existing behavior of not passing any
value for nat66-prefix to vmnet by default.

This allows creating multiple colima instances with shared vmnet using
IPv6 and is a follow-up for PR abiosoft#1628, which fixed IPv4 use-case.

Signed-off-by: Viktor Oreshkin <imselfish@stek29.rocks>
@stek29

stek29 commented Sep 17, 2026

Copy link
Copy Markdown
Contributor Author

@abiosoft rebased, but actions seem to be failing because of a billing issue.

@abiosoft

Copy link
Copy Markdown
Owner

actions seem to be failing because of a billing issue.

Yeah, it was due to exceeding budget of copilot usage and an unusual rejection of a previously valid payment card.
It should get resolved within the next week.

@abiosoft
abiosoft merged commit ad7a860 into abiosoft:main Sep 19, 2026
24 of 38 checks passed
@majidamomajidam

Copy link
Copy Markdown

عالی هستی

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 this pull request may close these issues.

3 participants