Restore VM with disks in different storages.

vaschthestampede

Active Member
Oct 21, 2020
131
8
38
39
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.