]> git.proxmox.com Git - pve-container.git/commitdiff
fixed call for cfg file and error when CT is running and on local storage
authorThomas Lamprecht <t.lamprecht@proxmox.com>
Tue, 1 Sep 2015 07:59:55 +0000 (09:59 +0200)
committerDietmar Maurer <dietmar@proxmox.com>
Tue, 1 Sep 2015 09:53:40 +0000 (11:53 +0200)
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>
src/PVE/LXC/Migrate.pm

index 771174e50a0d1c4c3b528b5a202cc3703a588895..bf6d701d3330f45f97405a4e68bcdaf74e4e96f5 100644 (file)
@@ -51,7 +51,7 @@ sub prepare {
        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;
 
     });
 
@@ -100,8 +100,8 @@ sub phase1 {
        }
     });
 
-    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";