proxmox-backup/proxmox-file-restore
Lukas Wagner 74d3d6e9da proxmox-file-restore: allocate at least 256MB of RAM for the restore VM
The update from proxmox-backup-restore-image 0.7.0 -> 1.0.0 increased
the size of the initramfs image by couple of megabytes (~45 -> ~49),
making it too large to be successfully booted in a VM with 192MB of RAM.
This led to a "VM exited before connection could be established (500)"
error in the GUI when attempting to restore a single file,
while /var/log/proxmox-backup/file-restore/qemu.log reported the
following error:

  Initramfs unpacking failed: write error

As a stop-gap measure, the minimum RAM allocation is bumped to 256MB.

Since the amount of RAM is based on the number of disks, giving the VM
more memory if a large number of disks is associated with the backup
snapshot, this patch was also tested with 19, 20 and 25 disks as to
ensure that the remaining cases still work fine without a bump.

Signed-off-by: Lukas Wagner <l.wagner@proxmox.com>
Link: https://lore.proxmox.com/20250715101907.303115-1-l.wagner@proxmox.com
2025-07-15 22:17:26 +02:00
..
src proxmox-file-restore: allocate at least 256MB of RAM for the restore VM 2025-07-15 22:17:26 +02:00
Cargo.toml update dependency versions for trixie 2025-06-16 13:59:37 +02:00