for best performance you don't allocate all core to VM because it make instable the native os ( Windows ). The same thinks for RAM. On desktop PC the virtualization is not exactly because Windows take a lot of resource. ( in particular if you mining on VM )
RE: Configuration recipe for mining with a linux vm