No Internet

Discussions about using Windows guests in VirtualBox.
Post Reply
LPIII
Posts: 29
Joined: 18. Jun 2022, 01:23

No Internet

Post by LPIII »

My host is Windows 10 and in my when I hover over the network icon in the notification area of my Windows 11 guest it says that there is no Internet access when my Internet is working fine on the host:
Program_Manager 26-07-2022 02⦂34⦂10⦂213 PM.png
Program_Manager 26-07-2022 02⦂34⦂10⦂213 PM.png (76.29 KiB) Viewed 2809 times
What did I do or what happened, this has never happened to me?
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

Post by scottgus1 »

Start the VM from full normal shutdown, not save-state. Run until you see the problem happen, then shut down the VM from within the VM's OS if possible. If not possible, close the Virtualbox window for the VM with the Power Off option set.

Right-click the VM in the main Virtualbox window's VM list, choose Show Log. Save the far left tab's log, zip it, and post the zip file, using the forum's Upload Attachment tab.

Right-click the VM in the main Virtualbox window's VM list, choose Show in Explorer/Finder/File Manager. Zip the VM's .vbox file (not the .vbox-prev file), and post the zip file, using the forum's Upload Attachment tab. (Configure your host OS to show all extensions if the folder that opens does not show a .vbox file.)
LPIII
Posts: 29
Joined: 18. Jun 2022, 01:23

Re: No Internet

Post by LPIII »

Done
Attachments
Windows 11 Pro 64-bit-2022-07-26-17-23-58.zip
(39.62 KiB) Downloaded 4 times
Windows 11 Pro 64-bit.zip
(1.95 KiB) Downloaded 4 times
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

Post by scottgus1 »

The VM log shows a VM using NAT for its network and receiving the correct IP address, and the virtual 'cable' is connected. This setup is the "It just works" setup to get internet in a VM. The VM .vbox file shows that NAT and only NAT has been used in the logged VM.

Curiously, the screenshot mentions a Host-Only network, apparently in a pop-up inside the VM. Are you trying nested virtualization?

I should have asked this before, but could you also please provide the output of ipconfig /all and ping 8.8.8.8 in both the host and the VM? Please label which is which.
LPIII
Posts: 29
Joined: 18. Jun 2022, 01:23

Re: No Internet

Post by LPIII »

scottgus1 wrote:Are you trying nested virtualization?
No

This is the output from my Windows 10 host:

Code: Select all

C:\Users\LPIII>ipconfig /all

Windows IP Configuration

   Host Name . . . . . . . . . . . . : HP-laptop
   Primary Dns Suffix  . . . . . . . :
   Node Type . . . . . . . . . . . . : Hybrid
   IP Routing Enabled. . . . . . . . : No
   WINS Proxy Enabled. . . . . . . . : No
   DNS Suffix Search List. . . . . . : fios-router.home

Unknown adapter Local Area Connection:

   Media State . . . . . . . . . . . : Media disconnected
   Connection-specific DNS Suffix  . :
   Description . . . . . . . . . . . : TAP-Windows Adapter V9
   Physical Address. . . . . . . . . : 00-FF-1B-34-E4-36
   DHCP Enabled. . . . . . . . . . . : Yes
   Autoconfiguration Enabled . . . . : Yes

Ethernet adapter VirtualBox Host-Only Network:

   Connection-specific DNS Suffix  . :
   Description . . . . . . . . . . . : VirtualBox Host-Only Ethernet Adapter
   Physical Address. . . . . . . . . : 0A-00-27-00-00-10
   DHCP Enabled. . . . . . . . . . . : No
   Autoconfiguration Enabled . . . . : Yes
   Link-local IPv6 Address . . . . . : fe80::e8a0:5bc5:2233:83db%16(Preferred)
   IPv4 Address. . . . . . . . . . . : 192.168.56.1(Preferred)
   Subnet Mask . . . . . . . . . . . : 255.255.255.0
   Default Gateway . . . . . . . . . :
   DHCPv6 IAID . . . . . . . . . . . : 705298471
   DHCPv6 Client DUID. . . . . . . . : 00-01-00-01-29-05-C4-A4-48-E7-DA-C3-EB-BD
   DNS Servers . . . . . . . . . . . : fec0:0:0:ffff::1%1
                                       fec0:0:0:ffff::2%1
                                       fec0:0:0:ffff::3%1
   NetBIOS over Tcpip. . . . . . . . : Enabled

Wireless LAN adapter Local Area Connection* 1:

   Media State . . . . . . . . . . . : Media disconnected
   Connection-specific DNS Suffix  . :
   Description . . . . . . . . . . . : Microsoft Wi-Fi Direct Virtual Adapter
   Physical Address. . . . . . . . . : 4A-E7-DA-C3-EB-BD
   DHCP Enabled. . . . . . . . . . . : Yes
   Autoconfiguration Enabled . . . . : Yes

Wireless LAN adapter Local Area Connection* 2:

   Media State . . . . . . . . . . . : Media disconnected
   Connection-specific DNS Suffix  . :
   Description . . . . . . . . . . . : Microsoft Wi-Fi Direct Virtual Adapter #2
   Physical Address. . . . . . . . . : CA-E7-DA-C3-EB-BD
   DHCP Enabled. . . . . . . . . . . : Yes
   Autoconfiguration Enabled . . . . : Yes

Wireless LAN adapter Wi-Fi:

   Connection-specific DNS Suffix  . : fios-router.home
   Description . . . . . . . . . . . : Realtek RTL8852AE WiFi 6 802.11ax PCIe Adapter
   Physical Address. . . . . . . . . : 48-E7-DA-C3-EB-BD
   DHCP Enabled. . . . . . . . . . . : Yes
   Autoconfiguration Enabled . . . . : Yes
   Link-local IPv6 Address . . . . . : fe80::c928:e903:1ffa:ed7d%14(Preferred)
   IPv4 Address. . . . . . . . . . . : 192.168.1.197(Preferred)
   Subnet Mask . . . . . . . . . . . : 255.255.255.0
   Lease Obtained. . . . . . . . . . : Tuesday, July 26, 2022 6:20:02 PM
   Lease Expires . . . . . . . . . . : Wednesday, July 27, 2022 8:36:45 PM
   Default Gateway . . . . . . . . . : 192.168.1.1
   DHCP Server . . . . . . . . . . . : 192.168.1.1
   DHCPv6 IAID . . . . . . . . . . . : 138995674
   DHCPv6 Client DUID. . . . . . . . : 00-01-00-01-29-05-C4-A4-48-E7-DA-C3-EB-BD
   DNS Servers . . . . . . . . . . . : 192.168.1.1
   NetBIOS over Tcpip. . . . . . . . : Enabled
   Connection-specific DNS Suffix Search List :
                                       fios-router.home

Ethernet adapter Bluetooth Network Connection 2:

   Media State . . . . . . . . . . . : Media disconnected
   Connection-specific DNS Suffix  . :
   Description . . . . . . . . . . . : Bluetooth Device (Personal Area Network) #2
   Physical Address. . . . . . . . . : 48-E7-DA-C3-EB-BC
   DHCP Enabled. . . . . . . . . . . : Yes
   Autoconfiguration Enabled . . . . : Yes

C:\Users\LPIII>ping 8.8.8.8

Pinging 8.8.8.8 with 32 bytes of data:
Reply from 8.8.8.8: bytes=32 time=11ms TTL=60
Reply from 8.8.8.8: bytes=32 time=11ms TTL=60
Reply from 8.8.8.8: bytes=32 time=12ms TTL=60
Reply from 8.8.8.8: bytes=32 time=12ms TTL=60

Ping statistics for 8.8.8.8:
    Packets: Sent = 4, Received = 4, Lost = 0 (0% loss),
Approximate round trip times in milli-seconds:
    Minimum = 11ms, Maximum = 12ms, Average = 11ms
This is the output from the Windows 11 VM:

Code: Select all

PS C:\Users\LPIII> ipconfig /all

Windows IP Configuration

   Host Name . . . . . . . . . . . . : Win11ProVM
   Primary Dns Suffix  . . . . . . . :
   Node Type . . . . . . . . . . . . : Hybrid
   IP Routing Enabled. . . . . . . . : No
   WINS Proxy Enabled. . . . . . . . : No
   DNS Suffix Search List. . . . . . : fios-router.home

Ethernet adapter Ethernet:

   Connection-specific DNS Suffix  . : fios-router.home
   Description . . . . . . . . . . . : Intel(R) PRO/1000 MT Desktop Adapter
   Physical Address. . . . . . . . . : 08-00-27-96-19-4B
   DHCP Enabled. . . . . . . . . . . : Yes
   Autoconfiguration Enabled . . . . : Yes
   Link-local IPv6 Address . . . . . : fe80::d001:bfa4:e234:c16%10(Preferred)
   IPv4 Address. . . . . . . . . . . : 10.0.2.15(Preferred)
   Subnet Mask . . . . . . . . . . . : 255.255.255.0
   Lease Obtained. . . . . . . . . . : Tuesday, July 26, 2022 10:46:09 PM
   Lease Expires . . . . . . . . . . : Wednesday, July 27, 2022 10:46:13 PM
   Default Gateway . . . . . . . . . : 10.0.2.2
   DHCP Server . . . . . . . . . . . : 10.0.2.2
   DHCPv6 IAID . . . . . . . . . . . : 101187623
   DHCPv6 Client DUID. . . . . . . . : 00-01-00-01-2A-67-4B-3E-08-00-27-96-19-4B
   DNS Servers . . . . . . . . . . . : 192.168.1.1
   NetBIOS over Tcpip. . . . . . . . : Enabled

Ethernet adapter VirtualBox Host-Only Network:

   Connection-specific DNS Suffix  . :
   Description . . . . . . . . . . . : VirtualBox Host-Only Ethernet Adapter
   Physical Address. . . . . . . . . : 0A-00-27-00-00-04
   DHCP Enabled. . . . . . . . . . . : No
   Autoconfiguration Enabled . . . . : Yes
   Link-local IPv6 Address . . . . . : fe80::c481:27b6:a2aa:7ee5%4(Preferred)
   IPv4 Address. . . . . . . . . . . : 192.168.56.1(Preferred)
   Subnet Mask . . . . . . . . . . . : 255.255.255.0
   Default Gateway . . . . . . . . . :
   DHCPv6 IAID . . . . . . . . . . . : 168427559
   DHCPv6 Client DUID. . . . . . . . : 00-01-00-01-2A-67-4B-3E-08-00-27-96-19-4B
   NetBIOS over Tcpip. . . . . . . . : Enabled
PS C:\Users\LPIII> ping 8.8.8.8

Pinging 8.8.8.8 with 32 bytes of data:
Reply from 8.8.8.8: bytes=32 time=12ms TTL=59
Reply from 8.8.8.8: bytes=32 time=11ms TTL=59
Reply from 8.8.8.8: bytes=32 time=12ms TTL=59
Reply from 8.8.8.8: bytes=32 time=11ms TTL=59

Ping statistics for 8.8.8.8:
    Packets: Sent = 4, Received = 4, Lost = 0 (0% loss),
Approximate round trip times in milli-seconds:
    Minimum = 11ms, Maximum = 12ms, Average = 11ms
BillG
Volunteer
Posts: 5102
Joined: 19. Sep 2009, 04:44
Primary OS: MS Windows 10
VBox Version: PUEL
Guest OSses: Windows 10,7 and earlier
Location: Sydney, Australia

Re: No Internet

Post by BillG »

Very odd. I have no idea why the Windows 11 vm would give you a message like that. I have never seen it on mine.

I also think the host only adapter is odd. You should only see that if you have installed VirtualBox in the vm - i.e. trying to run nested vms, as Scott suggested.

Regardless of the message you obviously do have Internet access. The Host Only adapter does not but there is no reason why it would, nor is there any reason why the vm would try to access the Internet from that interface. If it was mine, I would remove the host only adapter in the vm, or at least disable it. It should not even be there.

An ipconfig of my Win11 vm looks like this.
Win11vmipconfig.png
Win11vmipconfig.png (59.79 KiB) Viewed 2675 times
Bill
LPIII
Posts: 29
Joined: 18. Jun 2022, 01:23

Re: No Internet

Post by LPIII »

Why under System does it read Acceleration: VT-x/AMD-V:
Oracle_VM_VirtualBox_Manager 27-07-2022 07⦂12⦂15⦂142 AM.png
Oracle_VM_VirtualBox_Manager 27-07-2022 07⦂12⦂15⦂142 AM.png (94.85 KiB) Viewed 2648 times
But Nested VT-x/AMD-V isn't enabled:
Windows_11_Pro_64-bit_-_Settings 27-07-2022 07⦂12⦂35⦂633 AM.png
Windows_11_Pro_64-bit_-_Settings 27-07-2022 07⦂12⦂35⦂633 AM.png (33.09 KiB) Viewed 2648 times
Last edited by LPIII on 27. Jul 2022, 13:21, edited 1 time in total.
mpack
Site Moderator
Posts: 39156
Joined: 4. Sep 2008, 17:09
Primary OS: MS Windows 10
VBox Version: PUEL
Guest OSses: Mostly XP

Re: No Internet

Post by mpack »

Nested VT-x is not equal to VT-x.

And please keep to one issue per topic.
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

Post by scottgus1 »

I concur with Bill above. Your VM has a typical NAT connection. 8.8.8.8 is Google. Since the VM OS can ping 8.8.8.8, it can access the internet. You'll need to web-search and use Microsoft's help channels to figure out why the "no internet access" message is showing.

And you have also definitely installed Virtualbox inside the VM. Since you're not trying nested virtualization, you can uninstall Virtualbox from inside the VM.
LPIII
Posts: 29
Joined: 18. Jun 2022, 01:23

Re: No Internet

Post by LPIII »

I just disabled the VirtualBox Host-Only Ethernet Adapter in the Device Manager:
Windows_11_Pro_64-bit_[Running]_-_Oracle_VM_Virtua 28-07-2022 01⦂10⦂10⦂732 PM.png
Windows_11_Pro_64-bit_[Running]_-_Oracle_VM_Virtua 28-07-2022 01⦂10⦂10⦂732 PM.png (90.17 KiB) Viewed 2486 times
The Internet works in the browser just fine now.
Post Reply