Can't Browse Internet on CentOS 9 Guest OS in VMware Workstation 16 Player: Troubleshooting Guide

Abstract: Resolve CentOS 9 internet connectivity issues in VMware Workstation 16 by fixing network adapter settings, host firewall blocks, and guest OS DHCP failures.

Created: 2026-09-11 by
Internet connectivity issues in a CentOS 9 virtual machine running on VMware Workstation 16 Player typically stem from misconfigured network adapters, incorrect DHCP settings, or firewall rules blocking outbound traffic. This guide provides a systematic approach to diagnosing and resolving these common networking problems by verifying virtual hardware configurations, checking host system permissions, and ensuring the guest OS network services are active and correctly configured for NAT or Bridged modes.

Verify Virtual Network Adapter Configuration

The most frequent cause of internet failure is an improperly selected network adapter type within the VMware settings. By default, VMware uses Network Address Translation (NAT), which shares the host’s IP address with the guest. To ensure this is functioning correctly, open VMware Workstation 16 Player and select your CentOS 9 VM. Navigate to Edit Virtual Machine Settings and click on the Network Adapter option. Ensure that the device is connected at power on and that the correct network connection is selected from the dropdown menu. If you are unsure whether NAT or Bridged mode is appropriate for your environment, test switching between them. NAT is generally safer for dynamic IP environments, while Bridged mode assigns a unique IP from your local router, mimicking a physical machine on the network. Incorrect selection here often results in the guest OS having no route to the outside world.

Check Host System Firewall and VMware Services

Even if the guest configuration is perfect, the host operating system can block VMware’s virtual network interfaces. On Windows hosts, the Windows Defender Firewall or third-party antivirus software may prevent VMware from creating virtual NICs. Check your host’s firewall logs to see if connections from VMware processes like vmware-vmx.exe are being blocked. Additionally, ensure that the VMware Network Services are running. Press Win + R, type services.msc, and verify that VMware DHCP Service and VMware NAT Service are set to Automatic and are currently running. If these services are stopped, restart them and attempt to reconnect the VM. For Linux hosts, check if iptables or firewalld is interfering with the vmnet devices. You can temporarily disable the host firewall to test if it is the culprit, but remember to re-enable it afterward for security.

Diagnose Guest OS Network Status

Once the virtual hardware and host services are confirmed, focus on the CentOS 9 guest. Boot into the terminal and use the ip addr command to check if the network interface has received an IP address. If the output shows only loopback addresses or no IP under your primary interface (often ens33 or similar), the DHCP client failed to obtain an address. Run nmcli dev status to see if NetworkManager detects the device. If the device is present but disconnected, try restarting the network service with sudo systemctl restart NetworkManager. If you are using static IPs, verify that the gateway and DNS servers in /etc/sysconfig/network-scripts/ifcfg-ens33 match your network topology. A mismatched subnet mask or gateway will allow local communication but block internet access.

Test Connectivity and DNS Resolution

If you have an IP address but cannot browse, the issue likely lies in routing or DNS resolution. Use ping 8.8.8.8 to test basic ICMP connectivity to Google’s public DNS server. If this fails, the problem is a routing issue; check your default gateway with ip route show. If ping 8.8.8.8 succeeds but ping google.com fails, your DNS configuration is broken. Edit /etc/resolv.conf and add nameserver 8.8.8.8 to force the use of Google DNS. Alternatively, configure DNS through NetworkManager using nmtui for a persistent solution. If both pings fail, ensure that SELinux is not blocking network operations, although this is rare for standard browsing. You can check SELinux status with sestatus and temporarily set it to permissive with setenforce 0 to rule it out as a factor.

Review VMware Virtual Network Editor

For advanced troubleshooting, access the VMware Virtual Network Editor via the Edit menu in Workstation. Select the virtual network associated with your NAT or Bridged setup and click Restore Defaults. This action resets all virtual switches, NAT configurations, and DHCP scopes to their factory settings, clearing any corrupted state that might prevent connectivity. After restoring defaults, restart the VMware services on the host and reboot the CentOS guest. This step resolves complex issues where manual configuration changes have led to inconsistent network states. It is a powerful reset button that often fixes stubborn connectivity problems without requiring deep manual debugging.

Consider Alternative Network Drivers

In some cases, the default VMware network driver (e1000e) may have compatibility issues with specific CentOS kernel versions. Within the VM settings, change the Network Adapter type to VMXNET3, which is a paravirtualized driver optimized for performance and stability. This requires reinstalling VMware Tools or Open VM Tools inside CentOS, but it often resolves subtle packet loss or connection drops. Ensure that open-vm-tools is installed and running before switching drivers, as it provides essential integration features. This change is particularly beneficial if you experience intermittent connectivity rather than a complete failure.

Frequently Asked Questions

Why does my CentOS VM have an IP but no internet?

This usually indicates a DNS resolution failure or a missing default gateway. Verify that you can ping an IP address like 8.8.8.8; if yes, check your /etc/resolv.conf file for valid nameservers. If you cannot ping external IPs, inspect your routing table with ip route show to ensure a default gateway exists.

How do I restore VMware network defaults?

Open VMware Workstation, go to Edit > Virtual Network Editor, and click Restore Defaults. This resets all virtual NICs, NAT, and DHCP settings to their original state, fixing corruption in the virtual network configuration.

What is the difference between NAT and Bridged mode?

NAT shares the host’s IP address, hiding the VM behind the host’s network identity, while Bridged mode connects the VM directly to the physical network, giving it its own IP from the router. Choose NAT for simplicity and security, or Bridged if the VM needs to be accessible as a distinct device on the LAN.

Can SELinux block internet access in CentOS 9?

SELinux rarely blocks general internet browsing but can restrict specific applications or services from accessing the network. If other troubleshooting steps fail, check SELinux logs in /var/log/audit/audit.log for denials related to network ports or processes.

Should I use e1000e or VMXNET3 drivers?

VMXNET3 is generally preferred for better performance and lower CPU overhead, but it requires Open VM Tools to be installed. The e1000e driver is more compatible with older guest OSes but may have higher latency; switch to VMXNET3 if you experience slow or unstable connections.

Latest News

How to Display Output of xterm Command in Terminal Screen using Cron

Resolve the inability to display xterm output in a terminal screen from cron by redirecting logs or using wall instead of insecure X11 workarounds.

Read More
Expose Local Server on VPS Preserving Real Client IPs (OS Level)

Resolve VPS logging showing only gateway IPs by configuring reverse proxies to forward real client addresses via X-Forwarded-For headers.

Read More
How to Clear Recent Files History in Linux without Deleting Actual Files?

Clear recent files history in Linux by deleting ~/.local/share/recently-used.xbel without removing the actual files.

Read More
Best HDD Copy Strategy: Manually Syncing and Rewriting Scratch

Resolve data drift between two 4TB hard drives by using rsync with the --delete flag to manually sync and rewrite scratch data for an exact mirror.

Read More
Understanding Bash Prompt Abbreviations: An Overview

Resolve repetitive typing errors by creating and persisting Bash aliases in the .bashrc file for improved command-line efficiency.

Read More
Free Tools and Methods to Log Real-Time Performance Details in Task Manager

Log real-time CPU and memory metrics to CSV files using Windows Performance Monitor Data Collector Sets to troubleshoot system slowness.

Read More
Contact Qatar Airways Customer Service: Phone Number, Help Center, and More

Resolve urgent Qatar Airways reservation issues like flight changes and baggage claims using the US phone number +1801-855-5905 or online self-service tools.

Read More
Windows 11: Alt Codes Displaying Wrong Characters - Solutions

Resolve Windows 11 Alt codes showing wrong characters by verifying the US keyboard layout and enabling Num Lock.

Read More
Run Programs with Elevated Privileges: A Comprehensive Guide

Eliminates the need to type sudo for frequent administrative tasks by configuring .bashrc aliases or functions.

Read More
Dynamically Changing Dates in Excel Formulas Using Cells

Eliminate manual date updates in Excel by using cell references to create dynamic formulas that automatically adjust calculations when input dates change.

Read More
Granting Edit Access to a Specific Excel Sheet in an Office 365 User Email ID-Based Login

Excel Online lacks native sheet-level permissions, so users must split workbooks or use worksheet protection to isolate edit access for specific tabs.

Read More
Creating Network Load on Local Wi-Fi from One PC

Generate sustained Wi-Fi bandwidth load from a single PC using a VM SFTP server to test router stability and throughput.

Read More
Changing the Default Editor for Batch Files in Windows 11's File Explorer

Resolve the issue of batch files opening in Notepad by changing the default editor to a preferred application like VS Code.

Read More
Gain WiFi Connection Minutes Before Losing it by Changing MAC Address

Bypass MAC address filtering to restore WiFi connectivity temporarily when a device is blocked by network administrators.

Read More
Photos Folders Turned Black: Troubleshooting Picture Applications on Windows

Resolve black screens in Windows Photos by resetting the app, updating graphics drivers, and repairing system files.

Read More
Troubleshooting High CPU Temperature Values: A Step-by-Step Guide

Resolve high CPU temperatures and thermal throttling by monitoring with Speedfan, cleaning dust from cooling components, and replacing degraded thermal paste.

Read More
Make cURL establish TLS connection with CA unknown

Resolve cURL TLS connection failures with unknown or self-signed certificates by using the --insecure flag to bypass CA validation.

Read More
Troubleshooting Incorrect Network Metrics Values in Grafana, Prometheus, InfluxDB, and Telegraf

Fix incorrect network metrics in Grafana, Prometheus, InfluxDB, and Telegraf by verifying interface selection, resolving unit mismatches, and handling counter resets.

Read More
Start Another Terminal Window (cmd.exe) Windows Repair/Troubleshoot

Provides step-by-step instructions to access the Windows Command Prompt via bootable media for advanced system repair and troubleshooting.

Read More
Thinkpad P1 Gen 6: Sudden Thunderbolt 3 Dock USB-C Charging Stopped Working

Resolve sudden Thunderbolt 3 dock USB-C charging and internet failure on ThinkPad P1 Gen 6 by updating firmware, resetting the dock, and adjusting power settings.

Read More
ASUS Windows 11 Laptop: Internet Connection Issue with Hotspot

Resolve ASUS Windows 11 laptop spinning wheel issue when connecting to mobile hotspot by resetting network stack, disabling IPv6, and adjusting power settings.

Read More
Developing iOS Project with Firebase: Logging in and Sending Push Notifications

Integrates Firebase to enable secure user authentication and push notifications in iOS applications.

Read More
Troubleshooting Bash Script with Suspected Issues of Spaces, Dashes, Filenames and Quoting

Resolve Bash script failures caused by word splitting, globbing, and special characters in filenames by applying proper quoting techniques.

Read More
Populating OneDrive Folder for Local Backup without Affecting Remote Files

Prevent OneDrive from deleting remote files during Windows reinstallation by unlinking the account or using symbolic links to isolate local data.

Read More
Force First Frame as Keyframe Without Re-encoding: A Quick Solution

Resolve inaccurate seeking and playback glitches by re-encoding video to ensure the first frame is a valid keyframe.

Read More
Find Information in Database Using WSL (Ubuntu) on Windows-10

Resolve database connection issues from WSL Ubuntu on Windows 10 by configuring client tools and network access to query remote or local servers.

Read More
Configuring a New Router with Different Networks: One Family, One Guest

Resolve IP conflicts and isolate guest traffic by configuring a second router with a distinct subnet via its WAN port.

Read More
Quickly Open Multiple Stock Websites with a Single Command

Solve the problem of manually opening multiple stock research websites by creating a single command to launch them simultaneously on Windows, macOS, or Linux.

Read More
Improved Adobe Acrobat Search Experience: Access Advanced Search with Ease

Access advanced search filters like case sensitivity and regex in Adobe Acrobat by clicking More Options in the Find bar.

Read More
Port Forwarding VM via OpenVPN: A Comprehensive Guide

Configure OpenVPN server and iptables to forward specific ports from VPN clients to a virtual machine's internal IP address.

Read More
Understanding Partitions in the 1980s: A Look Back at MS-DOS and Master Boot Record

Explains how the Master Boot Record and partition table enabled MS-DOS to manage multiple disk volumes on a single physical drive.

Read More
Windows 10 Enterprise: Keyboard Not Detected in Managed Organization with Admin Privileges

Resolve Windows 10 Enterprise keyboard detection failures caused by Group Policy restrictions, driver corruption, or USB enumeration errors.

Read More
Can't Find x86_64 Versions of Applications on MacOS arm64 (M1)

Resolve missing x86_64 app issues on M1 Macs by installing Rosetta 2 and reinstalling apps as universal binaries.

Read More
How to Hide Installation Source for an Android App

Manage Android app installation source visibility by using USB transfers or file managers to reduce browser traces and isolate data via work profiles.

Read More
Connecting Momentus 4200.2 ST9808210A Hard Drive via USB Cable

Resolve inability to access Seagate Momentus 4200.2 ST9808210A hard drive by connecting it via USB using a compatible SATA-to-USB adapter and configuring the disk in Windows.

Read More