Are you trying to set up a server on VM for testing purposes, or just to test out stuff in general, like in different platforms?
If it's just for testing in general, like the above poster said, you can set up wamp or xampp and make you computer run like a server. Very easy to set up and use. It...