X-Git-Url: https://git.proxmox.com/?a=blobdiff_plain;f=PVE%2FQemuServer%2FCloudinit.pm;h=5be820c22d58b0cc0014e7dab6412f8d2db9132d;hb=c701be32431405e7b45c966d65a1825594e44288;hp=e90e1c037aa1239cb7d97ccc5ad32ca9e635787f;hpb=c3cedb3d9c5a4e5027da048fc35cb752d314b01b;p=qemu-server.git diff --git a/PVE/QemuServer/Cloudinit.pm b/PVE/QemuServer/Cloudinit.pm index e90e1c0..5be820c 100644 --- a/PVE/QemuServer/Cloudinit.pm +++ b/PVE/QemuServer/Cloudinit.pm @@ -340,8 +340,11 @@ sub nocloud_network { if (defined(my $ip = $ipconfig->{ip6})) { if ($ip eq 'dhcp') { $content .= "${i}- type: dhcp6\n"; + } elsif ($ip eq 'auto') { + # SLAAC is not supported by cloud-init, this fallback should work with an up-to-date netplan at least + $content .= "${i}- type: dhcp6\n"; } else { - $content .= "${i}- type: static6\n" + $content .= "${i}- type: static\n" . "${i} address: $ip\n"; if (defined(my $gw = $ipconfig->{gw6})) { $content .= "${i} gateway: $gw\n";