The minimum requirement for a MOSS 2010 installation are a little off at Microsoft, where it suggests you need at least 4 gig RAM
It will install with 2 gig allocated (at least in a VM anyway), but it will fail on stage 9 if you have less than 2 gig and you'll need to up the RAM and run a repair - which works fine.
I would suggest you allocate at least 2 core to any VM, it will not run fast with so little RAM and 8 Gig is a safe minimum for any live system, but as a test VM a dual core 2 gig machine will operate fine.