1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

WTH Linux expert to fix Virtual box lan connection

Discussion in 'Hire a Freelancer' started by gianni, Aug 13, 2011.

  1. gianni

    gianni Junior Member

    Joined:
    Jul 8, 2010
    Messages:
    172
    Likes Received:
    80
    I am running lightweight debian distro inside of VirtualBox (using 80MB of ram) and need somebody to fix connectivity issues for me.


    The virtual box can access the internet,but cannot access the host via lan.
    Host cannot access virtual box via lan either, but can access it fine via internet.

    I need somebody to fix the connectivity for me. I think it's because virtual box has ip 10.0.0.1 (or whatever it is) which isn't a part of the host subnet and so they cannot see eachother.


    This should be an easy fix for somebody that knows what he's doing.
    Send me a pm if you can do it and for how much.

    I need this done ASAP.
     
  2. dr_0x

    dr_0x Junior Member

    Joined:
    May 9, 2010
    Messages:
    141
    Likes Received:
    169
    Home Page:
    The easiest way to do this is to set the network adapter to bridged mode in virtualbox.

    Highlight your virtual machine (while off). Then go to.

    Machine >> Settings >> Lan (tab) >> set Attached to = Bridged.

    Then boot your virtual machine.
     
  3. gianni

    gianni Junior Member

    Joined:
    Jul 8, 2010
    Messages:
    172
    Likes Received:
    80
    I tried bridged already. Virtualbox machine couldn't access internet anymore.
    Tried it with pinging google. could not resolve hostname.

    lan connectivity did work back then though :D
     
  4. dr_0x

    dr_0x Junior Member

    Joined:
    May 9, 2010
    Messages:
    141
    Likes Received:
    169
    Home Page:
    Bridged is the way to go. Make sure that the interface it is pointing to is the same one your host machine uses to connect to the internet. Then try loggin into the VM and in a shell run:

    Code:
    sudo dhclient eth0
    
     
    Last edited: Aug 13, 2011