[pve-devel] [PATCH container 1/2] implement lxc restart migration
Dietmar Maurer
dietmar at proxmox.com
Fri Dec 2 07:30:54 CET 2016
> @@ -322,6 +338,14 @@ sub final_cleanup {
> my $cmd = [ @{$self->{rem_ssh}}, 'pct', 'unlock', $vmid ];
> $self->cmd_logerr($cmd, errmsg => "failed to clear migrate lock");
> }
> +
> + # in restart mode, we start the container on the target node
> + # after migration
> + if ($self->{opts}->{restart}) {
> + $self->log('info', "start container on target node");
> + my $cmd = [ @{$self->{rem_ssh}}, 'pct', 'start', $vmid];
> + $self->cmd($cmd);
> + }
> }
You always start the container here, even if it was stopped before?
More information about the pve-devel
mailing list