Use this when ensuring one VM cannot affect another.
VM Isolation
VM isolation ensures one VM cannot read or affect another's memory, disks or traffic. It relies on hardware virtualization, the IOMMU, patched hypervisors against side-channel attacks and disabling risky features like unrestricted copy-paste.
1. VM isolation relies on hypervisor, CPU mitigations and confinement (sVirt, AppArmor).
2. Disable inter-VM memory sharing if risk is high.
3. Separate trust zones onto different hosts/clusters.
4. Limit device passthrough.
5. Patch.
VM A ↔ hypervisor isolation ↔ VM B
Context & applicabilityCommon mistakes · platform/version boundaries
Operational reference
Fast context before you go deeper.
Verification & Troubleshooting
Start with the observed symptom, prove the nearest boundary, and move outward only when the current state is understood.
Use the operational verification above to establish the expected state.
Capture the concrete output, symptom, packet, log or counter before changing anything.
Step 1 Checks Verify boundary
- Hypervisor and microcode current (
grep microcode /proc/cpuinfo | uniq). - Side-channel mitigations active (
grep . /sys/devices/system/cpu/vulnerabilities/*). - VM settings: no shared folders/clipboard for sensitive VMs.
Step 2 Common mistakes Narrow the fault
- Shared clipboard/drag-and-drop enabled for sensitive VMs.
- VMs of different trust levels on the same unpatched host.
- Promiscuous mode enabled on port groups.
Evidence · 1 on this Topic
Expected observations and documentation recipes are reference material. Record actual output, device identity, scope and time before claiming a verified result.
- Disable VM features you do not need, such as copy-paste and unused devices.
- Use the IOMMU when passing devices to VMs.
cat /sys/devices/system/cpu/vulnerabilities/*— isolation mitigationscat /sys/kernel/mm/ksm/run— KSM inter-VM sharinggetenforce / aa-status— sVirt/AppArmor confinement
ReferenceWhy it matters1 section · depth on demand
Side-channel mitigations
Keep CPU microcode and hypervisor patches current. ESXi offers the side-channel-aware scheduler (SCAv2) for L1TF; Linux shows status in /sys/devices/system/cpu/vulnerabilities/. Do not disable mitigations on multi-tenant hosts.
ReferenceImportant terms & boundaries2 sections · depth on demand
In depth
VM isolation relies on CPU virtualization boundaries, separate memory mappings and the hypervisor's device emulation. Weak spots are shared hardware (caches, branch predictors — Spectre-class side channels), shared memory pages and emulated devices with bugs.
Mitigations: keep host microcode and hypervisor patches current, use side-channel-aware schedulers (ESXi SCAv2, Hyper-V core scheduler), disable inter-VM page sharing, remove unused virtual devices, and separate trust levels (DMZ vs internal, tenants) onto different hosts or clusters when the risk warrants it.
What keeps VMs apart
- CPU and memory virtualization (EPT/NPT) — each VM has its own address space.
- Separate virtual disks and permissions on storage.
- Virtual switch isolation (VLANs, private switches).
- Patched hypervisor and CPU microcode against side channels.
Additional reference context Scope · expected state · examples · history · terminology Open only when you need the supporting context
Verification history & basis
When and against what this Topic was checked. Later text edits do not count as a new check.
Authoritative/upstream documentation reviewed for bounded claims in Security → VM Isolation. Documentation verification only; this is not observed lab or production Evidence.
Basis: https://csrc.nist.gov/pubs/sp/800/125/final · confidence 94%