Problem migrating OpenVZ to Proxmox

lisandro

Member
Jan 11, 2022
10
1
8
34
Hi there!

I want to restore a VM that I was running. Many years ago (before know Proxmox) I installed CentOS 6 and OpenVZ. From OpenVZ I created a VM using a Ubuntu 12.04 template. That VM was running the last month but now the CentOS is not running because a kernel panic that I could not fix, so I have no access to that VM. I have only a backup: vzdump-openvz-101-2021_12_26-03_24_01.tgz

I have installed Proxmox 6.2-11 and I tried to restore that backup without successful. I copied that backup into /var/lib/vz/dump/ and after that I went to the 'local' disk and I tried to restore into a new CT, but I got the following message error:

TASK ERROR: unable to restore CT 999 - file does not look like a template archive: /var/lib/vz/dump/vzdump-openvz-101-2021_12_26-03_24_01.tgz

Ubuntu 12.04 is not available in the LXC templates. Is that the reason? Is there anything else I can do for fix it?

Thanks!
Regards!
 
I also tried from command line:

# pct restore 997 /var/lib/vz/dump/vzdump-openvz-101-2021_12_26-03_24_01.tgz --storage local-zfs
# qmrestore /var/lib/vz/dump/vzdump-openvz-101-2021_12_26-03_24_01.tgz 999
 
Hi,
could you try changing the extension to .tar.gz instead?
 
Hi Fabian,

Yes, I resolved this problem yesterday changing the extension from '.tgz' to '.tar.gz':

# mv /var/lib/vz/dump/vzdump-openvz-101-2021_12_26-03_24_01.tgz /var/lib/vz/dump/vzdump-openvz-101-2021_12_26-03_24_01.tar.gz
# pct restore 997 /var/lib/vz/dump/vzdump-openvz-101-2021_12_26-03_24_01.tar.gz --storage local-zfs
extracting archive '/var/lib/vz/dump/vzdump-openvz-101-2021_12_26-03_24_01.tar.gz'
Total bytes read: 392040448000 (366GiB, 195MiB/s)
Detected container architecture: amd64
###########################################################
Converting OpenVZ configuration to LXC.
Please check the configuration and reconfigure the network.
###########################################################

I was finishing configuring the CT, I just wanted to confirm this solved the problem before write the solution here ;)

Thanks!
Regards!
 
  • Like
Reactions: fiona

About

The Proxmox community has been around for many years and offers help and support for Proxmox VE, Proxmox Backup Server, and Proxmox Mail Gateway.
We think our community is one of the best thanks to people like you!

Get your subscription!

The Proxmox team works very hard to make sure you are running the best software and getting stable updates and security enhancements, as well as quick enterprise support. Tens of thousands of happy customers have a Proxmox subscription. Get yours easily in our online shop.

Buy now!