Use this when protecting VM disks at rest in guest or platform.
Disk Encryption
Disk encryption protects virtual disks at rest, either inside the guest (BitLocker, LUKS) or by the platform (VM encryption, encrypted datastores, Ceph or SAN encryption). Keys must be stored outside the encrypted storage, typically in a KMS.
1. Disk encryption can be in guest (LUKS, BitLocker) or on storage.
2. Guest encryption protects against host/storage theft.
3. Key management: recovery keys, TPM, Tang.
4. Encryption affects dedup/compression.
5. Test recovery.
data → encryption layer → storage
Context & applicabilityCommon mistakes · platform/version boundaries
- Losing the key provider and with it all encrypted VMs.
- Encrypting both in guest and on host without need (double overhead).
- Not checking backup compatibility before encrypting.
Operational reference
Fast context before you go deeper.
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.
- Keys outside the encrypted storage.
- Guest vs platform encryption differ.
- Backups must stay restorable.
cryptsetup status <name>— LUKS in guestmanage-bde -status— BitLocker in guestzfs get encryption <dataset>— host storage encryption
ReferenceWhy it matters1 section · depth on demand
Guest vs host encryption
| Option | Protects against | Key location |
|---|---|---|
| In-guest (BitLocker, LUKS) | Stolen VM files, storage admins | Guest (vTPM) or key server |
| Hypervisor VM encryption (vSphere, Shielded VMs) | Stolen datastore files | Key provider/KMS |
| Storage-level (array, ZFS, Ceph) | Stolen disks | Array/host |
Higher layers protect against more insiders but add key management work. Back up keys separately.
ReferenceImportant terms & boundaries2 sections · depth on demand
In depth
Disk encryption can be done in the guest (BitLocker, LUKS) or below the VM (VM encryption, encrypted datastore/array, SEDs). In-guest encryption keeps keys inside the VM and works on any platform, but hypervisor-level features (dedup/compression on the array) see only random data and lose efficiency.
Whichever layer you choose, escrow recovery keys outside the VM and test a restore of an encrypted VM to a clean environment.
Options
| Layer | Examples | Protects against |
|---|---|---|
| Guest | BitLocker, LUKS | Theft of VM files and backups |
| Hypervisor | vSphere VM Encryption, Hyper-V Shielded VMs | Storage and admin access to files |
| Storage | Array/SED encryption | Stolen disks |
Guest encryption with vTPM keeps keys inside the VM but makes host-level dedup/compression ineffective.
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 → Disk Encryption. Documentation verification only; this is not observed lab or production Evidence.
Basis: https://csrc.nist.gov/pubs/sp/800/125/final · confidence 94%