* [pbs-devel] [PATCH proxmox-backup] proxmox-file-restore: allocate at least 256MB of RAM for the restore VM
@ 2025-07-15 10:19 Lukas Wagner
2025-07-15 20:31 ` [pbs-devel] applied: " Thomas Lamprecht
0 siblings, 1 reply; 2+ messages in thread
From: Lukas Wagner @ 2025-07-15 10:19 UTC (permalink / raw)
To: pbs-devel
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>
---
proxmox-file-restore/src/qemu_helper.rs | 1 -
1 file changed, 1 deletion(-)
diff --git a/proxmox-file-restore/src/qemu_helper.rs b/proxmox-file-restore/src/qemu_helper.rs
index e0e16911..4be9331c 100644
--- a/proxmox-file-restore/src/qemu_helper.rs
+++ b/proxmox-file-restore/src/qemu_helper.rs
@@ -316,7 +316,6 @@ pub async fn start_vm(
} else {
// add more RAM if many drives are given
match id {
- f if f < 10 => 192,
f if f < 20 => 256,
_ => 384,
}
--
2.39.5
_______________________________________________
pbs-devel mailing list
pbs-devel@lists.proxmox.com
https://lists.proxmox.com/cgi-bin/mailman/listinfo/pbs-devel
^ permalink raw reply [flat|nested] 2+ messages in thread
* [pbs-devel] applied: [PATCH proxmox-backup] proxmox-file-restore: allocate at least 256MB of RAM for the restore VM
2025-07-15 10:19 [pbs-devel] [PATCH proxmox-backup] proxmox-file-restore: allocate at least 256MB of RAM for the restore VM Lukas Wagner
@ 2025-07-15 20:31 ` Thomas Lamprecht
0 siblings, 0 replies; 2+ messages in thread
From: Thomas Lamprecht @ 2025-07-15 20:31 UTC (permalink / raw)
To: pve-devel, pbs-devel, Lukas Wagner
On Tue, 15 Jul 2025 12:19:07 +0200, Lukas Wagner wrote:
> 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:
>
> [...]
Applied, thanks!
[1/1] proxmox-file-restore: allocate at least 256MB of RAM for the restore VM
commit: 74d3d6e9da5a8e6c1abc05f3d3eb08d8c36eb8c5
_______________________________________________
pbs-devel mailing list
pbs-devel@lists.proxmox.com
https://lists.proxmox.com/cgi-bin/mailman/listinfo/pbs-devel
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2025-07-15 20:31 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2025-07-15 10:19 [pbs-devel] [PATCH proxmox-backup] proxmox-file-restore: allocate at least 256MB of RAM for the restore VM Lukas Wagner
2025-07-15 20:31 ` [pbs-devel] applied: " Thomas Lamprecht
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox