Monday, June 18, 2012

VMware Player and Custom NAT port map settings

For my BBB Virtual machine on Windows 7, I need to have NAT settings with custom port mapping. VMPlayer does not have the "vmnetcfg" program extracted at install time, so custom NAT settings are not possible.
To manually extract the "vmnetcfg" configuration program, after installation, re-execute the VMPlayer steup program as:
Drive:> VMware-player-?.?.?-??????.exe /e .\VMTools
This will extract the all the installation files into "VMTools" directory. One of the extracted files is a cabinet file called "network.cab", which contains "vmnetcfg.exe". Open "network.cab" (as a folder) and copy "vmnetcfg.exe" and paste it into the installation root of "VMPlayer"; (usually: "C:\Program Files\VMware\VMware Player")
Run "vmnetcfg.exe" and this will give you full access to detailed network settings of all your virtual machines:
vmnetcfg UI

Click on NAT settings and you get:

6 comments:

Afnan Chowdhury said...

You saved my day mate. my situation was: running vmware player on win 7 build practice lab with win server 2008 using NAT on my laptop and I wanted to work on my desktop RDP to my laptop.

Once I get this vmnetcfg up, I used port forwarding http://geekswithblogs.net/NewThingsILearned/archive/2009/11/13/connect-to-vmware-virtual-machines-using-remote-desktop.aspx

Here you go now I can do it.
..

jcollum said...

In VMWare Player 5 you need to:

go to the vmware-directory and run in elevated cmd.exe-box

rundll32.exe vmnetui.dll VMNetUI_ShowStandalone

http://communities.vmware.com/message/2155960#2155960

Alexander Kriegisch said...

@jcollum: Thanks, this really helped me. :)

Raja Yugagularajah said...

@jcollum thanks for that info.

Blue Gene said...

Hi
I am using VM Player 6.0.1 build-1379776.
I extracted files as you instructed but there is no vmnetcfg.

Is there any other way to do port forwarding?

Thanks

Blue Gene said...

hi

I found the solution here https://communities.vmware.com/message/2326211