Windows: Increase MaximumSize of included C:\pagefile.sys
Compilation with GHC (Glasgow Haskell Compiler) fails due to a page file that's too small. It's currently set to:
Name InitialSize MaximumSize FileSize ---- ----------- ----------- -------- C:\pagefile.sys 1024 1024 1073741824
MaximumSize can be increased form within the VM session, it doesn't seem to take effect. Comments scattered on the internet seem to suggest it takes a reboot to make it work.
Issue #25447 reports the same problem, albeit for a different compiler. Whilst the same issue, I'd like to propose a different solution.
MaximumSize to a more reasonable default, for example 8192 or 16384. This would allow the pagefile to dynamically grow. Hence, users that do not use the page file won't have to pay for it.
I'm not sure how Windows images are built. However, if it's possible to execute arbitrary commands I presume it would look something like https://stackoverflow.com/a/37813686.