Restore host backup to vm on PVE

mwelters

New Member
Hi,

with proxmox-backup-client I backuped from inside a (VMWare-) virtual-machine to a namespace on PBS.
Command-Line was:
Code:
sudo proxmox-backup-client backup it_server_de.pxar:/ --repository server-rz@pbs@192.168.132.30:pbs-local --ns Server

In PBS the Backup shows fine as "Hosts/hostname" with savepoints. Looks like the "vm/100" backups from a Proxmox VE host...

But in the Proxmox VE Gui, the Backup does not show and cannot be restored (the vm/100 backup is visible).

For testing, I created a new backup of the same Machine with "backup-type=vm" ....
Code:
sudo proxmox-backup-client backup it_server_de.pxar:/ --repository server-rz@pbs@192.168.132.30:pbs-local --ns Server --backup-type=vm
Does not show up in Proxmox VE Storage either...

Would be a real feature, if I could backup (any hypervisor) - Virtual Machine from inside to migrate it to Proxmox...

Any Ideas hints where to enable this ?
 
VM backups aren't storing the files/folders of the root filesystem. They are storing blockdevices, so backups of your files from within the VM wouldn't be useful. And then VM backup also needs to store the VM config file, which defines what the VM hardware and so on should look like.

For migration, create a new VM and then try the "qm importdisk" to import a vmdk.
 
Last edited:
this won't work like that - for VMs, PVE expects a block-level backup (with fixed-index representing a raw disk iamge), not a file-level one (with dynamic-index representing a pxar archive of a directory tree).

the following could work, but might require some manual touch-ups

on the vmware side:
- boot live CD In VM
- backup full disk(s) as fixed index

on PVE side
- create VM without disk(s)
- restore backed-up disk(s) as raw image file(s) using proxmox-backup-client
- import raw image file into VM (e.g., qm set XXX -scsi0 TARGET_STORAGE:0,import-from=/path/to/raw/image/file,...)
 
  • Like
Reactions: Moayad

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!