OS X Lion, Ubuntu 10.04 Bridged Networking Working Intermittently

Discussion in 'Linux Virtual Machine' started by davidberube, Jul 27, 2011.

  1. davidberube

    davidberube Bit poster

    Messages:
    1
    I'm running OS X Lion on the New Macbook Air.

    I have Parallels v6.0.12094 and I'm running Ubuntu Server 10.04 on it.

    I have networking setup a bridged because I need Ubuntu to get its own IP from the router for development purposes.

    Sometimes the Ubuntu will get an Internet connection and 192 IP from the router, but more times then not, it will not.

    There seems to be no rhyme or reason as to when it works and when it doesn't. I'll reboot Ubuntu 20 times, restart Parallels, reboot my Mac, etc. No one thing seems to fix it, but it will just grab a connection out of thin-air.

    Using a Shared connection always allows Ubuntu to connect to the Internet, but this isn't an option for me.

    Here is a current screenshot of ifconfig -a

    http://share.dtb.me/media/2011-07-27_1908.png

    I've spent countless hours trying to solve this problem to no avail.

    Things I've tried:
    /etc/init.d/networking restart
    ifup -a
    ifdown -a
    Changing the MAC Address of the hardware
    Changing bridged connection from Default Adapter to WiFi

    If someone can help me out here that would be awesome!

    Thank you!
     

    Attached Files:

    Last edited: Jul 27, 2011
  2. OlafG

    OlafG Bit poster

    Messages:
    5
    Same problem here. The VM doesn't get an IP via DHCP.


    2011-08-02 21:40:34 Kubuntu64 NetworkManager <WARN> default_adapter_cb(): bluez error getting default adapter: The name org.bluez was not provided by any .service files
    2011-08-02 21:40:34 Kubuntu64 NetworkManager <info> Trying to start the supplicant...
    2011-08-02 21:40:34 Kubuntu64 NetworkManager <info> Activation (eth0) starting connection 'Auto eth0'
    2011-08-02 21:40:34 Kubuntu64 NetworkManager <info> (eth0): device state change: 3 -> 4 (reason 0)
    2011-08-02 21:40:34 Kubuntu64 NetworkManager <info> Activation (eth0) Stage 1 of 5 (Device Prepare) scheduled...
    2011-08-02 21:40:34 Kubuntu64 NetworkManager <info> Activation (eth0) Stage 1 of 5 (Device Prepare) started...
    2011-08-02 21:40:34 Kubuntu64 NetworkManager <info> Activation (eth0) Stage 2 of 5 (Device Configure) scheduled...
    2011-08-02 21:40:34 Kubuntu64 NetworkManager <info> Activation (eth0) Stage 1 of 5 (Device Prepare) complete.
    2011-08-02 21:40:34 Kubuntu64 NetworkManager <info> Activation (eth0) Stage 2 of 5 (Device Configure) starting...
    2011-08-02 21:40:34 Kubuntu64 NetworkManager <info> (eth0): device state change: 4 -> 5 (reason 0)
    2011-08-02 21:40:34 Kubuntu64 NetworkManager <info> Activation (eth0) Stage 2 of 5 (Device Configure) successful.
    2011-08-02 21:40:34 Kubuntu64 NetworkManager <info> Activation (eth0) Stage 3 of 5 (IP Configure Start) scheduled.
    2011-08-02 21:40:34 Kubuntu64 NetworkManager <info> Activation (eth0) Stage 2 of 5 (Device Configure) complete.
    2011-08-02 21:40:34 Kubuntu64 NetworkManager <info> Activation (eth0) Stage 3 of 5 (IP Configure Start) started...
    2011-08-02 21:40:34 Kubuntu64 NetworkManager <info> (eth0): device state change: 5 -> 7 (reason 0)
    2011-08-02 21:40:34 Kubuntu64 NetworkManager <info> Activation (eth0) Beginning DHCP transaction (timeout in 45 seconds)
    2011-08-02 21:40:34 Kubuntu64 NetworkManager <info> dhclient started with pid 747
    2011-08-02 21:40:34 Kubuntu64 NetworkManager <info> Activation (eth0) Stage 4 of 5 (IP6 Configure Get) scheduled...
    2011-08-02 21:40:34 Kubuntu64 NetworkManager <info> Activation (eth0) Stage 3 of 5 (IP Configure Start) complete.
    2011-08-02 21:40:34 Kubuntu64 NetworkManager <info> Activation (eth0) Stage 4 of 5 (IP6 Configure Get) started...
    2011-08-02 21:40:34 Kubuntu64 NetworkManager <info> Activation (eth0) Stage 4 of 5 (IP6 Configure Get) complete.
    2011-08-02 21:40:34 Kubuntu64 NetworkManager <info> modem-manager is now available
    2011-08-02 21:40:34 Kubuntu64 dhclient Internet Systems Consortium DHCP Client V3.1.3
    2011-08-02 21:40:34 Kubuntu64 dhclient Copyright 2004-2009 Internet Systems Consortium.
    2011-08-02 21:40:34 Kubuntu64 dhclient All rights reserved.
    2011-08-02 21:40:34 Kubuntu64 dhclient For info, please visit https://www.isc.org/software/dhcp/
    2011-08-02 21:40:34 Kubuntu64 dhclient
    2011-08-02 21:40:34 Kubuntu64 modem-manager Loaded plugin ZTE
    2011-08-02 21:40:34 Kubuntu64 modem-manager Loaded plugin Nokia
    2011-08-02 21:40:34 Kubuntu64 modem-manager Loaded plugin Huawei
    2011-08-02 21:40:34 Kubuntu64 modem-manager Loaded plugin Sierra
    2011-08-02 21:40:34 Kubuntu64 NetworkManager <info> DHCP: device eth0 state changed (null) -> preinit
    2011-08-02 21:40:34 Kubuntu64 dhclient Listening on LPF/eth0/00:1c:42:13:5f:d7
    2011-08-02 21:40:34 Kubuntu64 dhclient Sending on LPF/eth0/00:1c:42:13:5f:d7
    2011-08-02 21:40:34 Kubuntu64 dhclient Sending on Socket/fallback
    2011-08-02 21:40:34 Kubuntu64 dhclient DHCPDISCOVER on eth0 to 255.255.255.255 port 67 interval 8
    2011-08-02 21:40:34 Kubuntu64 modem-manager Loaded plugin Option High-Speed
    2011-08-02 21:40:34 Kubuntu64 modem-manager Loaded plugin Ericsson MBM
    2011-08-02 21:40:34 Kubuntu64 modem-manager Loaded plugin Option
    2011-08-02 21:40:34 Kubuntu64 modem-manager Loaded plugin AnyData
    2011-08-02 21:40:34 Kubuntu64 modem-manager Loaded plugin Generic
    2011-08-02 21:40:34 Kubuntu64 modem-manager Loaded plugin MotoC
    2011-08-02 21:40:34 Kubuntu64 modem-manager Loaded plugin Gobi
    2011-08-02 21:40:34 Kubuntu64 modem-manager Loaded plugin Longcheer
    2011-08-02 21:40:34 Kubuntu64 modem-manager Loaded plugin Novatel
    2011-08-02 21:40:35 Kubuntu64 cron[811] (CRON) INFO (pidfile fd = 3)
    2011-08-02 21:40:35 Kubuntu64 acpid starting up with proc fs
    2011-08-02 21:40:35 Kubuntu64 anacron[825] Anacron 2.3 started on 2011-08-02
    2011-08-02 21:40:35 Kubuntu64 cron[826] (CRON) STARTUP (fork ok)
    2011-08-02 21:40:35 Kubuntu64 init apport pre-start process (803) terminated with status 1
    2011-08-02 21:40:35 Kubuntu64 init apport post-stop process (828) terminated with status 1
    2011-08-02 21:40:35 Kubuntu64 anacron[825] Normal exit (0 jobs run)
    2011-08-02 21:40:35 Kubuntu64 cvslockd CVS Lock service initialised successfully
    2011-08-02 21:40:35 Kubuntu64 cron[826] (CRON) INFO (Running @reboot jobs)
    2011-08-02 21:40:35 Kubuntu64 acpid 36 rules loaded
    2011-08-02 21:40:35 Kubuntu64 acpid waiting for events: event logging is off
    2011-08-02 21:40:35 Kubuntu64 acpid client connected from 762[0:0]
    2011-08-02 21:40:35 Kubuntu64 acpid 1 client rule loaded
    2011-08-02 21:40:35 Kubuntu64 avahi-daemon[683] Registering new address record for fe80::21c:42ff:fe13:5fd7 on eth0.*.
    2011-08-02 21:40:37 Kubuntu64 kernel [ 24.688055] ppdev: user-space parallel port driver
    2011-08-02 21:40:38 Kubuntu64 anacron[960] Anacron 2.3 started on 2011-08-02
    2011-08-02 21:40:38 Kubuntu64 anacron[960] Normal exit (0 jobs run)
    2011-08-02 21:40:39 Kubuntu64 init plymouth-stop pre-start process (1034) terminated with status 1
    2011-08-02 21:40:39 Kubuntu64 kdm_greet[898] Cannot load /usr/share/kde4/apps/kdm/faces/.default.face: Datei oder Verzeichnis nicht gefunden
    2011-08-02 21:40:42 Kubuntu64 dhclient DHCPDISCOVER on eth0 to 255.255.255.255 port 67 interval 21
    2011-08-02 21:40:45 Kubuntu64 kernel [ 32.420659] eth0: no IPv6 routers present
    2011-08-02 21:41:03 Kubuntu64 dhclient DHCPDISCOVER on eth0 to 255.255.255.255 port 67 interval 7
    2011-08-02 21:41:10 Kubuntu64 dhclient DHCPDISCOVER on eth0 to 255.255.255.255 port 67 interval 11
    2011-08-02 21:41:20 Kubuntu64 NetworkManager <info> (eth0): DHCP transaction took too long, stopping it.
    2011-08-02 21:41:20 Kubuntu64 NetworkManager <info> (eth0): canceled DHCP transaction, dhcp client pid 747
    2011-08-02 21:41:20 Kubuntu64 NetworkManager <info> Activation (eth0) Stage 4 of 5 (IP4 Configure Timeout) scheduled...
    2011-08-02 21:41:20 Kubuntu64 NetworkManager <info> Activation (eth0) Stage 4 of 5 (IP4 Configure Timeout) started...
    2011-08-02 21:41:20 Kubuntu64 NetworkManager <info> (eth0): device state change: 7 -> 9 (reason 5)
    2011-08-02 21:41:20 Kubuntu64 NetworkManager <info> Marking connection 'Auto eth0' invalid.
    2011-08-02 21:41:20 Kubuntu64 NetworkManager <info> Activation (eth0) failed.
    2011-08-02 21:41:20 Kubuntu64 NetworkManager <info> Activation (eth0) Stage 4 of 5 (IP4 Configure Timeout) complete.
    2011-08-02 21:41:20 Kubuntu64 NetworkManager <info> (eth0): device state change: 9 -> 3 (reason 0)
    2011-08-02 21:41:20 Kubuntu64 NetworkManager <info> (eth0): deactivating device (reason: 0).
     
  3. cmsj

    cmsj Junior Member

    Messages:
    10
    I am seeing this as well with 11.04. Interestingly the guest works fine if I configure a network interface statically, it's just DHCP that seems to not be being bridged.
    If I use tcpdump on OSX I can see the packets appearing on en0 (wifi), but other machines on my LAN don't see them.
    It slightly suggests that OSX is not sending the packets.
     
  4. Elric

    Elric Parallels Team

    Messages:
    1,712
    Hi,

    due to nature of the WiFi networking, VM while bridged to WiFi must use host's MAC-address. But some of the WiFi routers doesn't allow DHCP-request that mismatches actual MAC-address.

    The reliable way to workaround this is to assign a static IP-address to the guest in VM.

    We attempted to provide a solution with "Send Host's MAC-address to DHCP server" option in the network settings, but it works only when wireless adapter is explicitly selected as to be bridged to (it is ignored when Default adapter is selected) and doesn't helps in most of the cases and even sometimes Guest receives Host's IP-address and blocks networking from Mac. Also, in linuxes additional configuration is required. Reffer to http://download.parallels.com/desktop/v5/docs/en/Parallels_Desktop_Users_Guide/28189.htm

    So, I recommend to use static IP if you need to bridge to WiFi and SharedNetworking doesn't suite your needs.
     

Share This Page