VMware ESXi and vSphere Cluster Management

How to Install CentOS in VMware Workstation Player

Learn how to download and verify CentOS, create a VMware Workstation Player VM on Windows, install CentOS, configure networking, and complete post-installation setup.

This guide explains how to install CentOS inside VMware Workstation Player on a Windows computer. The result is an isolated Linux practice environment that runs without changing your Windows installation or requiring dual booting.

VMware product names and licensing options can vary by release. VMware Workstation Player is also commonly described as VMware Player in older instructions, so review the current product terms and installer requirements for your version.

What Virtualization Provides

A hypervisor is software that creates and runs virtual machines. VMware Workstation Player is a desktop hypervisor. It allows a guest operating system, such as CentOS, to run inside a host operating system, such as Windows.

A virtual machine (VM) is a software-defined computer. VMware presents the guest with virtual processors, memory, storage, networking, and firmware while Windows continues to run the physical computer.

ApproachAdvantagesTrade-offs
Virtual machineWindows and CentOS run at the same time; the guest is isolated; VM files can be copied or moved; supported snapshot or backup features can help before risky changes.The guest shares CPU, RAM, storage, and network resources with Windows. Performance is usually lower than running directly on hardware.
Dual bootEach operating system can use most or all physical hardware while it is running.You must reboot to change systems, partition the physical disk, and take greater care not to damage the host installation.

Virtualization is useful for learning because you can build a disposable lab, test commands, and preserve or restore the VM when supported. It is not a substitute for backups: a VM can still be corrupted, deleted, or affected by a failing host drive.

Choose the CentOS Release and ISO

Traditional CentOS Linux releases have been discontinued. Before downloading an image, verify the lifecycle and support status of the release you intend to use. Do not assume that an old CentOS Linux ISO receives current security updates.

CentOS Stream is a continuously delivered distribution related to Red Hat Enterprise Linux (RHEL). It differs from the retired traditional CentOS Linux release model. If you need a currently supported RHEL-family system, these instructions can also be adapted to CentOS Stream or another compatible distribution, provided its installer and repositories are supported.

  • Choose a DVD or full installer when you want more packages available during installation or expect limited network access.
  • Choose a minimal or network-oriented installer when you want a small command-line system and can download packages later.
  • Use an ISO matching the host and guest architecture. For most standard desktop PCs, this is x86_64.
  • Download from an official distribution source or another trusted source.
  • Keep the ISO in a known folder because you will select that file in VMware.

Verify the ISO checksum

A checksum is a calculated value used to detect a damaged or altered download. Compare the ISO's SHA-256 value with the value published by the distribution source.

Get-FileHash "C:\path\to\CentOS.iso" -Algorithm SHA256

Run this command in Windows PowerShell. Replace the example path with the actual ISO path. If the publisher specifies another algorithm, use that algorithm instead. Download the image again if the values do not match.

Prerequisites

  • A supported Windows host with Intel VT-x or AMD-V hardware virtualization available and enabled in BIOS or UEFI.
  • VMware Workstation Player, or the applicable current VMware desktop virtualization product, installed on Windows.
  • A downloaded and preferably verified CentOS ISO.
  • Enough CPU, RAM, and disk capacity for both Windows and the guest.
  • Administrator rights if VMware installation or networking components require them.
  • A reliable network connection if the installer or first-boot updates will download packages.
Host and Virtual Machine Requirements
ResourceHost ConsiderationSuggested VM Starting PointWhy It Matters
CPULeave enough processing capacity for Windows and other applications.One or two virtual processors for a basic lab.More processors can improve builds and services but can make the host less responsive.
MemoryDo not assign most of the host's RAM to the VM.Use a moderate allocation appropriate to the selected CentOS release; increase it for a desktop environment.The guest needs memory, while Windows and VMware also need memory.
Free disk spaceStore the VM on a drive with substantial free space.Choose a virtual disk large enough for the OS, updates, and practice files.Virtual disks can grow, and a full Windows drive can affect both systems.
Hardware virtualizationEnable Intel VT-x or AMD-V in firmware.Required for normal 64-bit guest operation.Without it, VMware may disable 64-bit options or refuse to start the VM.
Network connectionConsider VPNs, firewalls, and metered connections.NAT is a practical default.Updates, repositories, and network testing may require connectivity.
ISO architectureMatch the image to the intended guest architecture.x86_64 for most desktop PCs.An incompatible image may not boot or may not offer the required packages.

Install VMware Workstation Player on Windows

  1. Download the correct VMware desktop virtualization installer for the Windows host from VMware's current distribution channel.
  2. Run the installer. Approve administrator prompts if Windows displays them.
  3. Accept the license terms and review the installation options. Keep the defaults unless you have a reason to customize them.
  4. Allow networking components or other requested features when your lab requires them.
  5. Restart Windows if the installer requests a restart.

Create the CentOS Virtual Machine

  1. Open VMware Workstation Player and choose the option to create a new virtual machine.
  2. Select installation from an installer disc image file, then browse to the downloaded CentOS ISO.
  3. VMware may detect Linux and a RHEL-compatible guest automatically. If detection fails, select Linux manually and choose the closest available Red Hat Enterprise Linux-compatible version.
  4. If VMware offers Easy Install, understand that it is a VMware-assisted unattended or semi-automated workflow. For maximum control, use the normal interactive installer when the option is available.
  5. Enter a descriptive name such as centos-lab.
  6. Select a host storage folder with sufficient free space. A dedicated VM folder makes backups and file management easier.
  7. Set the virtual disk capacity. Leave room for the operating system, updates, logs, and lab files.
  8. Choose whether to store the virtual disk as one file or split it into multiple files. A single file can be convenient on a local drive; split files can be easier to move across filesystems with file-size limitations. Follow the needs of your storage and backup tools.
  9. Review the summary before selecting Finish or Create.

Configure Virtual Hardware Before First Boot

Open the VM settings before powering it on and review the following devices:

  • Memory: Assign enough RAM for the selected CentOS release while reserving enough for Windows.
  • Processors: Assign one or more virtual processors based on host capacity. More is not always faster if the host becomes starved.
  • CD/DVD: Select the CentOS ISO, enable use of an ISO image file, and connect the device at power on.
  • Firmware: Leave the default unless the selected release or installation plan requires a particular firmware mode.
  • Disk: Keep the default controller unless you understand the effect of changing it after installation.
  • Network adapter: Select NAT initially unless your lab needs another mode.
  • 3D acceleration: Enable it only when a graphical guest needs it and the host and VMware version support it reliably.

Changing firmware mode, disk controller, or other hardware settings after installation can change device names or prevent the guest from booting. Make such changes deliberately and keep a backup first.

VMware network modes

VMware Network Modes
ModeInternet AccessVisibility on Local NetworkBest Use CaseNotes
NATUsually available through the host connection.Guest is normally hidden behind the host's network address.Basic learning VM and outbound updates.Simple default; inbound connections from other LAN devices usually need additional configuration.
BridgedUses the physical network directly.Guest appears as a separate device on the local network.Server labs where other devices must reach the guest.DHCP, firewall, VPN, and corporate network policies may affect it.
Host-onlyNormally no direct internet access.Guest can communicate with the host and other host-only guests.Private isolated labs.Useful for testing services without exposing them to the physical network.

Boot the VM and Install CentOS

  1. Power on the VM. If a boot menu appears, select the installer option.
  2. Choose the installer language and confirm the keyboard layout.
  3. Set the time zone and review network time settings if offered.
  4. Open the installation destination area and select the virtual disk.
  5. For a beginner installation, choose automatic partitioning. Use manual partitioning only when you understand filesystems, mount points, swap, boot layout, and the consequences of changing them.
  6. Configure the network and hostname. NAT with DHCP is usually sufficient for a basic learning VM; enable networking if the installer needs downloads.
  7. Choose software selection. A minimal selection creates a smaller command-line-focused VM. Choose a desktop-oriented environment only when you need graphical tools.
  8. Set a strong root password if the installer asks for one. Root-account handling differs between CentOS releases and installer versions, so follow the specific screen shown by your installer.
  9. Create a regular user with a strong password. Use this account for normal work and elevate privileges with sudo when permitted.
  10. Review the installer summary. Resolve warnings before beginning installation.
  11. Select the option to begin installation and wait for packages and configuration to finish.
  12. When installation completes, shut down or reboot as requested. Disconnect the ISO or disable connection at power on before the next boot if necessary.
  13. Allow the VM to boot from its virtual disk.
CentOS Installer Decisions
Installer AreaBeginner ChoiceWhen to CustomizeImpact
Installation destinationSelect the VM's virtual disk.When multiple virtual disks or a special storage layout is required.Determines where the guest is installed.
Storage partitioningAutomatic partitioning.When practicing storage administration or meeting a known layout requirement.Controls filesystems, mount points, and available space.
Software selectionMinimal for command-line practice or a standard desktop for GUI use.When specific services, development tools, or desktop components are needed.Changes installed packages and disk usage.
Network and hostnameEnable the adapter and use DHCP with NAT.When using a fixed address, bridged networking, or a server lab.Controls connectivity and system identification.
Root passwordUse a strong password and follow the release-specific account behavior.When the lab explicitly requires direct root administration.Controls the highest level of Linux privilege.
User creationCreate a regular user with a strong password.Add additional users after installation as needed.Provides safer day-to-day access and can permit sudo administration.
Time and dateSelect the correct time zone and use network time when available.When testing time zones or isolated systems.Affects logs, scheduled tasks, and displayed times.

First Login and Post-Installation Setup

  1. Log in with the regular user created during installation.
  2. Confirm the distribution and release:
cat /etc/os-release

Check the running kernel and architecture:

uname -r && uname -m

Update the system using the supported package-management workflow for the selected release:

sudo dnf upgrade --refresh

Repository availability and package behavior depend on the CentOS release. Reboot if an updated kernel or other system component requires it.

Verify networking

Inspect interfaces and assigned addresses:

ip addr

Test name resolution and reachability:

ping -c 4 example.com

If hostname lookup fails, test a known IP address separately. This helps distinguish a DNS problem from a general connectivity problem.

Install VMware guest integration tools

open-vm-tools is an open-source set of VMware guest tools commonly used in Linux guests. Where available, install it with:

sudo dnf install -y open-vm-tools

Graphical guests may provide an additional desktop integration package. Package names and availability vary by release and enabled repositories. These tools can improve display resizing, clipboard support, mouse integration, and graceful shutdown. A minimal installation may not include all graphical integration features.

Practical Configurations

Basic CentOS learning VM

  • Name the VM centos-lab and store it in a dedicated VM folder.
  • Attach the CentOS x86_64 ISO.
  • Use a moderate virtual disk allocation and automatic partitioning.
  • Select NAT for straightforward outbound internet access.
  • Create a non-root learner account and use it for ordinary tasks.

When VMware does not recognize the ISO

Continue with manual guest selection. Choose Linux and the closest available RHEL-compatible version. Keep the ISO attached and proceed through the normal CentOS installer.

Server lab with bridged networking

Use bridged mode when other devices on the local network must reach the guest. Configure the guest network during or after installation, then verify its address, firewall rules, and the policies of the local network.

Minimal installation

Select minimal software for a smaller command-line VM. Plan to install required utilities after first boot. Use a desktop-oriented selection only when graphical applications are part of the objective.

Safe VM Operation and Maintenance

  • Shut down CentOS cleanly from the guest rather than forcibly powering off the VM, except during recovery.
  • Back up the VM files or use supported snapshot features before risky upgrades and configuration changes.
  • Monitor free space on the Windows host because virtual disks can grow.
  • Keep VMware and the guest operating system updated according to their supported release policies.
  • Remember that a snapshot is not a complete backup. Preserve independent copies when the VM contains important work.

Troubleshooting

Common Installation Problems and Fixes
SymptomLikely CauseRecommended Fix
VM will not startVirtualization is disabled, VMware conflicts with a Windows hypervisor feature, or the host is incompatible.Enable VT-x or AMD-V in BIOS/UEFI, restart Windows, check VMware compatibility guidance for Hyper-V-based features, and confirm product support.
No 64-bit guest optionsHardware virtualization is disabled, a conflicting hypervisor is active, or the CPU lacks required support.Enable firmware virtualization, review Windows virtualization conflicts, and verify host hardware capability.
Installer cannot find ISOThe path is wrong, the file was moved, or the virtual CD/DVD device is disconnected.Browse to the ISO again and enable connection at power on.
Guest has no network connectionAdapter disconnected, unsuitable mode, inactive interface, missing DHCP lease, VPN, firewall, or network policy.Confirm the adapter is connected, try NAT, inspect with ip addr, reconnect networking, and test without a VPN where permitted.
Installation fails for lack of disk spaceVirtual disk or Windows host drive is too small, or manual partitioning is unsuitable.Free host space, move the VM, increase capacity when the guest layout supports it, or use automatic partitioning.
Display does not resizeGuest tools are missing or the minimal guest lacks desktop integration.Install the appropriate open-vm-tools package, restart the graphical session or reboot, and confirm desktop support.
VM boots back into installerThe ISO remains connected or installation did not finish.Disconnect the ISO or disable connection at power on, then boot from the virtual disk. Repeat installation if no installed system is found.

Other common problems

  • Password rejected: Check the exact username, keyboard layout, Caps Lock, and special-character mapping. Use recovery procedures appropriate to the installed CentOS version if an administrative reset is required.
  • Installer cannot partition the disk: Confirm that the virtual disk is selected, undo unsupported manual choices, and use automatic partitioning for a basic lab.
  • Bridged networking fails: Try NAT first, then check the physical adapter, DHCP service, VPN, host firewall, and local network policy.
  • VM performance is poor: Close unnecessary Windows applications, avoid assigning excessive virtual CPUs, check host disk space, and adjust memory while keeping adequate resources for Windows.

Exam-Relevant Notes

  • The host OS is Windows; the guest OS is CentOS.
  • The hypervisor creates and runs the VM.
  • An ISO image is a bootable disk-image file used to install an operating system.
  • NAT usually provides outbound access through the host, bridged mode places the guest on the physical LAN, and host-only networking creates an isolated host-and-guest network.
  • The root account has full administrative privilege. A regular user is safer for normal work.
  • Checksum verification helps detect a corrupted or altered ISO.
  • Hardware virtualization must be enabled for normal 64-bit guest operation.
  • Disconnect the installer ISO after installation so the VM boots from its virtual disk.

For a concise reference to this procedure, return to the CentOS VMware installation guide.