VirtualBox error: Unable to allocate and lock memory. The virtual machine will be paused
This error is thrown because the host memory is not sufficient for the VM to run. Close all the applications running on your host machine and just run the VM. The best option will be to increase the RAM of your system and further increase the RAM provided to the VM.