> @@ -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?

_______________________________________________
pve-devel mailing list
pve-devel@pve.proxmox.com
http://pve.proxmox.com/cgi-bin/mailman/listinfo/pve-devel

Reply via email to