Page 1 of 3

Cannot Connect to internet with Ubuntu guest

Posted: 13. Apr 2012, 04:59
by surfcast23
Hi All,

I have not used my Ubuntu guest to connect to the internet for several months and now when I try to connect I an error that Firefox is in offline mode and cant connect. So I unchecked work in offline mode and still nothing. I tried every thing in this post viewtopic.php?f=6&t=44114 to no avail. I am currently set up with a NAT connection, but have also tried a Bridged connection with no luck

my ipconfig in windows is as follows

Code: Select all

Microsoft Windows XP [Version 5.1.2600]
(C) Copyright 1985-2001 Microsoft Corp.

C:\Documents and Settings\>ipconfig

Windows IP Configuration


Ethernet adapter Wireless Network Connection:

        Connection-specific DNS Suffix  . : hsd1.ma.comcast.net.
        IP Address. . . . . . . . . . . . : 192.168.1.105
        Subnet Mask . . . . . . . . . . . : 255.255.255.0
        Default Gateway . . . . . . . . . : 192.168.1.1

Ethernet adapter VirtualBox Host-Only Network #2:

        Connection-specific DNS Suffix  . :
        IP Address. . . . . . . . . . . . : 192.168.56.1
        Subnet Mask . . . . . . . . . . . : 255.255.255.0
        Default Gateway . . . . . . . . . :

Ethernet adapter Local Area Connection:

        Media State . . . . . . . . . . . : Media disconnected

C:\Documents and Settings\
From the Ubuntu side ifconfig gives the following

Code: Select all

student@ubuntu:~$ ifconfig
lo        Link encap:Local Loopback  
          inet addr:127.0.0.1  Mask:255.0.0.0
          inet6 addr: ::1/128 Scope:Host
          UP LOOPBACK RUNNING  MTU:16436  Metric:1
          RX packets:16 errors:0 dropped:0 overruns:0 frame:0
          TX packets:16 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:0 
          RX bytes:960 (960.0 B)  TX bytes:960 (960.0 B)

student@ubuntu:~$ 
I am running VBox version 4.1.12 had before I updated was running 4.1.0 and Ubuntu version 10.04 LTS. I would really appreciate it if some one could help me trouble shoot this. Thank you.

Re: Cannot Connect to internet with Ubuntu guest

Posted: 13. Apr 2012, 14:42
by Perryg
Post the results of VBoxManage list bridgedifs from a command windows of the Windows host.
Note: you will need to be in the directory that has VBoxManage for this to work.

Also make sure that networking is enabled in the guest settings.

Re: Cannot Connect to internet with Ubuntu guest

Posted: 15. Apr 2012, 00:08
by surfcast23
Hi Perry,
Sorry I am just responding to this I was out of town for a few days. The result is

Code: Select all

Microsoft Windows XP [Version 5.1.2600]
(C) Copyright 1985-2001 Microsoft Corp.

C:\Documents and Settings\Khary>cd C:\Program Files\Oracle\VirtualBox

C:\Program Files\Oracle\VirtualBox>VboxManage list bridgedifs
Name:            11a/b/g Wireless LAN Mini PCI Express Adapter
GUID:            77ddcde5-8ce8-4442-a529-4c9f95ac9538
Dhcp:            Enabled
IPAddress:       192.168.0.100
NetworkMask:     255.255.255.0
IPV6Address:
IPV6NetworkMaskPrefixLength: 0
HardwareAddress: 00:19:7e:85:95:e4
MediumType:      Ethernet
Status:          Up
VBoxNetworkName: HostInterfaceNetworking-11a/b/g Wireless LAN Mini PCI Express A
dapter

Name:            Intel(R) PRO/1000 PL Network Connection
GUID:            963d22c9-d9e1-45fe-82e6-bdc60387260d
Dhcp:            Enabled
IPAddress:       0.0.0.0
NetworkMask:     0.0.0.0
IPV6Address:
IPV6NetworkMaskPrefixLength: 0
HardwareAddress: 00:1a:6b:68:4e:0a
MediumType:      Ethernet
Status:          Down
VBoxNetworkName: HostInterfaceNetworking-Intel(R) PRO/1000 PL Network Connection



C:\Program Files\Oracle\VirtualBox>

Re: Cannot Connect to internet with Ubuntu guest

Posted: 15. Apr 2012, 00:34
by Perryg
Your host IP address = IP Address. . . . . . . . . . . . : 192.168.1.105
Your guest IP address = missing
Your Bridgedifs = IPAddress: 192.168.0.100

Your network is messed up. These must be in the same subnet but it looks like they are not. I would verify the settings in your hosts network settings. Then look at how the Bridgedif got changed to 192.168.0.*

Re: Cannot Connect to internet with Ubuntu guest

Posted: 15. Apr 2012, 02:03
by surfcast23
Would I need a bridgedif if I am using the NAT connection?

Re: Cannot Connect to internet with Ubuntu guest

Posted: 15. Apr 2012, 02:19
by Perryg
Probably not but the issue of the reporting information shows some kind of serious configuration issue.
NAT should simply use the hosts connection.

Re: Cannot Connect to internet with Ubuntu guest

Posted: 15. Apr 2012, 22:39
by surfcast23
okay does that mean I need to some how reconfigure my host network?

Re: Cannot Connect to internet with Ubuntu guest

Posted: 15. Apr 2012, 22:45
by Perryg
Set the guest to use NAT in the guest settings and then boot the guest.
Once it is booted post the guests log file (as an attachment)
Also in the guest post the results if ifconfig -a and lspci

Re: Cannot Connect to internet with Ubuntu guest

Posted: 15. Apr 2012, 23:33
by surfcast23
I tried to reset my network configuration using

Code: Select all

netsh int ip reset
but nothing

ifconfig -a

Code: Select all

student@ubuntu:~$ ifconfig -a
eth0      Link encap:Ethernet  HWaddr 08:00:27:97:b8:bd  
          BROADCAST MULTICAST  MTU:1500  Metric:1
          RX packets:0 errors:0 dropped:0 overruns:0 frame:0
          TX packets:0 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:1000 
          RX bytes:0 (0.0 B)  TX bytes:0 (0.0 B)
          Interrupt:19 Base address:0xd020 

eth1      Link encap:Ethernet  HWaddr 08:00:27:2d:dd:a2  
          BROADCAST MULTICAST  MTU:1500  Metric:1
          RX packets:0 errors:0 dropped:0 overruns:0 frame:0
          TX packets:0 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:1000 
          RX bytes:0 (0.0 B)  TX bytes:0 (0.0 B)
          Interrupt:16 Base address:0xd240 

lo        Link encap:Local Loopback  
          inet addr:127.0.0.1  Mask:255.0.0.0
          inet6 addr: ::1/128 Scope:Host
          UP LOOPBACK RUNNING  MTU:16436  Metric:1
          RX packets:16 errors:0 dropped:0 overruns:0 frame:0
          TX packets:16 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:0 
          RX bytes:960 (960.0 B)  TX bytes:960 (960.0 B)
lspci

Code: Select all

student@ubuntu:~$ lspci
00:00.0 Host bridge: Intel Corporation 440FX - 82441FX PMC [Natoma] (rev 02)
00:01.0 ISA bridge: Intel Corporation 82371SB PIIX3 ISA [Natoma/Triton II]
00:01.1 IDE interface: Intel Corporation 82371AB/EB/MB PIIX4 IDE (rev 01)
00:02.0 VGA compatible controller: InnoTek Systemberatung GmbH VirtualBox Graphics Adapter
00:03.0 Ethernet controller: Advanced Micro Devices [AMD] 79c970 [PCnet32 LANCE] (rev 40)
00:04.0 System peripheral: InnoTek Systemberatung GmbH VirtualBox Guest Service
00:05.0 Multimedia audio controller: Intel Corporation 82801AA AC'97 Audio Controller (rev 01)
00:06.0 USB Controller: Apple Computer Inc. KeyLargo/Intrepid USB
00:07.0 Bridge: Intel Corporation 82371AB/EB/MB PIIX4 ACPI (rev 08)
00:08.0 Ethernet controller: Advanced Micro Devices [AMD] 79c970 [PCnet32 LANCE] (rev 40)
00:0b.0 USB Controller: Intel Corporation 82801FB/FBM/FR/FW/FRW (ICH6 Family) USB2 EHCI Controller
student@ubuntu:~$ 
Do you want to Ubuntu log files or the VirtualBox?

Re: Cannot Connect to internet with Ubuntu guest

Posted: 15. Apr 2012, 23:47
by Perryg
Try this first and if it does not work then I need the log file of the guest (as an attachment)
In the guest edit the /etc/udev/rules.d/70-persistent-net.rules or you can delete the rules and Linux will configure it on the next boot

Guest log files: right click the guest in the VirtualBox main manager and select show log

Re: Cannot Connect to internet with Ubuntu guest

Posted: 15. Apr 2012, 23:51
by surfcast23
I tried that previously and it did not work, but I will try it again.

Re: Cannot Connect to internet with Ubuntu guest

Posted: 16. Apr 2012, 00:06
by surfcast23
Tried it again and I still cannot connect. I have attached the log files

Re: Cannot Connect to internet with Ubuntu guest

Posted: 16. Apr 2012, 00:07
by surfcast23
last of the files

Re: Cannot Connect to internet with Ubuntu guest

Posted: 16. Apr 2012, 00:22
by Perryg

Code: Select all

00:00:02.200 NAT: value of BindIP has been ignored

Code: Select all

00:00:04.334 IntNet#0: szNetwork={HostInterfaceNetworking-11a/b/g Wireless LAN Mini PCI Express Adapter} enmTrunkType=3 szTrunk={\DEVICE\{77DDCDE5-8CE8-4442-A529-4C9F95AC9538}} fFlags=0x24001 cbRecv=325632 cbSend=196608 fIgnoreConnectFailure=false
00:00:04.589 NAT: value of BindIP has been ignored
Very unusual.
First do you still have eth0 and eth1 showing when you do an ifconfig -a in the guests terminal, and did you setup two adapters?
  • 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: Cannot Connect to internet with Ubuntu guest

Posted: 16. Apr 2012, 00:40
by surfcast23
Yes I still have eth0 and eth1 showing in the terminal. I don't recall if I set up two adapters, but I may have when trying to solve the problem.

Code: Select all

Microsoft Windows XP [Version 5.1.2600]
(C) Copyright 1985-2001 Microsoft Corp.

C:\Documents and Settings\Khary>cd C:\Program Files\Oracle\VirtualBox

C:\Program Files\Oracle\VirtualBox>VBoxManage showvminfo Ubuntu --details
Name:            Ubuntu
Guest OS:        Ubuntu
UUID:            d78e148f-735e-49d9-9196-243a3a614200
Config file:     C:\Documents and Settings\Khary\.VirtualBox\Machines\Ubuntu\Ubu
ntu.xml
Snapshot folder: C:\Documents and Settings\Khary\.VirtualBox\Machines\Ubuntu\Sna
pshots
Log folder:      C:\Documents and Settings\Khary\.VirtualBox\Machines\Ubuntu\Log
s
Hardware UUID:   d78e148f-735e-49d9-9196-243a3a614200
Memory size:     1514MB
Page Fusion:     off
VRAM size:       74MB
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:             local time
Hardw. virt.ext: on
Hardw. virt.ext exclusive: off
Nested Paging:   on
Large Pages:     off
VT-x VPID:       on
State:           running (since 2012-04-15T21:09:00.500000000)
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):            Floppy Controller
Storage Controller Type (1):            I82078
Storage Controller Instance Number (1): 0
Storage Controller Max Port Count (1):  1
Storage Controller Port Count (1):      1
Storage Controller Bootable (1):        on
IDE Controller (0, 0): C:\Documents and Settings\Khary\.VirtualBox\VDI\Ubuntu.vd
i (UUID: 09a9dcbf-21d7-4802-b453-49788873bd90)
IDE Controller (1, 0): Empty
Floppy Controller (0, 0): Empty
NIC 1:           MAC: 08002797B8BD, Attachment: NAT, Cable connected: on, Trace:
 off (file: none), Type: Am79C973, Reported speed: 0 Mbps, Boot priority: 0, Pro
misc Policy: allow-vms
NIC 1 Settings:  MTU: 0, Socket (send: 64, receive: 64), TCP Window (send:64, re
ceive: 64)
NIC 2:           MAC: 0800272DDDA2, Attachment: none, Cable connected: on, Trace
: off (file: none), Type: Am79C973, Reported speed: 0 Mbps, Boot priority: 0, Pr
omisc Policy: deny
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:      1680x949x32
VRDE:            disabled
USB:             enabled

USB Device Filters:

Index:            0
Active:           yes
Name:             New Filter 1
VendorId:
ProductId:
Revision:
Manufacturer:
Product:
Remote:
Serial Number:

Index:            1
Active:           yes
Name:             HP Deskjet 3900 [0100]
VendorId:         03f0
ProductId:        7604
Revision:         0100
Manufacturer:     HP
Product:          Deskjet 3900
Remote:           no
Serial Number:    CN66L1N3BB048H

Available remote USB devices:

<none>

Currently Attached USB Devices:

<none>

Shared folders:

Name: 'VirtualBoxShared', Host path: 'C:\Documents and Settings\Khary\My Documen
ts\VirtualBoxShared' (machine mapping), writable

VRDE Connection:    not active
Clients so far:     0

Guest:

Configured memory balloon size:      0 MB
OS type:                             Linux26
Additions run level:                 2
Additions version:                   4.1.12r77245


Guest Facilities:

Facility "VirtualBox Base Driver": active/running (last update: 2012/04/15 21:09
:28 UTC)
Facility "VirtualBox System Service": active/running (last update: 2012/04/15 21
:09:45 UTC)
Facility "Seamless Mode": active/running (last update: 2012/04/15 21:55:22 UTC)
Facility "Graphics Mode": active/running (last update: 2012/04/15 21:55:27 UTC)



C:\Program Files\Oracle\VirtualBox>