VMWare Fusion Airport Bridged Interface

Today I needed that my bridged interface for my Linux Virtual Machine in VMWare Fusion was bind to the Airport network card instead of the wired ethernet card. I wanted that may wireless hosts could access my VM in the wireless network from other hosts.
By the way this was an Ad-Hoc network created with Internet Sharing option in Mac OS X system preferences, so that I can share internet to my home. 

In order to VMWare Fusion start to bind your virtual bridge interfaces you need to edit the file at:

/Library/Application\ Support/VMware\ Fusion/boot.sh

Locate in the file the following code:

# vmnet-bridge puts itself in background (daemon mode)
# Bridge to host network interface 'en0'.
#"$LIBDIR/vmnet-bridge" -d /var/run/vmnet-bridge-vmnet0.pid vmnet0 en0
# Bridge to the primary host network interface (which can change over time).
"$LIBDIR/vmnet-bridge" -d /var/run/vmnet-bridge-vmnet0.pid vmnet0 ''

And change to this:

# vmnet-bridge puts itself in background (daemon mode)
# Bridge to host network interface 'en0'.
"$LIBDIR/vmnet-bridge" -d /var/run/vmnet-bridge-vmnet0.pid vmnet0 en1
# Bridge to the primary host network interface (which can change over time).
# "$LIBDIR/vmnet-bridge" -d /var/run/vmnet-bridge-vmnet0.pid vmnet0 ''

Notice I’ve change the en0 interface (the wired NIC) to en1 (the Airport).

Restart VMWare services, including vmnet-bridge by issuing the following command:

sudo /Library/Application\ Support/VMware\ Fusion/boot.sh --restart

Yeahh.. Now my VM discovered an IP address on the wireless network. (DHCP was running on the Airport interface since I was using Internet Sharing in Mac OS X Leopard).

12 thoughts on “VMWare Fusion Airport Bridged Interface

  1. You saved my life! I’ve been fighting with this for MONTHS and could never figure it out. You are a ROCKSTAR!!!

    [Reply]

  2. Ahh perfect article! EXACTLY what i needed.Thank you so much..

    For some reason though I couldn’t get that last command to work to restart the services.. until i just copied and paste

    Figures , i’m a terminal noob anyway.

    Thanks again

    [Reply]

  3. Thanks very much. I guess at this time there is no way to use both interfaces? I have 2 VM’s and I would like one to use en0, and the other to use en1.

    [Reply]

    braceta Reply:

    Good question! I believe you can’t do it..

    In VMware Fusion GUI there is no option to select which physical bridged interface is associated with your Virtual Machine..

    If you find out, please, let me know!

    Cheers

    [Reply]

  4. I left off the rest of the steps. You need to modify the .vmx file for your VM in a text editor and add the following as the last line:

    ethernet1.connectionType = “custom”
    ethernet1.vnet = “vmnet2”

    Really, though, go to the knowledge base article and follow its steps.

    [Reply]

    braceta Reply:

    Thanks for the help Mark! Really great info! You rule!

    [Reply]

  5. I was having the same issue. No DHCP assignment in auto bridge mode on Snow Leopard host with a Windows 2008 Enterprise Server 32bit guest machine when using Airport on my host machine on 3.0.5 (I think). I upgraded today to 3.1.1 (282344) and this problem no longer occurs. Also, I had another issue where when I suspended the guest when using Airport on my host machine and then resumed the VM with the host on Ethernet (in a different location), the guest machine would run extremely slowly until I rebooted the guest and the guest would not automatically switch networks either until a reboot occurred. Even when I tried to do an ipconfig /release and /renew in the guest, it still wouldn’t work until a reboot. Now, it still fails to get online automatically with the host machine’s network interface change, but now you can at least use ipconfig to release and renew the IP address and it works now.

    [Reply]

  6. Hi, i just found this article and i think it the answer to my problem, but the thing is that i cannot find these file on “/Library/Application\ Support/VMware\ Fusion/boot.sh”

    any help?

    im using vmware fusion 4 running on Osx Lion, maybe the directory where the file is not the same for my new version of Os and fusion.

    Thanks.

    [Reply]

  7. hello everyone,
    please help me, I have mac 10.7.3, installed win-7 on vmware fusion, i can use internet on win-7 but how to use that internet connection on mac? As described above, i can’t find VMware\ Fusion/boot.sh at that location. even i searched, but i get vmware application.
    please help.
    thank you.

    [Reply]

Leave a Reply

Your email address will not be published. Required fields are marked *

Captcha * Time limit is exhausted. Please reload the CAPTCHA.