This is a non-standard configuration (disabling IPv6) and actually not
recommended for any environment these days.

The tool does mention the availability of "none" so, someone in such an
environment should be able to make the connection and set to "none".

"lxd init" cannot actually check whether the machine will have IPv6 or
not as this is all done over the remote LXD API and IPv6 availability
isn't something that can be queried (and it's so niche that it doesn't
really make any sense to add).

The error comes from "lxd init" having told LXD to set "ipv6.address" to
"auto", "auto" here means select an IPv6 subnet automatically, which it
did and then failed to apply due to the disabled kernel support.

We can add a check for the presence of "/proc/sys/net/ipv6" and fail
with a nicer error, but this particular case will still fail and I don't
see us changing that.

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/1849904

Title:
  lxd init assumes ipv6 is available

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/lxd/+bug/1849904/+subscriptions

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

Reply via email to