[SOLVED] manual backup vm image (raw/qcow2) not from proxmox ve

NoLine

Member
Oct 7, 2020
16
2
23
44
We have migrated virtual machines from KVM to Proxmox VE.

We would like to back up some old virtual machines "just in case".

Will it be possible to back up old virtual machines in the same way as they are made with Proxmox VE?
 
hi,
Will it be possible to back up old virtual machines in the same way as they are made with Proxmox VE?
what do you mean exactly?

PVE also uses KVM, so if your VM disk works in KVM then it'll work in PVE too.
 
hi,

what do you mean exactly?

PVE also uses KVM, so if your VM disk works in KVM then it'll work in PVE too.
I have a copy of a virtual machine (vmname.qcow2 and vmname.xml) that previously ran on debian10 with KVM
I'd like to put it on PBS, but to have access to it from PVE (for example to be able to restore files)


One possibility is to import the virtual machine into PVE with some very high VID (ex. 99xx), make a backup to PBS, and then delete it from PVE.

But is it possible to do it differently?

I hope now I have explained well what I want to do ;)
 
One possibility is to import the virtual machine into PVE with some very high VID (ex. 99xx), make a backup to PBS, and then delete it from PVE.
yes that'd be one way to do it :)

But is it possible to do it differently?
you could also backup the qcow file directly into PBS using the CLI proxmox-backup-client (then you don't need to create a VM, backup client can take arbitrary files) [0]
or alternatively mount the qcow2 in a directory then make a backup of all the files

[0]: https://pbs.proxmox.com/docs/backup-client.html#creating-backups
 
It works ;)

Code:
 proxmox-backup-client backup disk.img:./testvm.qcow2 qemu-server.conf:./testvm.xml --backup-type vm --backup-id 9994 --keyfile ./pbs.enc --verbose

Unfortunately it doesn't work well when --backup-id is a name like "--backup-id testvm"

Backup is in PBS but invisible to PVE.
I have PBS 1.1 and PVE 6.4, maybe it works better in the new version

And i also wait for "protect backup" feature :D
 
Last edited:

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!