When trying to migrate only throw an error when the CT is on an non
shared storage AND running.
Also fixed an remaining PVE::OpenVZ call to LXC.
Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
PVE::Storage::storage_check_node($self->{storecfg}, $storage, $self->{node});
die "unable to migrate local mountpoint '$volid' while CT is running"
- if !$scfg->{shared};
+ if !$scfg->{shared} && $running;
});
}
});
- my $conffile = PVE::OpenVZ::config_file($vmid);
- my $newconffile = PVE::OpenVZ::config_file($vmid, $self->{node});
+ my $conffile = PVE::LXC::config_file($vmid);
+ my $newconffile = PVE::LXC::config_file($vmid, $self->{node});
if ($self->{running}) {
die "implement me";