Quantcast
Channel: Proxmox Support Forum
Viewing all articles
Browse latest Browse all 170563

OpenVZ Live Migration Network Problem DHCP Fix

$
0
0
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:

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");

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

Viewing all articles
Browse latest Browse all 170563

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>