Sub topic 8
Core 1 domain: Virtualization and cloud computing
Where this domain fits
Core 1 (220-1201) has five domains. Virtualization and cloud computing is the smallest. CompTIA's published objectives weight it at about 11% of the exam, so expect roughly 10 of the 90 maximum questions. The weights can change between objective revisions, so check the current objectives PDF. The domain is small but its ideas show up elsewhere: networking, hardware, and the scenario questions in Core 2.
This chapter assumes you know what a CPU, RAM, a disk, and a network adapter do. It also assumes you know what an operating system (OS) is. Earlier chapters covered the exam structure and the Core 1 domain map.
Virtualization basics
Virtualization is running a simulated computer in software on top of a real one. The simulated computer is a virtual machine (VM). The real machine is the host. The OS inside the VM is the guest.
A hypervisor is the software that creates VMs, divides the host's CPU, RAM, storage, and network among them, and keeps them isolated from each other.
| Type | Runs on | Typical use | Examples |
|---|---|---|---|
| Type 1 (bare metal) | Directly on the hardware | Servers and data centers | VMware ESXi, Microsoft Hyper-V (server role), KVM |
| Type 2 (hosted) | Inside a normal OS | Desktops, labs, testing | VirtualBox, VMware Workstation, Hyper-V on Windows client |
Hyper-V sits between the two categories, which is why exam questions usually name the type they want rather than the product.
Why technicians use VMs
- Testing and sandboxing. You can open a suspicious file or try an unfamiliar update in a VM. If it breaks, you delete or roll back the VM and the host is unaffected.
- Legacy support. An old application that needs an old OS can run in a VM on current hardware.
- Cross-platform use. A Linux or macOS user can run a Windows-only program in a guest.
- Consolidation. One powerful server can replace many underused physical servers.
- Snapshots. A snapshot records a VM's state at a moment in time so you can return to it.
Host requirements
A VM is limited by what the host can supply. The exam often frames this as a "VM runs slowly" or "VM will not start" scenario.
- CPU virtualization extensions. Intel calls them VT-x and AMD calls them AMD-V. They must be present, and they are often switched off by default in UEFI/BIOS settings.
- Enough RAM. The host needs memory for itself plus the memory assigned to every running VM.
- Enough storage. Each VM has a virtual disk file, and snapshots add more data.
- Enough CPU cores. Overcommitting cores slows every VM.
On a Windows host, you can check whether virtualization is available:
systeminfo | find "Virtualization"If a Hyper-V host is detected, this prints a line such as Virtualization Enabled In Firmware: Yes. If it reports No, enable the extension in UEFI/BIOS setup. On a machine that already has a hypervisor running, systeminfo instead says that a hypervisor has been detected and omits the firmware lines.
Virtual networking
A VM reaches the network through a virtual network adapter. The hypervisor connects that adapter to the host in one of a few common ways:
- Bridged. The VM appears on the physical network with its own IP address, like a separate computer.
- NAT. The VM shares the host's address and can reach outward, but other devices cannot easily reach it.
- Host-only or internal. The VM can talk only to the host or to other VMs, with no outside access.
Host-only mode is a safe choice for malware analysis. Bridged mode is the right choice when other devices on the LAN need to reach a VM.
Containers
A container packages an application with the libraries it needs but shares the host's OS kernel. A VM carries a whole guest OS. That difference makes containers smaller and faster to start, but they isolate less strongly than VMs. For A+, you need to know the contrast, not how to build containers.
Cloud computing
Cloud computing is renting computing resources over a network, usually the internet, instead of owning and running them yourself. Providers run large data centers that use virtualization to share their hardware among many customers.
Cloud characteristics
- On-demand self-service. You provision resources yourself, without calling anyone.
- Rapid elasticity. Resources grow or shrink as your needs change.
- Metered use. You pay for what you consume.
- Shared resources. Many customers use the same pool of hardware.
- High availability. Providers spread services across locations so one failure does not stop them.
- File synchronization. Cloud storage keeps the same files current across your devices.
Deployment models
| Model | Who uses it | Example |
|---|---|---|
| Public | Anyone, on shared provider infrastructure | A company hosting a website on a commercial provider |
| Private | One organization only | A company's own virtualized data center |
| Hybrid | A mix of public and private | Sensitive data on-site, web front end in the public cloud |
| Community | Several organizations with shared needs | Hospitals sharing a regulated environment |
Service models
The service model tells you how much the provider manages and how much you manage.
| Model | You get | You manage | Example |
|---|---|---|---|
| IaaS (Infrastructure as a Service) | Virtual servers, storage, networks | OS, applications, data | A VM rented from a cloud provider |
| PaaS (Platform as a Service) | A platform for building and running apps | Your application and data | A managed web app hosting platform |
| SaaS (Software as a Service) | Finished software | Your account and your data | Web email, online office suites |
| DaaS (Desktop as a Service) | A hosted virtual desktop | Your files and settings | A remote Windows desktop streamed to any device |
A quick memory aid: the further right you go (IaaS, PaaS, SaaS), the less you manage and the less control you have.
Virtual desktop infrastructure
Virtual desktop infrastructure (VDI) runs users' desktops as VMs on central servers. Users connect from a thin client, laptop, or tablet. IT can patch and secure one image instead of hundreds of machines. The drawbacks are a dependence on network quality and the need for capable servers.
Cloud storage and common problems
Cloud storage keeps files on a provider's servers and often syncs them to local folders. Problems you should recognize:
- Sync conflicts. Two devices edit the same file offline, so the service keeps two versions.
- Connectivity loss. Cloud applications fail or slow down without a working network, so first test the network. The
pingandnslookupsequence from the troubleshooting chapters applies here. - Quota limits. A full storage plan stops new uploads and syncs.
- Data sensitivity. Moving regulated data to a public cloud may break company policy or legal rules.
Applying the troubleshooting method
The same CompTIA troubleshooting steps apply to virtual systems. Take a scenario where a user says a new VM will not start.
- Identify the problem. Ask for the error text and when it began.
- Establish a theory. The likely causes are that virtualization is off in firmware, that the host has too little free RAM, or that the disk is full.
- Test the theory. Check the UEFI/BIOS setting, then the host's free memory and disk space.
- Make a plan, apply the fix, and verify. Enable the extension or lower the VM's RAM assignment, then start the VM.
- Document the finding.
Exam tips
- Match the scenario to the definition. "Rent a server and install my own OS" means IaaS. "Use finished web software" means SaaS.
- "Test safely without risking the main system" points to a sandbox VM or snapshot.
- "Several organizations share one cloud for common needs" means community cloud.
- Read the exact wording on bridged, NAT, and host-only networking. Questions turn on whether the VM must be reachable from outside.
Exercise
A company keeps its customer database on servers in its own building but hosts its public website on a commercial cloud provider's shared servers. Which deployment model is this? Also name the service model if the company rents virtual servers and installs its own web server software on them.
Show answer
The deployment model is hybrid, because it combines a private on-site environment with a public cloud. Renting virtual servers and installing your own software on them is IaaS.
Exercise
A technician installs a Type 2 hypervisor on a new laptop, but every VM fails to start with a message that hardware virtualization is unavailable. The CPU supports VT-x. What is the most likely fix?
Show answer
Enable the CPU virtualization setting (Intel VT-x, or AMD-V on AMD systems) in the UEFI/BIOS setup. It is often disabled by default. After enabling it, save, reboot, and start the VM again.