Page 1 of 1

Problem with bridging Ubuntu 12.04 guest

Posted: 26. Jul 2012, 10:41
by Red
I am having problems getting Ubuntu 12.04 to bridge networks. NAT works just fine, but I would like to create a bridge connection which for some reason will not work for me. Any help would be great. Through searching for this problem I come across numerous people having this problem also. The main fix that I see was to go and change the max filter under network in the registry. Which I tried. However this did not work. This reg key is at HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\Network\MaxNumFilters.

My current host I am using is Win 7, Virtualbox Ver. 4.1.18, and Ubuntu 12.04.

When I go to network setting for the quest and change to bridge; the name for network card displays as the one I have Realtek rtl8168D/8111D Family PCI-E Gigabit Ethernet Nic (NDIS 6.20). I have tries all the Adapter Types with no results.

When I check the network connections through my host the 2nd connection is shown, but displays no internet connection. When I run the diagnostics the results show DHCP is not enabled for this 2nd Network connection.

Any help would be greatly appreciated!

Re: Problem with bridging Ubuntu 12.04 guest

Posted: 26. Jul 2012, 14:16
by Perryg
Run VBoxManage list bridgedifs in a command windows and post the results here. Also from the hosts terminal/command window type VBoxManage showvminfo <VM Name> --details and post here. Replace <VM Name> with the actual name of the VM. Use " " if the name has a space in it.

Note if the host is Windows you need to be in the directory that has VBoxManage.exe for the command to work.

Re: Problem with bridging Ubuntu 12.04 guest

Posted: 26. Jul 2012, 19:55
by Red
Here is the results of the 2 commands:

Microsoft Windows [Version 6.1.7600]
Copyright (c) 2009 Microsoft Corporation. All rights reserved.

C:\Users\Jake>e:

E:\>cd Programs\Oracle\VirtualBox

E:\Programs\Oracle\VirtualBox>vboxmanage list bridgedifs
Name: Realtek RTL8168D/8111D Family PCI-E Gigabit Ethernet NIC (NDIS
6.20)
GUID: cca4ca66-0895-4350-9697-c7b7f1b18729
Dhcp: Enabled
IPAddress: ***.207.60.241
NetworkMask: 255.255.248.0
IPV6Address: 2001:0558:6031:0020:685c:6e7a:50a0:4b26
IPV6NetworkMaskPrefixLength: 128
HardwareAddress: f4:6d:04:97:7a:51
MediumType: Ethernet
Status: Up
VBoxNetworkName: HostInterfaceNetworking-Realtek RTL8168D/8111D Family PCI-E Gig
abit Ethernet NIC (NDIS 6.20)


E:\Programs\Oracle\VirtualBox>vboxmanage showvminfo "Ubuntu61bit Ver12.04" --det
ails
Name: Ubuntu61bit Ver12.04
Guest OS: Ubuntu (64 bit)
UUID: 7823d4ca-7628-4494-9a6b-c0267a49bfd9
Config file: E:\Programs\Virtual Machines\Ubuntu61bit Ver12.04\Ubuntu61bit V
er12.04.vbox
Snapshot folder: E:\Programs\Virtual Machines\Ubuntu61bit Ver12.04\Snapshots
Log folder: E:\Programs\Virtual Machines\Ubuntu61bit Ver12.04\Logs
Hardware UUID: 7823d4ca-7628-4494-9a6b-c0267a49bfd9
Memory size: 4096MB
Page Fusion: off
VRAM size: 12MB
CPU exec cap: 100%
HPET: off
Chipset: piix3
Firmware: BIOS
Number of CPUs: 1
Synthetic Cpu: off
CPUID overrides: None
Boot menu mode: message and menu
Boot Device (1): Floppy
Boot Device (2): DVD
Boot Device (3): HardDisk
Boot Device (4): Not Assigned
ACPI: on
IOAPIC: on
PAE: off
Time offset: 0 ms
RTC: UTC
Hardw. virt.ext: on
Hardw. virt.ext exclusive: off
Nested Paging: on
Large Pages: on
VT-x VPID: on
State: running (since 2012-07-26T17:30:26.944000000)
Monitor count: 1
3D Acceleration: off
2D Video Acceleration: off
Teleporter Enabled: off
Teleporter Port: 0
Teleporter Address:
Teleporter Password:
Storage Controller Name (0): IDE Controller
Storage Controller Type (0): PIIX4
Storage Controller Instance Number (0): 0
Storage Controller Max Port Count (0): 2
Storage Controller Port Count (0): 2
Storage Controller Bootable (0): on
Storage Controller Name (1): SATA Controller
Storage Controller Type (1): IntelAhci
Storage Controller Instance Number (1): 0
Storage Controller Max Port Count (1): 30
Storage Controller Port Count (1): 1
Storage Controller Bootable (1): on
IDE Controller (1, 0): Empty
SATA Controller (0, 0): E:\Programs\Virtual Machines\Ubuntu61bit Ver12.04\Ubuntu
61bit Ver12.04.vdi (UUID: 1009b755-2244-4322-af49-2a7688976974)
NIC 1: MAC: 080027CC453A, Attachment: Bridged Interface 'Realtek RTL81
68D/8111D Family PCI-E Gigabit Ethernet NIC (NDIS 6.20)', Cable connected: on, T
race: off (file: none), Type: 82540EM, Reported speed: 0 Mbps, Boot priority: 0,
Promisc Policy: allow-all
NIC 2: disabled
NIC 3: disabled
NIC 4: disabled
NIC 5: disabled
NIC 6: disabled
NIC 7: disabled
NIC 8: disabled
Pointing Device: PS/2 Mouse
Keyboard Device: PS/2 Keyboard
UART 1: disabled
UART 2: disabled
Audio: enabled (Driver: DSOUND, Controller: AC97)
Clipboard Mode: Bidirectional
Video mode: 1024x768x32
VRDE: disabled
USB: enabled

USB Device Filters:

<none>

Available remote USB devices:

<none>

Currently Attached USB Devices:

<none>

Shared folders: <none>

VRDE Connection: not active
Clients so far: 0

Guest:

Configured memory balloon size: 0 MB
OS type: Ubuntu_64
Additions run level: 0

Guest Facilities:

No active facilities.



E:\Programs\Oracle\VirtualBox>

Re: Problem with bridging Ubuntu 12.04 guest

Posted: 26. Jul 2012, 20:01
by Perryg
post the /etc/udev/rules.d/70-persistent-net.rules from the guest

Re: Problem with bridging Ubuntu 12.04 guest

Posted: 26. Jul 2012, 20:25
by Red
Results:

bash: /etc/udev/rules.d/70-persistent-net.rules: Permission denied

Re: Problem with bridging Ubuntu 12.04 guest

Posted: 26. Jul 2012, 20:28
by Perryg
As sudo.

Re: Problem with bridging Ubuntu 12.04 guest

Posted: 26. Jul 2012, 20:52
by Red
Sorry should have mentioned I was logged in with root, but is this what you wanted too see:

# PCI device 0x8086:/sys/devices/pci0000:00/0000:00:03.0 (e1000) SUBSYSTEM=="net", ACTION=="add", DRIVERS=="?*", ATTR{address}=="08:00:27:f6:cc:c3", ATTR{dev_id}--"0x0", ATTR{type}=="1", KERNEL=="eth*", NAME="eth0"

# PCI device 0x8086:/sys/devices/pci0000:00/0000:00:03.0 (e1000) SUBSYSTEM=="net", ACTION=="add", DRIVERS=="?*", ATTR{address}=="08:00:27:58:58:51", ATTR{dev_id}--"0x0", ATTR{type}=="1", KERNEL=="eth*", NAME="eth1"

# PCI device 0x8086:/sys/devices/pci0000:00/0000:00:03.0 (e1000) SUBSYSTEM=="net", ACTION=="add", DRIVERS=="?*", ATTR{address}=="08:00:27:6c:b1:2f", ATTR{dev_id}--"0x0", ATTR{type}=="1", KERNEL=="eth*", NAME="eth2"

# PCI device 0x1022:/sys/devices/pci0000:00/0000:00:03.0 (e1000) SUBSYSTEM=="net", ACTION=="add", DRIVERS=="?*", ATTR{address}=="08:00:27:cc:45:3s", ATTR{dev_id}--"0x0", ATTR{type}=="1", KERNEL=="eth*", NAME="eth3"


(sry had to type it in copy not working from guest to host, but is working the other way around. edited the typos)

Re: Problem with bridging Ubuntu 12.04 guest

Posted: 26. Jul 2012, 20:59
by Perryg
There are way to many entries in the file. Usually created when Linux detects a Mac address or some other change that would look like an additional NIC.
You can either edit the /etc/udev/rules.d/70-persistent-net.rules to remove all but the valid one or you can delete the rules and Linux will configure it on the next boot

Re: Problem with bridging Ubuntu 12.04 guest

Posted: 26. Jul 2012, 22:28
by Red
OK I will remove them when I am home after work. I do appreciate the help. I will let you know if removing them works. Later this evening.

Thanks again.

Re: Problem with bridging Ubuntu 12.04 guest

Posted: 28. Jul 2012, 19:45
by Red
Sorry for the delayed response on the results. He is what happened:

When I cleared out the /etc/udev/rules.d/70-persistent-net.rules leaving only the good rule. Still did not connect. However, I decided to go back to basic troubleshooting (LOL :shock: ). Well upon doing this I found that my router was not hooked up (Ducks as the books go flying by head) instead the internet either cable was plugged in. Switched this around everything is working now for the bridged network from the guest. Now to install different color cable for either the main connection or for the individual connections to cpu's hooked into the network.


Thanks for the help. I do really appreciate it. :D