how to safe offline proxmox with CT

tsaenger

Renowned Member
Mar 10, 2010
136
2
83
Hello,
i have a proxmox installation witch i can not boot anymore.
Now i would like to know witch files do i have to safe at my offlein-filesystem that i can use the backup after reinstalling the Hostsystem.
Do i only have to safe /var/lib/vz ? What do i have to do, to get the CT working at a new hostsystem?

i can not use vzdump 101 in hetzner recovery-modus. Here i get this error:
Code:
INFO: starting new backup job: vzdump 101
INFO: Starting Backup of VM 101 (openvz)
ERROR: Backup of VM 101 failed - command 'vzctl status 101' failed with exit code 5
INFO: Backup job finished with errors
Thanks a lot

Tobias
 
Last edited:
Hi,
change dir to /var/lib/vz/private/<VMID>
make an tar of the dir.
tar zcfv <VMID>.tar.gz ./

on the new Proxmox make a new ct and use the tar as template.
you get probably a warning on start, to get rid of it you must edit the config.

edit /etc/pve/openvz/<VMID>.conf
change the OSTEMPLATE to the original.