[Resolved] VirtualBox Internet

Discussions related to using VirtualBox on Linux hosts.
Post Reply
caltrop
Posts: 52
Joined: 7. Aug 2017, 16:07

[Resolved] VirtualBox Internet

Post by caltrop »

Linux Mint Host
Virtual Box Windows XP Guest

well I had internet at first
then something BAD happened and I had to reinstall the Linux OS :o
I installed VBox again & attached the backup VDI's
now when I run WinXP there is NO INTERNET :?

I remember seeing something in Linux Network Connections - a bridge
but I never looked at it closely
since the re-install that bridge is no longer there
the bridge was installed by VBox or when the WinXP driver was installed
I suspect the VBox Guest Add did the bridging

I assume that is what is causing my connection issue
VBox network was set to NAT

so my question is what do I bridge to in Linux? :?:

here is what I have in WinXP Guest

Code: Select all

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

c:\>ipconfig /all

Windows IP Configuration

        Host Name . . . . . . . . . . . . : DRAGON-2
        Primary Dns Suffix  . . . . . . . :
        Node Type . . . . . . . . . . . . : Unknown
        IP Routing Enabled. . . . . . . . : No
        WINS Proxy Enabled. . . . . . . . : No

Ethernet adapter VBox Host:

        Connection-specific DNS Suffix  . :
        Description . . . . . . . . . . . : Intel(R) PRO/1000 MT Desktop Adapter
        Physical Address. . . . . . . . . : 08-00-27-52-75-4C
        Dhcp Enabled. . . . . . . . . . . : Yes
        Autoconfiguration Enabled . . . . : Yes
        IP Address. . . . . . . . . . . . : 10.0.2.15
        Subnet Mask . . . . . . . . . . . : 255.255.255.0
        Default Gateway . . . . . . . . . : 10.0.2.2
        DHCP Server . . . . . . . . . . . : 10.0.2.2
        DNS Servers . . . . . . . . . . . : 10.0.2.3
        Lease Obtained. . . . . . . . . . : Thu, 02 August 2018 11:28:24
        Lease Expires . . . . . . . . . . : Fri, 03 August 2018 11:28:24

c:\>
here is Linux

Code: Select all

$ netstat -i
Kernel Interface table
Iface   MTU Met   RX-OK RX-ERR RX-DRP RX-OVR    TX-OK TX-ERR TX-DRP TX-OVR Flg
eno1       1500 0         0      0      0 0             0      0      0      0 BMU
lo        65536 0      4824      0      0 0          4824      0      0      0 LRU
wlo1       1500 0     98467      0      0 0         66230      0      0      0 BMRU

$ netstat -r
Kernel IP routing table
Destination     Gateway         Genmask         Flags   MSS Window  irtt Iface
default         192.168.5.1     0.0.0.0         UG        0 0          0 wlo1
link-local      *               255.255.0.0     U         0 0          0 wlo1
192.168.5.0     *               255.255.255.0   U         0 0          0 wlo1

$ ifconfig
eno1      Link encap:Ethernet  HWaddr 48:ba:4e:27:9c:3d  
          UP 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)

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:65536  Metric:1
          RX packets:6348 errors:0 dropped:0 overruns:0 frame:0
          TX packets:6348 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:1000 
          RX bytes:1052245 (1.0 MB)  TX bytes:1052245 (1.0 MB)

wlo1      Link encap:Ethernet  HWaddr 90:61:ae:f7:58:2d  
          inet addr:192.168.5.151  Bcast:192.168.5.255  Mask:255.255.255.0
          inet6 addr: fe80::2dc1:1051:f9b4:5f17/64 Scope:Link
          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
          RX packets:130181 errors:0 dropped:0 overruns:0 frame:0
          TX packets:92695 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:1000 
          RX bytes:157816019 (157.8 MB)  TX bytes:11016406 (11.0 MB)
Last edited by socratis on 10. Aug 2018, 08:46, edited 1 time in total.
Reason: Marked as [Resolved].
socratis
Site Moderator
Posts: 27329
Joined: 22. Oct 2010, 11:03
Primary OS: Mac OS X other
VBox Version: PUEL
Guest OSses: Win(*>98), Linux*, OSX>10.5
Location: Greece

Re: VirtualBox Internet

Post by socratis »

It seems that you have selected NAT and its configuration is correct. Why can't you connect to the internet with that configuration? And by connecting, I mean ping. Because with WinXP being so old, getting a browser to visit websites is rather difficult.

If you can "ping <DefaultGateway>", if you can "ping 1.1.1.1", if you can "ping download.virtualbox.org", VirtualBox is working as it should. You should look elsewhere for your networking connectivity. Look in your host for firewalls, proxies, antivirus filters, web-cleaning applications, redirectors, etc.
caltrop wrote:so my question is what do I bridge to in Linux?
If you cannot select Bridged mode (instead of NAT) and select one of your host's network adapters, then something didn't go as planned during the installation. Try to re-install it again (from https://www.virtualbox.org/wiki/Downloads) and watch the error messages during installation.
Do NOT send me Personal Messages (PMs) for troubleshooting, they are simply deleted.
Do NOT reply with the "QUOTE" button, please use the "POST REPLY", at the bottom of the form.
If you obfuscate any information requested, I will obfuscate my response. These are virtual UUIDs, not real ones.
caltrop
Posts: 52
Joined: 7. Aug 2017, 16:07

Re: VirtualBox Internet - UPDATE

Post by caltrop »

UPDATE

poking around I found that VBox Pref had no networks
so I added NAT & Host Only
everything shows in guest WinXP
but only vboxnet0 shows in linux
NAT still an issue
and still no internet in the guest

Code: Select all

netstat -i
Kernel Interface table
Iface   MTU Met   RX-OK RX-ERR RX-DRP RX-OVR    TX-OK TX-ERR TX-DRP TX-OVR Flg
eno1       1500 0         0      0      0 0             0      0      0      0 BMU
lo        65536 0      7547      0      0 0          7547      0      0      0 LRU
vboxnet0   1500 0         0      0      0 0           555      0      0      0 BMRU
wlo1       1500 0    153080      0      0 0        117600      0      0      0 BMRU

Code: Select all

netstat -r
Kernel IP routing table
Destination     Gateway         Genmask         Flags   MSS Window  irtt Iface
default         192.168.5.1     0.0.0.0         UG        0 0          0 wlo1
link-local      *               255.255.0.0     U         0 0          0 wlo1
192.168.5.0     *               255.255.255.0   U         0 0          0 wlo1
192.168.56.0    *               255.255.255.0   U         0 0          0 vboxnet0

Code: Select all

ifconfig
eno1      Link encap:Ethernet  HWaddr 48:ba:4e:27:9c:3d  
          UP 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)

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:65536  Metric:1
          RX packets:7549 errors:0 dropped:0 overruns:0 frame:0
          TX packets:7549 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:1000 
          RX bytes:1319445 (1.3 MB)  TX bytes:1319445 (1.3 MB)

vboxnet0  Link encap:Ethernet  HWaddr 0a:00:27:00:00:00  
          inet addr:192.168.56.1  Bcast:192.168.56.255  Mask:255.255.255.0
          inet6 addr: fe80::800:27ff:fe00:0/64 Scope:Link
          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
          RX packets:0 errors:0 dropped:0 overruns:0 frame:0
          TX packets:555 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:1000 
          RX bytes:0 (0.0 B)  TX bytes:87472 (87.4 KB)

wlo1      Link encap:Ethernet  HWaddr 90:61:ae:f7:58:2d  
          inet addr:192.168.5.151  Bcast:192.168.5.255  Mask:255.255.255.0
          inet6 addr: fe80::2dc1:1051:f9b4:5f17/64 Scope:Link
          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
          RX packets:153082 errors:0 dropped:0 overruns:0 frame:0
          TX packets:117602 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:1000 
          RX bytes:174350811 (174.3 MB)  TX bytes:24544430 (24.5 MB)

Code: Select all

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

c:\>ipconfig /all

Windows IP Configuration

        Host Name . . . . . . . . . . . . : DRAGON-2
        Primary Dns Suffix  . . . . . . . :
        Node Type . . . . . . . . . . . . : Unknown
        IP Routing Enabled. . . . . . . . : No
        WINS Proxy Enabled. . . . . . . . : No

Ethernet adapter NAT:

        Connection-specific DNS Suffix  . :
        Description . . . . . . . . . . . : Intel(R) PRO/1000 T Server Adapter #2
        Physical Address. . . . . . . . . : 08-00-27-90-D5-C2
        Dhcp Enabled. . . . . . . . . . . : Yes
        Autoconfiguration Enabled . . . . : Yes
        IP Address. . . . . . . . . . . . : 0.0.0.0
        Subnet Mask . . . . . . . . . . . : 0.0.0.0
        Default Gateway . . . . . . . . . :
        DHCP Server . . . . . . . . . . . : 255.255.255.255

Ethernet adapter VBox Host:

        Connection-specific DNS Suffix  . :
        Description . . . . . . . . . . . : Intel(R) PRO/1000 MT Desktop Adapter
        Physical Address. . . . . . . . . : 08-00-27-52-75-4C
        Dhcp Enabled. . . . . . . . . . . : Yes
        Autoconfiguration Enabled . . . . : Yes
        IP Address. . . . . . . . . . . . : 10.0.2.15
        Subnet Mask . . . . . . . . . . . : 255.255.255.0
        Default Gateway . . . . . . . . . : 10.0.2.2
        DHCP Server . . . . . . . . . . . : 10.0.2.2
        DNS Servers . . . . . . . . . . . : 10.0.2.3
        Lease Obtained. . . . . . . . . . : Thu, 02 August 2018 14:26:43
        Lease Expires . . . . . . . . . . : Fri, 03 August 2018 14:26:43

c:\>
caltrop
Posts: 52
Joined: 7. Aug 2017, 16:07

Re: VirtualBox Internet

Post by caltrop »

ping results

Code: Select all

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

c:\>ping 1.1.1.1

Pinging 1.1.1.1 with 32 bytes of data:

Reply from 1.1.1.1: bytes=32 time=9ms TTL=127
Reply from 1.1.1.1: bytes=32 time=7ms TTL=127
Reply from 1.1.1.1: bytes=32 time=11ms TTL=127
Reply from 1.1.1.1: bytes=32 time=10ms TTL=127

Ping statistics for 1.1.1.1:
    Packets: Sent = 4, Received = 4, Lost = 0 (0% loss),
Approximate round trip times in milli-seconds:
    Minimum = 7ms, Maximum = 11ms, Average = 9ms

c:\>ping 10.0.2.2

Pinging 10.0.2.2 with 32 bytes of data:

Reply from 10.0.2.2: bytes=32 time<1ms TTL=128
Reply from 10.0.2.2: bytes=32 time<1ms TTL=128
Reply from 10.0.2.2: bytes=32 time<1ms TTL=128
Reply from 10.0.2.2: bytes=32 time<1ms TTL=128

Ping statistics for 10.0.2.2:
    Packets: Sent = 4, Received = 4, Lost = 0 (0% loss),
Approximate round trip times in milli-seconds:
    Minimum = 0ms, Maximum = 0ms, Average = 0ms

c:\>
socratis
Site Moderator
Posts: 27329
Joined: 22. Oct 2010, 11:03
Primary OS: Mac OS X other
VBox Version: PUEL
Guest OSses: Win(*>98), Linux*, OSX>10.5
Location: Greece

Re: VirtualBox Internet

Post by socratis »

caltrop wrote:and still no internet in the guest
caltrop wrote:
Ping statistics for 1.1.1.1:
    Packets: Sent = 4, Received = 4, Lost = 0 (0% loss),
That seems to me that you have internet on the guest.
Do NOT send me Personal Messages (PMs) for troubleshooting, they are simply deleted.
Do NOT reply with the "QUOTE" button, please use the "POST REPLY", at the bottom of the form.
If you obfuscate any information requested, I will obfuscate my response. These are virtual UUIDs, not real ones.
caltrop
Posts: 52
Joined: 7. Aug 2017, 16:07

Re: VirtualBox Internet

Post by caltrop »

NAT is not working though.
It used to before I had to re-install things.

Linux - had a bridged connection to what I do not know
WinXP - was using NAT

Now I can only get VBox Host-Only working for Internet.

What was that Linux bridge?
caltrop
Posts: 52
Joined: 7. Aug 2017, 16:07

Re: VirtualBox Internet

Post by caltrop »

OK, things are working, what internet does in old WinXP.

I turned off everything but NAT.

NAT had to be added in vbox preferences.

That mysterious brideg...? Who knows what it was...?

But things are working now. Not that I really need Internet in WinXP.
socratis
Site Moderator
Posts: 27329
Joined: 22. Oct 2010, 11:03
Primary OS: Mac OS X other
VBox Version: PUEL
Guest OSses: Win(*>98), Linux*, OSX>10.5
Location: Greece

Re: VirtualBox Internet

Post by socratis »

Glad you got it going. Marking as [Resolved].
Do NOT send me Personal Messages (PMs) for troubleshooting, they are simply deleted.
Do NOT reply with the "QUOTE" button, please use the "POST REPLY", at the bottom of the form.
If you obfuscate any information requested, I will obfuscate my response. These are virtual UUIDs, not real ones.
Post Reply