when we change ip address, network configuration is correctly writen in guest, but cloud-init don't apply it and keep previous ip address.
workaround with forcing ifdown ifup Signed-off-by: Alexandre Derumier <aderum...@odiso.com> --- PVE/QemuServer.pm | 3 +++ 1 file changed, 3 insertions(+) diff --git a/PVE/QemuServer.pm b/PVE/QemuServer.pm index ae1b3a2..16b15df 100644 --- a/PVE/QemuServer.pm +++ b/PVE/QemuServer.pm @@ -6661,6 +6661,9 @@ sub generate_cloudinit_userdata { my $hostname = $conf->{searchdomain} ? $conf->{name}.".".$conf->{searchdomain} : $conf->{name}; $content .= "fqdn: $hostname\n"; $content .= "manage_etc_hosts: true\n"; + $content .= "bootcmd: \n"; + $content .= " - ifdown -a\n"; + $content .= " - ifup -a\n"; if ($conf->{sshkey}) { $content .= "users:\n"; -- 2.11.0 _______________________________________________ pve-devel mailing list pve-devel@pve.proxmox.com https://pve.proxmox.com/cgi-bin/mailman/listinfo/pve-devel