The procedure for configuring IPv6 set out in docs/blob/master/docs/setting-up-ipv6-in-a-zone.md does not work for Linux in Bhyve or KVM zones.
The addrconf value gets passed to cloud-init as an IP address but cloud-init has no idea what to do with it, and so it throws an error.
# cloud-init status -l
status: error
extended_status: error
boot_status_code: enabled-by-generator
last_update: Mon, 21 Oct 2024 00:52:15 +0000
detail:
Cloud-init enabled by systemd cloud-init-generator
errors:
- Address addrconf is not a valid ip address
- Address addrconf is not a valid ip address
recoverable_errors:
ERROR:
- Address addrconf is not a valid ip network
- Address addrconf is not a valid ip network
WARNING:
- failed stage init
- failed stage init-local
/var/lib/cloud/instances/c3cfc40e-9b68-4330-bbd1-5f36f4439815/network-config.json
{
"config": [
{
"mac_address": "e2:7f:c1:50:eb:99",
"name": "net0",
"subnets": [
{
"address": "10.64.1.130/26",
"gateway": "10.64.1.129",
"type": "static"
},
{
"address": "addrconf",
"type": "static"
}
],
"type": "physical"
},
{
"address": [
"10.64.255.1"
],
"search": [],
"type": "nameserver"
}
],
"version": 1
}
The procedure for configuring IPv6 set out in docs/blob/master/docs/setting-up-ipv6-in-a-zone.md does not work for Linux in Bhyve or KVM zones.
The
addrconfvalue gets passed tocloud-initas an IP address butcloud-inithas no idea what to do with it, and so it throws an error./var/lib/cloud/instances/c3cfc40e-9b68-4330-bbd1-5f36f4439815/network-config.json