This is exactly how I did it! I can send you the file it is very small, so you can examine it too. If you don't mind.
Rooting android x86 in vmware is not that simple. I still can't figure out why the root script from xda doesn't work for me.
Send me the file then privately.