Domain 4 of 5 · Chapter 1 of 2

Virtualization Concepts

Virtual machines and the two hypervisor types

Picture one physical server in a rack quietly running a Windows file server, a Linux web server, and a throwaway test machine at the same time, each convinced it owns the box. That is virtualization: a virtual machine (VM) is a complete computer built in software, with its own virtual CPU, memory, disk, and network adapter, running its own guest operating system. The physical computer underneath is the host. This page stays on that local host you own and run yourself; renting the same capability from a provider as a metered, on-demand service is the sibling subject, covered in cloud computing models.

The hypervisor is the referee

The layer that makes this work is the hypervisor (also called the virtual machine monitor). NIST defines it as the virtualization component that manages the guest operating systems on a host and controls the flow of instructions between those guests and the physical hardware (NIST glossary[1]). Two jobs matter for the exam: it shares the host's real CPU, RAM, storage, and network among the VMs, and it isolates them so a crash, a misconfiguration, or malware in one VM cannot reach the host or the other VMs.

Type 1 versus Type 2

Every hypervisor is one of two types, and they differ in exactly one thing: what sits directly beneath the hypervisor. The figure below stacks the two arrangements side by side so that one difference is visible at a glance.

  • A Type 1 (bare-metal) hypervisor installs straight onto the hardware, with no general-purpose operating system underneath it. It effectively is the host's operating system. Microsoft describes Hyper-V this way: as a type-1 hypervisor it runs directly on the hardware (Hyper-V overview[2]). VMware ESXi and Xen are the other common examples. With no extra OS layer to cross, Type 1 has lower overhead and a smaller attack surface, so servers and data centers run it.
  • A Type 2 (hosted) hypervisor runs as an ordinary application on top of a desktop operating system you already booted, such as Windows or macOS. VMware Workstation, Oracle VirtualBox, and Parallels Desktop are Type 2. It is the easiest way to run a second OS on a laptop, at the cost of the extra host-OS layer between the VMs and the hardware.

One caution on names: Microsoft Hyper-V is a Type 1 hypervisor even when you enable it on a Windows 11 desktop, because Windows itself is moved on top of the hypervisor once the feature turns on. Do not assume that "runs on a desktop" means Type 2. Choosing between hypervisor types and setting up client-side virtualization is part of the A+ Core 1 virtualization objective[3].

Type 1 (bare-metal)Type 2 (hosted)VMVMVMVMVMHypervisor (Type 1)Physical hardwareHypervisor (Type 2 app)Host operating systemPhysical hardware
Type 1 sits directly on the hardware; Type 2 adds a host operating system layer between the hypervisor and the hardware.

Host requirements: enable virtualization, then size it

Before a single VM boots, the host has to be capable of virtualization and then large enough to share. The most common real-world failure is not size at all: the hypervisor refuses to start because the CPU's virtualization feature is switched off in firmware. The figure below walks the whole sequence in order, from confirming CPU support through allocating resources to starting the first VM.

The virtualization extensions must be enabled in UEFI/BIOS

Modern processors include hardware virtualization extensions, called Intel VT-x (Virtualization Technology) or AMD-V (AMD Virtualization), that let a hypervisor run guest code safely and quickly. These often ship disabled, so enabling them in the UEFI/BIOS firmware setup is step one. Microsoft's client Hyper-V requirements spell out the same switch: virtualization support turned on in the BIOS or UEFI, meaning hardware-assisted virtualization (Intel VT or AMD-V) plus hardware-enforced DEP (Data Execution Prevention), which is the Intel XD bit or the AMD NX bit (Hyper-V system requirements[4]).

SLAT and a 64-bit CPU

Hyper-V also needs a 64-bit processor with SLAT (second-level address translation), a CPU feature that lets the hardware, rather than the hypervisor, translate a guest's memory addresses, which cuts overhead. The published floor is a 64-bit CPU with SLAT, VM Monitor Mode extensions, and at least 4 GB of RAM (Hyper-V system requirements[4]). On Windows you can confirm all of this by running systeminfo and reading its Hyper-V Requirements section.

Size the host for itself plus every VM

Each running VM reserves a real slice of the host, so the host must cover its own needs plus the sum of what its VMs use at the same time:

  • CPU: cores and threads are shared out to VMs; oversubscribing many busy VMs onto too few cores makes all of them slow.
  • Memory (RAM): usually the first ceiling you hit. A VM's assigned RAM is largely carved out of the host, so four 4 GB VMs want roughly 16 GB before the host's own overhead.
  • Storage: each VM's virtual disk is a file or volume on the host that consumes real capacity and disk I/O.
  • Network: VMs reach the network through a virtual switch the hypervisor presents, mapped onto the host's physical network adapter.

Undersize any one of these and VMs either refuse to start or contend with each other. Sizing a machine's memory, CPU, and storage is covered as hardware in RAM, CPUs, and storage; here the point is that a VM's needs stack on top of the host's.

1. Confirm the CPU supports Intel VT-x or AMD-V2. Enable virtualization and DEP in UEFI/BIOS3. Verify support (systeminfo, SLAT present)4. Allocate CPU, RAM, disk, and networksize the host for itself plus every VM5. Create and start the virtual machine
Enable the CPU's VT-x or AMD-V in firmware, verify support, then allocate CPU, RAM, disk, and network to each VM.

Client-side virtualization and sandboxing

You have one laptop and need to try a suspicious installer, run an app that only works on an older Windows, and keep a clean Linux for a class, all without risking your real desktop. That is the everyday case for client-side virtualization: a Type 2 hypervisor or a built-in sandbox on your own machine, rather than a server in a data center.

Desktop hypervisors and sandboxes

A desktop Type 2 hypervisor (VMware Workstation, VirtualBox, Parallels) lets you create full VMs on a PC. A sandbox goes lighter: it is a disposable, isolated environment for running one risky thing safely. Windows Sandbox is the built-in example, a lightweight isolated desktop that keeps whatever you install isolated from the host using hypervisor-based virtualization, and it is disposable, so closing it deletes all software, files, and state, and every launch is a fresh, clean instance (Windows Sandbox overview[5]). It needs Windows Pro, Enterprise, or Education (not Home) and virtualization enabled in firmware, the same switch from the previous section. The figure below traces that disposable lifecycle: a fresh, clean instance at launch, the risky app or file running isolated from the host, and all state discarded when you close it. That is the client-side choice in one line: a desktop hypervisor when you need a full VM to work in, a sandbox when you need one risky thing to run and then be discarded.

Sandbox: disposable by designLaunchfresh, clean instanceRun risky app or fileisolated from the hostClose itall state discarded
Windows Sandbox is disposable: every launch is clean, and closing it discards all files, software, and state.

The purposes the exam tests

Knowing how a hypervisor works only pays off if you can say why anyone would run a VM in the first place. Virtualization shows up on the exam as "why would you use a VM here," and the answers cluster into a short list:

  • Cross-platform and legacy software: run the operating system an app requires (an old Windows release, or Linux on a Windows host) without dedicating hardware to it.
  • Test and development: build, break, and rebuild environments that mirror production, then roll back a snapshot or discard the VM.
  • Sandboxing: open an untrusted file or run unknown software in isolation so it cannot touch the host.
  • Training and labs: hand every learner an identical VM image they can reset to a known-good state.
  • Resource efficiency (consolidation): pack many VMs onto one capable host to cut hardware, power, and cooling, the core reason data centers virtualize.

The thread through all of them is isolation

Notice the common mechanism: each VM is a walled-off computer. That isolation is what lets a test crash, a piece of malware, or a bad patch stay contained to its VM while the host and its neighbors keep running.

Resource allocation, security, and exam framing

Two considerations decide whether a virtualized setup is healthy: how resources are shared, and how isolation holds. Both are frequent exam targets, and both come down to the hypervisor doing its two jobs well.

Resource allocation: do not starve the host

A hypervisor can oversubscribe, promising VMs more virtual CPU or memory than the host physically has, on the bet that not all VMs peak at once. That works until they do, and the fix is to leave headroom for the host itself and to keep total VM demand under the host's real capacity. The classic mistake is allocating so much RAM to VMs that the host has none left, which drags every VM down together.

Security considerations: isolation, and where it breaks

Isolation is the security benefit and also the thing attacks target. The worst-case virtualization flaw is a VM escape, where code inside a guest breaks out of its VM to reach the hypervisor or the other guests, defeating the isolation the whole model depends on (NIST glossary[1]). Patching the hypervisor, limiting what a VM can touch, and keeping snapshots for rollback are the routine defenses. One more point candidates miss: a VM is only as isolated as its network lets it be, so a VM on the same virtual switch as production is not automatically walled off from it.

How the questions read

Question stem says Right answer Common wrong answer
Hypervisor installs directly on hardware, no host OS Type 1 (bare-metal) Type 2, which needs a host OS first
Run a VM on your Windows laptop to try software Type 2 (hosted) hypervisor Type 1, which would replace the desktop OS
Hypervisor will not start, virtualization unavailable Enable VT-x or AMD-V in UEFI/BIOS Buying a faster CPU when the setting is just off
Open one risky file, discard everything after Sandbox (disposable) A full persistent VM you must clean up by hand
Consolidate many servers onto one box Virtualize with a Type 1 hypervisor Adding more physical servers
Guest code reaches the hypervisor or other VMs VM escape A normal, permitted cross-VM feature

Each row rewards matching the scenario to virtualization's two jobs, sharing and isolating, and rejecting the option that ignores a stated constraint (no host OS, must be disposable, the setting is just off). Recognizing virtualization purposes and requirements is the A+ Core 1 virtualization objective[3].

Type 1 vs Type 2 hypervisors

AttributeType 1 (bare-metal)Type 2 (hosted)
Runs onPhysical hardware directlyA host operating system
ExamplesVMware ESXi, Microsoft Hyper-VVMware Workstation, VirtualBox, Parallels
OverheadLower, near-native performanceHigher, adds a host-OS layer
IsolationStronger, small attack surfaceDepends on the host OS beneath it
Typical useServers, data centers, consolidationDesktops, labs, running a second OS
SetupDedicated install that replaces the OSInstalled like any application

Decision tree

Host ready: VT-x/AMD-V on, enough RAM?NoYesEnable VT-x/AMD-V in UEFIthen re-check supportJust an isolated throwaway for a risky app?YesNoSandboxdisposable, discards stateConsolidating servers for near-native speed?YesNoType 1 hypervisorbare-metal: ESXi, Hyper-VType 2 hypervisorhosted: Workstation, VirtualBox

Sharp facts the exam loves — give these one last read before exam day.

Cheat sheet

Sharp facts the exam loves — scan these before test day.

A virtual machine is a full computer defined in software

A virtual machine (VM) has its own virtual CPU, memory, disk, and network adapter and runs its own guest operating system, which behaves as if it owned real hardware. The physical machine it runs on is the host, and one host can run many VMs at the same time. Because the VM is software, you can copy, snapshot, move, or delete a whole computer as a set of files.

2 questions test this
The hypervisor both shares the host and isolates the guests

A hypervisor, also called the virtual machine monitor, creates VMs, divides one host's CPU, RAM, storage, and network among them, and keeps each VM isolated so a fault or infection in one cannot reach the host or its neighbors. NIST frames it as the component that manages the guest operating systems and controls the flow of instructions between the guests and the physical hardware. Sharing and isolating are its two jobs, and most exam scenarios reward matching a requirement to one of them.

Type 1 hypervisors run on bare metal for servers

A Type 1 (bare-metal) hypervisor installs directly on the hardware with no host operating system beneath it, so it effectively is the host's OS. With no extra layer to cross it has lower overhead and a smaller attack surface, which is why data centers and servers use it. VMware ESXi and Microsoft Hyper-V are the standard examples.

Trap Assuming a Type 1 hypervisor needs Windows or Linux installed underneath it first; it replaces that general-purpose OS rather than running on top of one.

12 questions test this
Type 2 hypervisors run as an app on a desktop OS

A Type 2 (hosted) hypervisor runs as an ordinary application on top of an operating system you already booted, such as Windows or macOS. That makes it the easy way to run a second OS on a laptop or workstation, at the cost of an extra host-OS layer between the VMs and the hardware. VMware Workstation, Oracle VirtualBox, and Parallels Desktop are Type 2.

Trap Assuming every VMware product is the same type; VMware Workstation is Type 2 (hosted) while VMware ESXi is Type 1 (bare-metal).

12 questions test this
Hyper-V is a Type 1 hypervisor even on a desktop

Microsoft Hyper-V is a bare-metal (Type 1) hypervisor, and enabling it on Windows 11 does not make it Type 2. When the Hyper-V feature turns on, Windows itself is shifted to run on top of the hypervisor, so the hypervisor still sits directly on the hardware. Do not classify a hypervisor by whether you started it from a desktop.

Trap Calling client Hyper-V Type 2 because you enabled it from within Windows; the hypervisor runs beneath Windows, which makes it Type 1.

Client Hyper-V needs a 64-bit SLAT CPU and at least 4 GB RAM

Microsoft's client Hyper-V requires a 64-bit processor with SLAT (second-level address translation), VM Monitor Mode extensions, hardware-enforced DEP (the Intel XD bit or the AMD NX bit), and at least 4 GB of RAM, plus virtualization enabled in firmware. SLAT lets the hardware translate a guest's memory addresses instead of the hypervisor, which cuts overhead. Running systeminfo on Windows reports whether each requirement is met.

Size the host for itself plus every VM running at once

Each running VM reserves a real slice of the host's CPU, memory, disk, and network, so a host must cover its own needs plus the sum of what its VMs consume at the same time. Memory is usually the first ceiling: four VMs assigned 4 GB each want roughly 16 GB before the host's own overhead. Undersize any resource and VMs either fail to start or crawl as they contend for it.

Trap Planning a host around a single VM's requirements; the host must carry all concurrent VMs plus its own overhead.

Oversubscribing resources works only until VMs peak together

A hypervisor can oversubscribe, allocating VMs more virtual CPU or memory than the host physically has, on the bet that not all of them peak at once. It breaks when they do, so leave headroom for the host and keep total VM demand under the host's real capacity. This is a scheduling gamble, not free capacity.

Trap Assigning nearly all of the host's RAM to VMs; starving the host's own operating system slows every guest at once.

1 question tests this
Use a VM to run legacy or cross-platform software

When an application needs an operating system your hardware does not run, put it in a VM with the OS it requires, such as an old Windows release for a legacy app or Linux on a Windows host. This avoids buying and maintaining separate physical hardware for each platform. The VM's isolation also keeps an unsupported legacy OS off the rest of the machine.

2 questions test this
Snapshots make VMs ideal for test and development

A snapshot captures a VM's exact state so you can make risky changes and then roll straight back if they go wrong. That lets a test and development workflow build, break, and rebuild an environment that mirrors production without touching real systems. Reverting the snapshot or discarding the VM returns to a known-good state in seconds.

2 questions test this
A sandbox is a disposable, isolated place to run risky things

A sandbox is a throwaway isolated environment for safely running one untrusted app or file. Windows Sandbox is the built-in example: it isolates whatever you install from the host using hypervisor-based virtualization, and closing it deletes all software, files, and state, so every launch is a fresh, clean instance. It needs Windows Pro, Enterprise, or Education (not Home) and virtualization enabled in firmware.

Trap Reaching for a full persistent VM just to open one suspicious file; a sandbox discards everything on close with no cleanup, which a standing VM does not.

3 questions test this
Clone one VM image to give every trainee an identical lab

Because a VM is a set of files, you can clone one prepared image so every learner or tester gets the same environment and can reset it to a clean state on demand. That makes training rooms and QA labs consistent and cheap to rebuild. The same isolation means one student's mistake stays inside that student's VM.

1 question tests this
Consolidate many VMs on one host to save hardware and power

Resource efficiency is the core reason data centers virtualize: packing many VMs onto one capable host raises utilization and cuts hardware count, power draw, cooling, and rack space. A Type 1 hypervisor does this with the least overhead. The trade is that the shared host becomes a single point that must be sized and protected for all of its VMs.

VM isolation contains a crash or malware to one guest

The isolation a hypervisor enforces is the security payoff: a bug, a bad patch, or malware in one VM stays inside that VM instead of spreading to the host or its neighbors. This is why untrusted or experimental work belongs in a VM. Isolation is a property of the virtualization boundary, not something the guest OS provides for itself.

1 question tests this
VM escape is the worst-case break of guest isolation

A VM escape is code inside a guest breaking out of its VM to reach the hypervisor or the other guests, which defeats the isolation the whole model depends on. It is the most serious virtualization flaw because it crosses the boundary that is supposed to contain each guest. Keeping the hypervisor patched and limiting what a VM can touch are the routine defenses.

Trap Confusing VM escape with resource exhaustion or VM sprawl; escape specifically means breaking out of a guest to reach the hypervisor or other guests.

VMs on the same virtual switch are not automatically walled off

VMs reach the network through a virtual switch the hypervisor presents, mapped onto the host's physical adapter. Isolation of compute does not imply isolation of network: a VM sharing a virtual switch with production can talk to it unless you segment them. Put a VM on a separate switch or segment the network when it must stay off other traffic.

Trap Assuming a VM is network-isolated just because it is a separate machine; sharing a virtual switch with production leaves it reachable until you segment it.

References

  1. Hypervisor (NIST glossary, definition from SP 800-125) Whitepaper
  2. Hyper-V virtualization in Windows Server and Windows (type-1 hypervisor overview)
  3. CompTIA A+ (Core 1 and Core 2) Certification
  4. System Requirements for Hyper-V on Windows and Windows Server (SLAT, DEP, VT-x/AMD-V, 4 GB RAM)
  5. Windows Sandbox overview (disposable, hypervisor-based isolated desktop)