windows 7 - VirtualBox Window7 Guest "No Internet Access" with Bridged Networking

23
2014-04
  • LonnieBest

    Using Ubuntu 12.04 as a VirtualBox host, I've successfully used Bridged Networking with Windows XP guests (because NAT has a bug that causes slow printing).

    Now, I have a Windows 7 guest. It gets issued an ip when using Bridged Networking, but "No Internet Access". This same guest can access the internet fine when using NAT, yet I need bridged-networking to circumvent the slow printing issue.

    How can I have internet access using Bridged Networking for a Windows 7 guest?

  • Answers
  • MSIS

    If the bridged connection worked with XP on the same host, I only see three possible source (but they might be more):

    • The Guest Additions has not been installed => Windows 7 does not have the right drivers for that connector.
    • The bridge is on a wrong network card.
    • The network refuses to give anIP to that MAC address.

    First check the device manager to see if all the devices are well installed.

    You can try to have a two network interfaces (you can configure that in Manager), one with the NAT and one with the bridged connection, and see whether you have two networks up in the guest machine and whether both of them have been able to acquire IP addresses. Try changing the network card.

    Try checking if your network doesn't have restrictions on the MAC addresses. If so you can change the MAC address via VirtualBox Manager.


  • Related Question

    osx - How do I get a bridge network to work for VirtualBox with Linux guest on a Mac OS X host
  • user26104

    Does anybody have the step by step configuration process that would allow VirtualBox running a Linux/Ubuntu guest on a Mac OS X host use the bridge type network using Ethernet and wireless? I have read that it does work and it doesn't work, trying to find a definite answer. I want the guest environment to look like a separate box.

    Thanks


  • Related Answers
  • Greg K

    I have a bridge network working on OSX with a Ubuntu guest VM. You need a network connection for this to work. I have my nic configured via DHCP in OSX and then I statically assigned the guest eth0 an IP on the same subnet.

    With this set up I could SSH to my Ubuntu guest; with entries in /etc/hosts on OSX I was able to access internal domains I'd set up in apache on the Ubuntu guest.

    I simply installed Ubuntu, in the VM settings, set the adapter to a bridge connection. Boot Ubuntu and be sure to configure /etc/network/interfaces

    Mine looks like this:

    auto eth0
    iface eth0 inet static
        address 192.168.0.20
        netmask 255.255.255.0
        network 192.168.0.0
        broadcast 192.168.0.255
        gateway 192.168.0.1
    

    OSX would pick up an IP address on the same subnet (e.g. 192.168.0.102), I could see the guest from the host just fine.

    ssh 192.168.0.20
    

    Hope this helps.

    I'm struggling to get host-only networking set up so I can communicate with the guest VM without an active internet connection.