diff --git a/PVE/QemuMigrate.pm b/PVE/QemuMigrate.pm index 5ed953ad..0a6277db 100644 --- a/PVE/QemuMigrate.pm +++ b/PVE/QemuMigrate.pm @@ -557,9 +557,10 @@ sub sync_disks { 'allow_rename' => !$local_volumes->{$volid}->{is_vmstate}, }; + my $logfunc = sub { $self->log('info', $_[0]); }; my $new_volid = eval { PVE::Storage::storage_migrate($storecfg, $volid, $self->{ssh_info}, - $targetsid, $storage_migrate_opts); + $targetsid, $storage_migrate_opts, $logfunc); }; if (my $err = $@) { die "storage migration for '$volid' to storage '$targetsid' failed - $err\n";