Hi,
I just ran into a bug where my OpenVZ containers didn't grab a new dhcp lease after live migrating them from one server to the next.
The network worked as long as the current lease was valid.
I checked the traffic reached the CT but it wasn't picked up (Debian 7).
I added the following lines to the live migration web script /usr/share/perl5/PVE/OpenVZMigrate.pm at the end of sub phase2 to restart the network after the live migration to fix the problem:
Maybe it helps someone with the same problem or it can be added to the official proxmox code.
If someone knows the cause of the problem please let me know.
Best
Sven
I just ran into a bug where my OpenVZ containers didn't grab a new dhcp lease after live migrating them from one server to the next.
The network worked as long as the current lease was valid.
I checked the traffic reached the CT but it wasn't picked up (Debian 7).
I added the following lines to the live migration web script /usr/share/perl5/PVE/OpenVZMigrate.pm at the end of sub phase2 to restart the network after the live migration to fix the problem:
Code:
$self->log('info', "restart the container network");
$cmd = [ @{$self->{rem_ssh}}, 'vzctl', 'exec', $vmid, '/etc/init.d/networking restart' ];
$self->cmd_quiet($cmd, errmsg => "Failed to restart the container network");
If someone knows the cause of the problem please let me know.
Best
Sven