VZdump Backup issue - Undefined subroutine &PVE::Tools::file_copy

mamatov

Member
Jan 16, 2015
35
0
6
Hi,

I need to backup my VMs in order to restore them to an other proxmox server.

I tried to backup using the local storage but I have this error :


root@srvproxfront:/var/lib/vz/images/102# vzdump 102
INFO: starting new backup job: vzdump 102
INFO: Starting Backup of VM 102 (qemu)
INFO: status = stopped
INFO: update VM 102: -lock backup
INFO: backup mode: stop
INFO: ionice priority: 7
ERROR: Backup of VM 102 failed - Undefined subroutine &PVE::Tools::file_copy called at /usr/share/perl5/PVE/VZDump/QemuServer.pm line 213, <GEN47> line 12. INFO: Backup job finished with errors
job errors

pve version :

root@srvproxfront:/var/lib/vz/images/102# pveversion
pve-manager/4.1-2/78c5f4a2 (running kernel: 4.2.6-1-pve)

Could you please help me to fix this issue ?
 
You have a broken code, don't know why but the update is the only possible fix.
 
Ok thanks I understand.
Is it possible to migrate my VMs using this way :

Old Proxmox server :

1 - Stop VM
2 - rsync qcow2 disk to the new proxmox server in an temp directory

New Proxmox server :

1 - Create a VM with the same disk space
2 - Remove the disk /var/lib/vz/images/100/vm-100-disk-1.qcow2
3 - Move the disk from temp directory to /var/lib/vz/images/100/
4 - Start the VM

Is it a good way ?

Thanks.
 
The easyest way

stop vm
scp you images from old to new host.
scp your config located /etc/pve/[qemu|lxc]/<vmid>.conf

Important the storage must have the same naming on the old and the new host