No Internet for Linux guest on Windows Host

Discussions related to using VirtualBox on Windows hosts.
Post Reply
Pingpongofkingkong
Posts: 18
Joined: 26. Feb 2014, 22:22

No Internet for Linux guest on Windows Host

Post by Pingpongofkingkong »

I am using Bridged adaptor, but no ineternet connection for guest. please see screenshots below:
Attachments
available network cards
available network cards
dm.PNG (47.27 KiB) Viewed 7354 times
No internet connection
No internet connection
Untitled.png (9.67 KiB) Viewed 7354 times
Use Bridged
Use Bridged
Capture.PNG (46.2 KiB) Viewed 7354 times
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: No Internet for Linux guest on Windows Host

Post by socratis »

I wouldn't expect to have any sort of connection if the cable is not connected...
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.
Pingpongofkingkong
Posts: 18
Joined: 26. Feb 2014, 22:22

Re: No Internet for Linux guest on Windows Host

Post by Pingpongofkingkong »

I have both wireless card, and cable card. I tried both, none of them are working.

I have used the same VM on another computer using wireless at home, which works. The above is at work place.
Last edited by Pingpongofkingkong on 17. Apr 2018, 19:23, edited 1 time in total.
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: No Internet for Linux guest on Windows Host

Post by socratis »

Do you see the "Cable Connected" in the VM settings that is not-checked? That's the problem. The "Cable Connected" needs to be checked!
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.
Pingpongofkingkong
Posts: 18
Joined: 26. Feb 2014, 22:22

Re: No Internet for Linux guest on Windows Host

Post by Pingpongofkingkong »

thanks. I checked the box now, but I still cannot get internet connection.

Also, no ip address is assigned, please see below:

Code: Select all

[root@localhost ~]# ifconfig
enp0s3: flags=4163<UP,BROADCAST,RUNNING,MULTICAST>  mtu 1500
        inet6 xxxx::3e8a:xxxx:6a1c:3e0a  prefixlen 64  scopeid 0x20<link>
        ether xx:xx:27:88:4b:xx txqueuelen 1000  (Ethernet)
        RX packets 512  bytes 48114 (46.9 KiB)
        RX errors 0  dropped 0  overruns 0  frame 0
        TX packets 23  bytes 3642 (3.5 KiB)
        TX errors 0  dropped 0 overruns 0  carrier 0  collisions 0

lo: flags=73<UP,LOOPBACK,RUNNING>  mtu 65536
        inet 127.0.0.1  netmask 255.0.0.0
        inet6 ::1  prefixlen 128  scopeid 0x10<host>
        loop  txqueuelen 1  (Local Loopback)
        RX packets 12  bytes 1404 (1.3 KiB)
        RX errors 0  dropped 0  overruns 0  frame 0
        TX packets 12  bytes 1404 (1.3 KiB)
        TX errors 0  dropped 0 overruns 0  carrier 0  collisions 0

virbr0: flags=4099<UP,BROADCAST,MULTICAST>  mtu 1500
        inet 192.168.122.1  netmask 255.255.255.0  broadcast 192.168.122.255
        ether xx:54:xx:e2:0f:f6  txqueuelen 1000  (Ethernet)
        RX packets 0  bytes 0 (0.0 B)
        RX errors 0  dropped 0  overruns 0  frame 0
        TX packets 0  bytes 0 (0.0 B)
        TX errors 0  dropped 0 overruns 0  carrier 0  collisions 0

[root@localhost ~]#
Last edited by socratis on 17. Apr 2018, 19:58, edited 1 time in total.
Reason: Enclosed the information in [code] tag for better readability
Pingpongofkingkong
Posts: 18
Joined: 26. Feb 2014, 22:22

Re: No Internet for Linux guest on Windows Host

Post by Pingpongofkingkong »

Please see the screenshot below
Attachments
Capture2.PNG
Capture2.PNG (46.22 KiB) Viewed 7344 times
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: No Internet for Linux guest on Windows Host

Post by socratis »

Can you try the Bridged-over-wired? The Bridged-over-WiFi may have issues...
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.
Pingpongofkingkong
Posts: 18
Joined: 26. Feb 2014, 22:22

Re: No Internet for Linux guest on Windows Host

Post by Pingpongofkingkong »

I tried four of the network cards below. Only Ethernet connection is assigned ip address, and can ping host, host can ping guest, but still has no internet connection.
Attachments
Capture3.PNG
Capture3.PNG (44.83 KiB) Viewed 7342 times
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: No Internet for Linux guest on Windows Host

Post by socratis »

OK, stick with the wired connection then. Post the output of the command:
  • ifconfig /a
Try the following commands from a Terminal on your guest. I've included sample output that you should be focusing on:
$ ifconfig
enp0s3    Link encap:Ethernet  HWaddr 08:00:27:40:51:1a  
          inet addr:10.0.2.15  Bcast:10.0.2.255  Mask:255.255.255.0

$ route -n
Destination     Gateway         Genmask         Flags Metric Ref    Use Iface
0.0.0.0         10.0.2.2        0.0.0.0         UG    100    0        0 enp0s3

$ ping <DefaultGateway>    <-- tests your connectivity
$ ping 8.8.8.8             <-- tests outgoing connectivity
$ ping google.com          <-- tests name resolution
Report any misconfiguration, or any errors from the "ping" commands.

If you can ping your "gateway", if you can ping "8.8.8.8", if you can ping "google.com", 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.
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.
Pingpongofkingkong
Posts: 18
Joined: 26. Feb 2014, 22:22

Re: No Internet for Linux guest on Windows Host

Post by Pingpongofkingkong »

@socratis

Thanks. I will do that once I have my laptop tomorrow morning.
Pingpongofkingkong
Posts: 18
Joined: 26. Feb 2014, 22:22

Re: No Internet for Linux guest on Windows Host

Post by Pingpongofkingkong »

please see the output below:

Code: Select all

[root@localhost ~]# ifconfig
enp0s3: flags=4163<UP,BROADCAST,RUNNING,MULTICAST>  mtu 1500
        inet 10.61.85.154  netmask 255.255.255.0  broadcast 10.61.85.255
[root@localhost ~]# route -n
Kernel IP routing table
Destination     Gateway         Genmask         Flags Metric Ref    Use Iface
0.0.0.0         10.61.85.1      0.0.0.0         UG    100    0        0 enp0s3
10.61.85.0      0.0.0.0         255.255.255.0   U     100    0        0 enp0s3
192.168.122.0   0.0.0.0         255.255.255.0   U     0      0        0 virbr0
[root@localhost ~]# ping 10.61.85.1
PING 10.61.85.1 (10.61.85.1) 56(84) bytes of data.
64 bytes from 10.61.85.1: icmp_seq=1 ttl=255 time=1.03 ms
64 bytes from 10.61.85.1: icmp_seq=2 ttl=255 time=1.53 ms
^C
--- 10.61.85.1 ping statistics ---
2 packets transmitted, 2 received, 0% packet loss, time 1002ms
rtt min/avg/max/mdev = 1.031/1.284/1.538/0.256 ms
[root@localhost ~]# ping 8.8.8.8
PING 8.8.8.8 (8.8.8.8) 56(84) bytes of data.
^C
--- 8.8.8.8 ping statistics ---
43 packets transmitted, 0 received, 100% packet loss, time 42383ms

[root@localhost ~]# 
Post Reply