How do I increase the amount of memory available within Windows Sandbox? The default 4GB is not enough for some heavy programs. There seems to be nothing related in .wsb configuration files


Use the MemoryInMB configuration node in your .wsb file:

<MemoryInMB>value</MemoryInMB>

See also, https://docs.microsoft.com/en-us/windows/security/threat-protection/windows-sandbox/windows-sandbox-configure-using-wsb-file


Sandbox is based on Hyper-V. To get a higher memory limit, use Hyper-V instead (already enabled since you ran Sandbox). Then build the heavy duty VM in Hyper-V

Note: Sandbox is true to its name and not meant as a replacement for Hyper-V or VMware (these can manage memory limits)