You should have at least 1GB RAM and 1 CPU for a vanilla Minecraft install with no more than a few players. I recommend at least 2GB RAM and 2 CPUs if you want to add mods and plugins.