file-restore: use less memory for VM and reboot on panic
With the vsock-pkt-buffer fix in proxmox-backup-restore-image, we can use way less memory for the VM without risking any crashes. 128 MiB seems to be the lowest it will go and still be fully reliable. While at it, add the "panic=1" argument to the kernel command line, so in case the kernel *does* run out of memory, it will at least restart automatically. Signed-off-by: Stefan Reiter <s.reiter@proxmox.com>
This commit is contained in:
parent
ddbd63ed5f
commit
a862835be2
|
@ -168,13 +168,13 @@ pub async fn start_vm(
|
|||
"none",
|
||||
"-enable-kvm",
|
||||
"-m",
|
||||
"512",
|
||||
"128",
|
||||
"-kernel",
|
||||
buildcfg::PROXMOX_BACKUP_KERNEL_FN,
|
||||
"-initrd",
|
||||
&ramfs_path,
|
||||
"-append",
|
||||
"quiet",
|
||||
"quiet panic=1",
|
||||
"-daemonize",
|
||||
"-pidfile",
|
||||
&format!("/dev/fd/{}", pid_fd.as_raw_fd()),
|
||||
|
|
Loading…
Reference in New Issue