Home Assistant on VM not reliable

I know this is a 9 month old thread but for anyone else that is having reliability problems with virtual box running Home Assistant OS, I increased the RAM from 2048 MB to 4096 MB and all the freezing issues were gone.

Before that it was freezing every 4-6 hours. The only way it would work again was to reboot the virtual box machine.

This is a viable way only if you have more than those 4 gb ram on the host of course. Otherwise it might not change anything. Also this depends on if 4 GB are enough to run HA with all installed add-ons.