Sub topic 16
Virtualization Workstation
This chapter assumes you know the roles of the CPU, RAM, storage, and network adapter, and that you can size a power supply from component wattage (covered earlier in this tutorial).
What It Is
A virtualization workstation runs several virtual machines (VMs) at once on one physical computer. A VM is a software-defined computer with its own virtual CPU, memory, disk, and network adapter. A hypervisor is the software that creates VMs and shares the physical hardware among them. Common examples are Hyper-V, VMware Workstation, and VirtualBox.
Typical users are developers testing software on several operating systems, IT staff building lab networks, and students practicing with servers.
Hardware Requirements
The A+ exam expects you to match the hardware to the workload. Each VM takes a share of the host's resources, so the host needs more of everything than a standard thick client.
| Component | Requirement | Reason |
|---|---|---|
| CPU | Many cores, with hardware virtualization support (Intel VT-x, AMD-V) enabled in firmware | Each VM is assigned virtual CPUs that map to physical cores or threads |
| RAM | Maximum practical amount, such as 32 GB or more | Each running VM reserves its own RAM, plus the host needs memory |
| Storage | Fast SSDs, ideally NVMe, with plenty of capacity | VM disk images are large, and many VMs read and write at once |
| Network | Multiple or fast NICs | VMs can need separate network connections |
| PSU | Sized with headroom for a high-core CPU and several drives | Sustained heavy load keeps the supply working near its rating |
How the Resources Add Up
Suppose a host has 32 GB of RAM and 8 cores. The host operating system needs about 4 GB. That leaves 28 GB for guests. The script below checks whether a planned set of VMs fits.
# Check whether planned VMs fit in the host's RAM and cores
host_ram_gb = 32
host_reserved_gb = 4
host_cores = 8
vms = {
"web-server": {"ram": 8, "vcpus": 2},
"database": {"ram": 8, "vcpus": 2},
"windows-client": {"ram": 8, "vcpus": 2},
"test-lab": {"ram": 4, "vcpus": 2},
}
ram_needed = sum(vm["ram"] for vm in vms.values())
vcpus_needed = sum(vm["vcpus"] for vm in vms.values())
ram_available = host_ram_gb - host_reserved_gb
print(f"RAM needed: {ram_needed} GB of {ram_available} GB available")
print(f"vCPUs assigned: {vcpus_needed} on {host_cores} physical cores")
print("RAM fits" if ram_needed <= ram_available else "Not enough RAM")
# Output:
# RAM needed: 28 GB of 28 GB available
# vCPUs assigned: 8 on 8 physical cores
# RAM fitsRAM is the usual limit. A hypervisor can assign more vCPUs than there are physical cores, because VMs share CPU time. RAM is much harder to oversubscribe without slowing everything down.
Common Errors
- Too little RAM. The host starts swapping to disk, and every VM slows down.
- Virtualization left disabled in firmware. The hypervisor cannot run 64-bit guests.
- Using a slow hard disk drive (HDD). Several VMs doing disk work at once cause long delays. Use an SSD.
- An undersized PSU. A many-core CPU under sustained load draws close to its full rated power. Leave the usual 30% headroom.
Exercise
A technician builds a workstation to run six VMs at once. The hypervisor refuses to start any 64-bit guest, even though the CPU is a modern multi-core model. What should the technician check first, and what two hardware upgrades most improve VM performance?
Show answer
Check the UEFI/BIOS and enable hardware virtualization (Intel VT-x or AMD-V). For performance, add more RAM and use fast SSD or NVMe storage. More CPU cores also help.