I have 3 bare metal or root servers from Hetzner and all of them are in the same Data Center and rack. I am planning to setup the LXD cluster using OVN network so that the containers/vms are in the same logical network irrespective of the host on which they are placed.
One another requirement is to assign Public IPV6 addresses on these containers/VMs and would like the access to these instances directly without any having to going through NAT or proxy or forward setups.
Each servers comes with its own /64 IPV6 public subnet but these cannot be used as they are tied to a physical host. I found out that Hetzner allows you to have a /64 Public IPV6 Subnet that is assigned to a vSwitch which then can be linked to all the 3 servers I have.
The vSwitch will consume 1 IPV6 address from the /64 subnet as the gateway address. I can assign a VLAN interface on each of the host that is tied to the vSwitch with the public /64 IPV6 subnet.
My question is how do I go about automatically assigning these IPV6 addresses to the containers and VMs that are launched by LXD. I would like to avoid using any manual setup or changing the network configuration after the containers/vms are created.
I looked in to the Macvlan, Ipvlan, bridge and OVN network, not sure which one of these I need to use to have the ability to get the IPV6 addressed assigned to the instances. The instances need to use the VLAN interface on the host for any external communication.
Note the public IPV6 subnet does not have any MAC address restrictions but the vSwitch provided by Hetzner does not have DHCPv6 service to auto assign the IPV6 addresses to the instances. I would need to have a network type that allows auto allocation of IPV6 via DHCP and that should work across all the 3 nodes I have.
Any help would be greatly appreciated. Tried following the videos and tutorials on the OVN LXD clustering but quite not able to get the right solution figured out.