Install CentOS Stream 10 in a virtual machine: an illustrated beginner guide
Choose and verify an official ISO, create a separate virtual disk, install CentOS, set up an account and check booting and updates.
Start learning Linux inside a new virtual machine rather than experimenting on your everyday computer's physical disk. This guide chooses an official CentOS Stream 10 image, checks the download, installs it to a dedicated virtual disk and verifies booting and updates. It is not a dual-boot or internet-facing production-server guide.
Choose the supported CentOS family first
We use CentOS Stream 10. The old CentOS Linux releases are not the current supported route. Stream participates in developing future RHEL releases; it is not the same commercial product or a promise of ten years of maintenance. Check the official download and lifecycle page.
This walkthrough targets Intel/AMD x86_64 hardware. Stream 10 requires x86-64-v3, so “64-bit CPU” alone is insufficient. A virtual machine does not automatically supply instructions missing from its host processor. ARM computers require an appropriate architecture and a different setup. Official architecture requirements.
Terms you will actually use
- Host: the real computer and its operating system, Windows in our example.
- Guest/VM: the virtual computer that will run Linux.
- ISO: installation-media image, attached as a virtual DVD without unpacking it.
- VDI: a file representing a virtual disk, not the host's physical Windows drive.
- NAT: a convenient initial virtual-network arrangement.
- sudo: requesting administrative privileges for an individual command.
1. Prepare a reversible practice environment
Back up important host files and choose a clearly named lab folder. Our example allocation is 4 GB RAM, two virtual processors and a dynamically allocated 40 GiB disk on a host with sufficient spare resources. These are suggested practice settings, not official minimum requirements or a guarantee for every computer. Keep enough resources for the host and allocate no more than half its processor threads.
If needed, obtain Oracle VirtualBox from its official download page. This walkthrough does not require the Extension Pack. If hardware virtualization is unavailable, consult the computer manufacturer's instructions rather than randomly changing firmware settings or disabling Windows protections.
2. Download the matching image and verify SHA256
On CentOS Downloads, select Stream 10 and x86_64. A DVD ISO is convenient for the first practice installation if the download size is acceptable. A Boot ISO relies on a package source during setup. Cloud and container images are different deployment formats, not interchangeable installation media for this guide.
Get the SHA256 value for the exact same filename and build. In PowerShell, within the download folder, substitute your actual filename:
Get-FileHash -LiteralPath '.\CentOS-Stream-10-latest-x86_64-dvd1.iso' -Algorithm SHA256Compare the entire value, ignoring letter case. A mismatch means stop and download again from the official source. Do not compare a DVD image with a Boot image's checksum. Matching establishes consistency with the checksum you obtained; obtaining both through the official HTTPS source still matters. Get-FileHash reference.
3. Create a VM with its own new disk
Choose New in VirtualBox. Name the VM CentOS-Stream-10-Lab, choose its lab folder and attach the ISO. Review the detected Linux/64-bit guest configuration. Labels vary between releases: select the compatible CentOS/RHEL guest type and architecture rather than changing the downloaded architecture to match an arbitrary menu entry.
In VirtualBox 7.2, deselect Install OS Using Unattended Installation to follow manual setup. Allocate available resources and create a new VDI. Do not attach a physical drive or reuse another lab's disk. Review the Oracle creation workflow, then start with the ISO attached.
4. Review language and installation destination
Choose media testing and installation from the CentOS boot menu if offered, allowing verification to finish. Set the language, time and keyboard. In the installation summary, review Installation Destination: the intended target is only your new lab disk with the expected capacity.
Automatic partitioning suits this new empty virtual disk. Multiple disks or recognisable existing partitions are reasons to stop and inspect the configuration. Do not use “delete all” as a troubleshooting shortcut. Only proceed when you can explain the selected disk's identity and size.
5. Select a desktop environment and normal user
For a graphical desktop, select a graphical base environment offered by your image, such as Workstation or Server with GUI. Minimal Install is a different, smaller package selection, unsuitable if you expect a ready desktop. Add only needed package groups. Create a normal user with a strong password and administrative capability for occasional tasks.
General Anaconda controls are covered by the RHEL 10-family installer reference; product branding and repository options differ in CentOS. CentOS installation from its official mirrors does not require a Red Hat subscription. Review summary warnings, begin installation and let it finish.
6. Boot the installed disk and check the system
Restart the VM after installation. Detach the ISO if it returns to setup. Sign in with your new account and open a terminal:
cat /etc/os-release
uname -r
whoami
sudo dnf upgrade --refreshThe first three commands identify the operating system, running kernel and current user. The update command needs connectivity; inspect its package summary before accepting. Do not paste an unknown repository “fix”. Terminal password input normally shows no characters. Restart when required by the updates and confirm another successful boot.

Check the outcome before ending the session
- The VM boots its installed disk with the ISO detached.
- os-release identifies the intended operating system.
- You use a normal account and understand occasional administrative commands.
- Networking and updates work without disabling the firewall or SELinux.
- You record the ISO name, resource allocation and changes made.
A snapshot taken after shutting down the VM can make a later configuration experiment easier to reverse. It still depends on the VM's files and is not an independent backup. A failed host disk may lose the lab and its snapshots together. Back up valuable data if the practice environment becomes important.
Common problems and the next useful check
| Problem | Start here |
|---|---|
| Unsupported CPU instructions or early failure | Check host x86-64-v3 capability and virtual CPU exposure; renaming the guest cannot supply missing instructions. |
| No disk detected | Power off and check that a new VDI is attached; do not add the physical Windows disk. |
| Package source missing | Check whether you chose Boot ISO, its network and official source, or use the appropriate DVD. Keep signature verification enabled. |
| Installer starts again after reboot | Detach the ISO and review virtual disk boot order. |
| Text login instead of desktop | Check the selected software environment; a minimal installation does not promise a GUI. |
Questions before your first practice session
Does this repartition my Windows disk?
The intended target is a new virtual disk file only. Do not attach the host physical disk, and inspect the selected destination before accepting.
Can a snapshot replace a backup?
It helps undo a lab configuration change but is not independent of the virtual machine files. Keep important data in a separate backup.
Should I paste all the commands together?
Run one command and inspect its result before continuing. Stop at an error and understand it before changing another setting.
Your next practical step
Learn the directory layout, package management and updates. Write down one intended change and its rollback, make that change and verify it. Keep initial networking simple. Exposing SSH to the internet or creating a production server requires a separate review of access, keys and maintenance.
Connect the terminology to the networking fundamentals guide. Illustrations here combine original, labelled diagrams and a credited licensed screenshot. We do not claim to have installed this lab on your computer or tested every processor.