> @@ -880,10 +891,13 @@ __PACKAGE__->register_method({
> # test if VM exists
> PVE::LXC::Config->load_config($vmid);
>
> + my $isrunning = PVE::LXC::check_running($vmid);
> # try to detect errors early
> - if (PVE::LXC::check_running($vmid)) {
> - die "can't migr
this simply adds the restart flag and the optional timeout to the
lxc api required for the restart mode migration
Signed-off-by: Dominik Csapak
---
src/PVE/API2/LXC.pm | 20 +---
1 file changed, 17 insertions(+), 3 deletions(-)
diff --git a/src/PVE/API2/LXC.pm b/src/PVE/API2/LXC