Win 10 host, CentOS 9 virtual machine, no internet connection
Posted: 19. May 2022, 01:51
Hey fellas,
I'm new to VirtualBox. I installed VirtualBox Version 6.1.34 r150636 (Qt5.6.2) on my Win 10 and then installed a CentOS 9 Workstation (I downloaded it from here: osboxes dot org -> centos -> centos-9-vbox).
My host PC is using Wi-Fi adapter to connect to my wireless home router. That's how I get access to the internet. On my Win 10 I get my IP address etc via DHCP. My Win 10 IP address is 192.168.1.154, mask is 255.255.255.0, gateway/DHCP is 192.168.1.1 and DNS is 192.168.1.1.
In my CentOS VM settings on the Settings tab I enabled Networkl Adapter and selected "Bridged Adapter" next to "Attached to" option. I selected my wireless adapter. In Advanced options I only enabled "Promiscuous Mode = Allow all" and checked that Cable Connected is also enabled.
Unfortunately my CentOS 9 VM doesn't have access to the internet. When I try to ping any web site like Google I get this: "Name or service not known".
When I run ifconfig command I get this result:
PS: Unfortunately I don't know what's the purpose of VirtualBox Host-Only Network adapter in Win 10, but it has these settings:
I already watched a few videos on YouTube but it didn't help. Please advise me on what should I check or which settings I should change.
Thank you.
I'm new to VirtualBox. I installed VirtualBox Version 6.1.34 r150636 (Qt5.6.2) on my Win 10 and then installed a CentOS 9 Workstation (I downloaded it from here: osboxes dot org -> centos -> centos-9-vbox).
My host PC is using Wi-Fi adapter to connect to my wireless home router. That's how I get access to the internet. On my Win 10 I get my IP address etc via DHCP. My Win 10 IP address is 192.168.1.154, mask is 255.255.255.0, gateway/DHCP is 192.168.1.1 and DNS is 192.168.1.1.
In my CentOS VM settings on the Settings tab I enabled Networkl Adapter and selected "Bridged Adapter" next to "Attached to" option. I selected my wireless adapter. In Advanced options I only enabled "Promiscuous Mode = Allow all" and checked that Cable Connected is also enabled.
Unfortunately my CentOS 9 VM doesn't have access to the internet. When I try to ping any web site like Google I get this: "Name or service not known".
When I run ifconfig command I get this result:
PS: Unfortunately I don't know what's the purpose of VirtualBox Host-Only Network adapter in Win 10, but it has these settings:
I already watched a few videos on YouTube but it didn't help. Please advise me on what should I check or which settings I should change.
Thank you.