how can i do mining on vmware machine
Currently, all mining software have GPU and CPU mining disabled by default. You're going to need to recompile from source and enable CPU/GPU mining to be able to mine with your CPU/GPU. You should be warned that this is not profitable in any way, shape, or form and that even on testnet, your CPU won't likely find a block for many hours.

That said, if you're determined to do it, get the source for bfgminer here: https://github.com/luke-jr/bfgminer

Compile with the --enable-cpumining flag and you should have a binary that lets you use the CPU.