Sub topic 8
Why Use a Virtual Machine on a Client PC
This chapter assumes you know what a host, a guest, and a hypervisor are, and that you can tell a Type 1 hypervisor from a Type 2 one. Here you will see why a technician or user would run a virtual machine (VM) on a desktop or laptop, and how to match a need to the right VM use.
The Four Common Purposes
CompTIA A+ Core 1 groups client-side VM use into a few purposes. Each one depends on the same property: a VM is a separate, software-defined computer that the host can start, change, and discard.
| Purpose | What you want | Why a VM fits |
|---|---|---|
| Sandbox | Run something you do not trust | The guest is isolated from the host's files and settings |
| Test environment | Try updates, patches, or configurations | Changes can be undone without touching the real system |
| Legacy software | Run an old application | The VM runs the old OS the application needs |
| Cross-platform | Use software built for another OS | One PC runs Windows, Linux, and sometimes macOS guests |
Sandbox
A sandbox is an isolated environment where code can run without reaching the rest of the system. A technician might open a suspicious attachment or run an unknown installer inside a VM. If the guest becomes infected, the technician deletes it or reverts it to a saved state. The host stays clean, as long as the isolation holds (see the security chapter for the limits).
Testing
Before you roll out an OS update, a driver, or a new configuration, you can try it in a VM that mirrors the production setup. A snapshot is a saved copy of a VM's state at one moment. Take a snapshot, apply the change, and revert to the snapshot if something breaks.
Legacy and Cross-Platform Use
An old line-of-business application may run only on an older version of Windows that no current hardware supports well. A VM running that older OS keeps the application usable. In the same way, a Linux user can run a Windows-only program in a Windows guest, and a Windows user can learn Linux without repartitioning the disk.
A Worked Scenario
A support technician must check whether a new browser extension is safe before approving it for the company. The steps below show the VM workflow.
- Create a Windows guest in a Type 2 hypervisor such as VirtualBox, VMware Workstation Player, or Hyper-V.
- Install the OS and the tools you need, then take a snapshot named
clean-baseline. - Install and run the extension inside the guest. Watch its behavior.
- Revert to
clean-baseline. The guest returns to its earlier state, and the host was never changed.
Common Client-Side Options
Client-side virtualization usually means a Type 2 hypervisor on a workstation. Common choices include Oracle VirtualBox, VMware Workstation, and Parallels Desktop for macOS. Windows Pro and Enterprise editions also include Hyper-V, which is a Type 1 hypervisor that runs under the Windows host OS.
Limits to Remember
- A VM shares the host's CPU, RAM, and storage, so a busy guest can slow the host.
- A VM does not make a risky action harmless. Sharing folders or the clipboard with the host weakens the isolation.
- Old guest operating systems no longer receive security updates. Keep them off networks you care about, for example by using a host-only network.
Exercise
A technician needs to run a business application that works only on an unsupported older version of Windows. The technician's laptop runs a current version of Windows. Which client-side solution fits, and which VM purpose does it serve?
Show answer
Install a Type 2 hypervisor (or Hyper-V on a supported edition) and create a guest running the older Windows version. This is the legacy software purpose. To limit risk, put the guest on a host-only or otherwise restricted network because the old OS no longer gets security patches.
Exercise
Why is a snapshot useful when testing a driver update in a VM?
Show answer
A snapshot saves the VM's state before the change. If the update causes problems, you revert to the snapshot and the guest returns to its earlier working state.