What is the Minimum amount of ram needed to run CUBA Studio

I see that 4 gigs are necessary based on documentation.
I want to run it in virtual box and my machine has a total for 4 gigs.
Does that mean I can only run in a non-virtual box mode due to memory allocation?

I think you can run Studio in a VM with 2G RAM if you reduce memory consumption by Gradle: see http://stackoverflow.com/questions/34314862/high-memory-usage-by-gradle-daemon for example of how to do it. You can also reduce the max heap size of Studio itself by editing the DEFAULT_JVM_OPTS variable in the bin/studio launch scripts