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

IPv6 Host-Only Networks (VirtualBox) #6342

Merged
merged 8 commits into from
Oct 1, 2015
Merged

IPv6 Host-Only Networks (VirtualBox) #6342

merged 8 commits into from
Oct 1, 2015

Conversation

mitchellh
Copy link
Contributor

This adds support for IPv6 host-only networks.

We need this in Otto.

Example: config.vm.network "private_network", ip: "fde4:8dba:82e1::c4"

VirtualBox has a bug where the IPv6 route is lost on every other
configuration of a host-only network. This is also triggered when a VM
is booted.

To fix this, we test the route-ability of all IPv6 networks, and
reconfigure if necessary. This is very fast but we still only do this if
we have any IPv6 networks.
elsif ip.ipv6?
execute("hostonlyif", "ipconfig", name,
"--ipv6", options[:adapter_ip],
"--netmasklengthv6", options[:netmask].to_s)
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Should we else raise here in case of shenanigans? Or can we trust this as an invariant of IPAddr?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I'll add it to version 5, the old versions can be more wild west.

mitchellh added a commit that referenced this pull request Oct 1, 2015
IPv6 Host-Only Networks (VirtualBox)
@mitchellh mitchellh merged commit 0a096ec into master Oct 1, 2015
@mitchellh mitchellh deleted the f-ipv6 branch October 1, 2015 21:05
@ghost ghost locked and limited conversation to collaborators Apr 7, 2020
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants