-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA256

On Thu, May 22, 2025 at 05:52:14PM -0000, qubist wrote:
> Hi,
> 
> I am looking for a way to trigger an event in a bash script as soon as
> the full size of the memory of the started qube (maxmem) becomes
> available.
> 
> /rw/config/rc.local seems to run before that and `grep MemTotal
> /proc/meminfo` returns too small number when called from it.
> 
> How can I do that?

It feels like you want a VM with some specific amount of memory, not
"as much as it needs, and possibly some more if there is some". So, an
easier way is to simply disable dynamic memory for this VM and set the
desired static amount. This way, that VM will always get this much RAM
(and fail to start if you don't have enough free).

- -- 
Best Regards,
Marek Marczykowski-Górecki
Invisible Things Lab
-----BEGIN PGP SIGNATURE-----

iQEzBAEBCAAdFiEEhrpukzGPukRmQqkK24/THMrX1ywFAmgvZ64ACgkQ24/THMrX
1yyAyQf+N9I0Lz99n0VVOoIde2C4qkqDCL4DPkoizrPVZ5vaIllo7K3Skg+XigqQ
9JxvX8/PHHIuMHOaZhZaXO5iixaVAeH3DGcJilujgnlOMBzw/D/hFOLPWD6Y3mFZ
2SL1Y8DtEwQQXLln3eAX6Y9Ms7UYKBdX8PN+YOv5ghLCDHjG+wMgNydSR8MxS4F2
TFjb8pirqO4Py+9pEdrUEpAUYzsyTayVfGyiMaF8+CjSX8lOOSQ29vqgtfudbPwW
myHLqn/+mdH4qrcIHDhuLQjM4sI7+658Bm8TtnjiSO5gMbAeG3X5M3EmXvxWc2zw
QkJPkdubOdM8MS9K7s1ULYxhceuYoQ==
=7+hK
-----END PGP SIGNATURE-----

-- 
You received this message because you are subscribed to the Google Groups 
"qubes-devel" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to qubes-devel+unsubscr...@googlegroups.com.
To view this discussion visit 
https://groups.google.com/d/msgid/qubes-devel/aC9nrimbZW5I8JOK%40mail-itl.

Reply via email to