If your Mac has only 2 GB then your virtual machine probably shouldn't be given more than 1 GB. You can change how much the virtual machine is given (while it is not running) by using the menu: Virtual Machine -> Configure -> General -> Memory. If the virtual machine is given too much, then your Mac will run slowly.