vzpbackup icon indicating copy to clipboard operation
vzpbackup copied to clipboard

Restore is not working when CTID contains "-"

Open ISSchuster opened this issue 7 years ago • 3 comments

Backup works fine with a CTID like "33509944-2961-4ed3-a51e-8496805f75fd"

Restore doesn't work...

If I change the CTID to e.g. 901 the restore works and the machine can be started is running without problem.

It would be great if I could use the original CTID "33509944-2961-4ed3-a51e-8496805f75fd" in the restore process.

Thanks

ISSchuster avatar Aug 27 '17 10:08 ISSchuster

After removing the following lines from vzprestore.sh it works... But I dont know if this is a good idea or if it can cause any other problems....

if [[ ! $CONTAINER =~ ^[0-9]+$ ]]; then show_usage; exit 0; fi

ISSchuster avatar Aug 27 '17 11:08 ISSchuster

@ISSchuster, As I understand it, you use the script on OpenVZ 7 or Virtuozzo 7. Unfortunately I do not have these versions and I can not test and fix the script.

I will be grateful if you tell me how to install OpenVZ 7 with minimal effort. Will there be enough KVM and iso file from here?

makss avatar Aug 28 '17 13:08 makss

Hi makss, I don't know if it's working on KVM but i think it should work if KVM supports hardware virtualization... I know that ESXi 6.0 supports hardware virtualization and I can confirm that the ISO files works fine on ESXi...

Perhaps this will help: https://fedoraproject.org/wiki/How_to_enable_nested_virtualization_in_KVM

ISSchuster avatar Aug 28 '17 19:08 ISSchuster