Run radvdΒΆ

If using a version of dnsmasq older than 2.64, stateless address autoconfiguration (SLAAC) may not work as expected and VMs will not receive an IPv6 address. In this situation, use the Router Advertisement Daemon (radvd) instead, which can be run alongside dnsmasq.

Open /etc/radvd.conf in a text editor and add the following content. Add as many interface sections as required, then start the radvd service.

interface virbr10
{
  AdvSendAdvert on;
  AdvManagedFlag off;
  AdvOtherConfigFlag off;

  prefix 2001:db8:aa::/64
  {
    AdvOnLink on;
    AdvAutonomous on;
    AdvRouterAddr off;
  };
};