Restore VM with disks in different storages.

vaschthestampede

Active Member
Oct 21, 2020
115
7
38
38
Restoring to a VM from WebGUI lets you choose only one storage for the restore.

This is problematic given that very often if I have a VM with two disks on two different storage it's because I don't have the space I need on just one.
So I couldn't do the restore.

Is there a way, even in CLI, to specify the storage in which to restore the various disks?
 
I don't believe there is such an option today.

However, if you don't specify a storage target, then per man page:
Code:
DESCRIPTION
       Restore the QemuServer vzdump backup archive to virtual machine vmid. Volumes are allocated on the original storage if there is no storage specified.


Blockbridge : Ultra low latency all-NVME shared storage for Proxmox - https://www.blockbridge.com/proxmox
 
Interesting!
Maybe if I modify the configuration file I could do a direct restore.

The problem with editing it is that it appears encrypted.
Is there a way to change it?
 
https://bugzilla.proxmox.com/show_bug.cgi?id=4275

but like @_gabriel said, you can allocate the target disks, and then restore into them (via a pipe, for example) as a workaround, if the default of "use storage like at backup time" is not possible. editing the backed-up config doesn't really work, it's immutable.
 

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!