No Internet - Ubuntu 20.04 host and virtual - Bridged Network

Discussions related to using VirtualBox on Linux hosts.
Post Reply
gouravgarg
Posts: 3
Joined: 10. Jan 2021, 13:54

No Internet - Ubuntu 20.04 host and virtual - Bridged Network

Post by gouravgarg »

Hi All,

ASK: Internet is not working on bridged network in guest os.
Host: Ubuntu 20.04 Desktop
Guest: Ubuntu 20.04 Server
Guest Hostname: ubuntufocal
Network: Bridged network
Host OS Intenret Connection: Wifi
Hardware: Laptop Vostro 5490

I am facing this issue on all guest os. I have 3 Guest OS with 20.04. I am testing Kubernetes Cluster with 3 nodes. Below are the specification for 1 guest os. Guest and Host and guest and guest are connecting fine.

Code: Select all

gourav@ubuntufocal:~$ ip a
1: lo: <LOOPBACK,UP,LOWER_UP> mtu 65536 qdisc noqueue state UNKNOWN group default qlen 1000
    link/loopback 00:00:00:00:00:00 brd 00:00:00:00:00:00
    inet 127.0.0.1/8 scope host lo
       valid_lft forever preferred_lft forever
    inet6 ::1/128 scope host 
       valid_lft forever preferred_lft forever
2: enp0s3: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc fq_codel state UP group default qlen 1000
    link/ether 08:00:27:d6:23:8a brd ff:ff:ff:ff:ff:ff
    inet 192.168.1.144/24 brd 192.168.1.255 scope global enp0s3
       valid_lft forever preferred_lft forever
    inet6 fe80::a00:27ff:fed6:238a/64 scope link 
       valid_lft forever preferred_lft forever
3: docker0: <NO-CARRIER,BROADCAST,MULTICAST,UP> mtu 1500 qdisc noqueue state DOWN group default 
    link/ether 02:42:27:86:39:bb brd ff:ff:ff:ff:ff:ff
    inet 172.17.0.1/16 brd 172.17.255.255 scope global docker0
       valid_lft forever preferred_lft forever
 
scottgus1
Site Moderator
Posts: 20965
Joined: 30. Dec 2009, 20:14
Primary OS: MS Windows 10
VBox Version: PUEL
Guest OSses: Windows, Linux

Re: No Internet - Ubuntu 20.04 host and virtual - Bridged Network

Post by scottgus1 »

gouravgarg wrote:Network: Bridged network
Host OS Intenret Connection: Wifi
Bridged doesn't always work over W-fi. See Virtualbox Networks: In Pictures: Bridged Adapter

Try wired Ethernet as a test.
gouravgarg
Posts: 3
Joined: 10. Jan 2021, 13:54

Re: No Internet - Ubuntu 20.04 host and virtual - Bridged Network

Post by gouravgarg »

I tried with wired network also but still not working same error.

Following are the wifi bridged adapter settings from VM Box
Attachments
Screenshot from 2021-01-10 15-46-21.png
Screenshot from 2021-01-10 15-46-21.png (66.12 KiB) Viewed 13530 times
gouravgarg
Posts: 3
Joined: 10. Jan 2021, 13:54

Re: No Internet - Ubuntu 20.04 host and virtual - Bridged Network

Post by gouravgarg »

Really sad and very happy :)

Found issue: I was using static ip with wrong gateway address and nameserver.

I corrected and it's working perfectly fine.

Thank you all
scottgus1
Site Moderator
Posts: 20965
Joined: 30. Dec 2009, 20:14
Primary OS: MS Windows 10
VBox Version: PUEL
Guest OSses: Windows, Linux

Re: No Internet - Ubuntu 20.04 host and virtual - Bridged Network

Post by scottgus1 »

Great! Glad you kept up the hunt and found a solution!
Vikas N
Posts: 2
Joined: 20. Apr 2021, 14:58

Re: No Internet - Ubuntu 20.04 host and virtual - Bridged Network

Post by Vikas N »

Hello @gouravgarg, could you please elaborate how did you troubleshoot and found out that you are using static ip with wrong gateway address and nameserver? And how did you correct it? Your response would be much appreciated!
Kind regards
scottgus1
Site Moderator
Posts: 20965
Joined: 30. Dec 2009, 20:14
Primary OS: MS Windows 10
VBox Version: PUEL
Guest OSses: Windows, Linux

Re: No Internet - Ubuntu 20.04 host and virtual - Bridged Network

Post by scottgus1 »

Vikas N, troubleshooting a static IP address is the same in a real PC or a VM on any hypervisor, so it is not a Virtualbox problem. Web-searching how to set up a static IP address correctly will help you learn the correct way to do it, then you can see what went wrong in your setup.
Vikas N
Posts: 2
Joined: 20. Apr 2021, 14:58

Re: No Internet - Ubuntu 20.04 host and virtual - Bridged Network

Post by Vikas N »

Thanks for your response, @scottgus1. Much appreciated!!
Post Reply