ERROR: restore openvz backup

mateofix

Member
Jan 14, 2017
8
0
6
28
Hello,

i backup a VM with Proxmox on my server Dedibox de Online.net, but when i restore the VM on my new server Kimsufi (OVH), i this error, an solution :

Error
ERROR: restore openvz backup 'vzdump-lxc-100-2017_01_14-21_27_57.tar.gz' failed - command 'sed -e 's/VE_ROOT=.*/VE_ROOT=\"\/var\/lib\/vz\/root\/$VEID\"/' -e 's/VE_PRIVATE=.*/VE_PRIVATE=\"\/var\/lib\/vz\/private\/$VEID\"/' <'/var/lib/vz/private/100/etc/vzdump/vps.conf' >'/etc/vz/conf/100.conf'' failed with exit code 1

Commandes
Dedibox Online.net :

vzdump 100 --dumpdir /var/lib/vz/dump/ --maxfiles 2 --mode suspend --compress gzip --exclude-path /home/static/content

Kimsufi OVH :

vzrestore mybackup.tar.gz 100
 
Seems you try to restore a new lxc container to an old openvz box! This will not work (use Proxmox VE 4.X instead).