Does Windows virtual machine crash due to low RAM?
I installed Windows 11 in Virtual Box in case I need it for school but it keeps crashing. My laptop is 12gb RAM and I gave the VM 8gb RAM.
If I upgrade my laptop RAM to maybe 16gb and give the VM 12gb RAM would that help? Thanks I'm a newb
gomp
in reply to unicornBro • • •What's crashing? the Linux host? Virtualbox? the windows guest?
(personally I won't be able to help you, but other people might)
unicornBro
in reply to gomp • • •merthyr1831
in reply to unicornBro • • •I would consider creating a swapfile if you have an SSD. There should be countless tutorials for doing it on Ubuntu.
It might mean your windows or Ubuntu install gets sluggish, but even 32GB (less than 10% of a typical storage drive!) of spare swap space can let your active and memory-hogging processes breathe instead of invoking the SystemD-OOM killer.
For what it's worth, I think Ubuntu is also fairly aggressive with memory management. I remember complaints that it was a little too hasty to kill user processes under memory-limited scenarios. not sure if that was addressed
malin
in reply to unicornBro • • •VMs will crash because of running out of RAM.
It sounds like that's exactly what's happening with your setup, however you probably don't need to buy more RAM to fix it.
Type
free
, orfree -h
, into a terminal to see how much RAM and swap space is being used.Swap is a tool that allows you to use your storage drive as additional RAM when necessary. If nothing indicates swap usage when using
free
, then you need to enable swap space.Ask AI "How do I enable swap on Linux" and it should give you good instructions.