how can i copy a VM from one proxmox backup server to another proxmox backup server without adding a datastore?

se_marc

Member
Jul 13, 2021
23
1
8
38
Hi all,

Is there a good way to copy a VM from one PBS instance to another?

I downloaded all the files from the 1st PBS instance which is using ZFS

1672323437297.png

the second PBS instance is also using ZFS.

i copied the files to /mnt/datastore/pbsPool/vm/500/2022-12-29T13:10:03Z

i changed ownership of 500 recursively

Code:
root@pbs-1:/mnt/datastore/pbsPool/vm# chown -R backup:backup 500

renamed the image files to /fidx

Code:
root@pbs-1:/mnt/datastore/pbsPool/vm/500/2022-12-29T13:10:03Z# mv drive-efidisk0.img drive-efidisk0.img.fidx
root@pbs-1:/mnt/datastore/pbsPool/vm/500/2022-12-29T13:10:03Z# mv  drive-ide0.img drive-ide0.img.fidx
root@pbs-1:/mnt/datastore/pbsPool/vm/500/2022-12-29T13:10:03Z#

now when i look in the second PBS GUI, I don't see VM 500.

What can i do to make it show up in the GUI?

1672324964693.png
 
i needed to copy the `owner` file from another vm backup and it shows up now.

Code:
root@pbs-1:/mnt/datastore/pbsPool/vm# cp 114/owner 500/
 
now im running into the issue that the new PBS instance cannot verify the VM

Code:
2022-12-29T10:16:18-05:00: verify pbsPool:vm/500/2022-12-29T13:10:03Z - manifest load error: unable to load blob '"/mnt/datastore/pbsPool/vm/500/2022-12-29T13:10:03Z/index.json.blob"' - unable to parse raw blob - wrong magic
2022-12-29T10:16:18-05:00: Failed to verify the following snapshots/groups:
2022-12-29T10:16:18-05:00:     vm/500/2022-12-29T13:10:03Z
2022-12-29T10:16:18-05:00: TASK ERROR: verification failed - please check the log for details
 
I would add the 'source' PBS as remote on the second PBS and just run a pull with group-filter to the single vm:
`proxmox-backup-manager pull <remote> <remote-store> <store>`

I hope this helps!
 
I would add the 'source' PBS as remote on the second PBS and just run a pull with group-filter to the single vm:
`proxmox-backup-manager pull <remote> <remote-store> <store>`

I hope this helps!

if the vm ID of the source PBS is the same as a vm ID on the destination, will it overwrite the current VM or is there a way i can change the VMID on either?
 
the first workaround for this that comes to mind is to create a namespace on the destination and pull into that (see the `--ns` parameter)

I hope this helps!
 

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!