Use this when encrypting VM files at the hypervisor layer.
VM Encryption
VM encryption encrypts a VM's disks and configuration files at the hypervisor layer with keys from a key management server, protecting data at rest, in backups and during encrypted live migration, independent of the guest OS.
1. VM encryption protects VM files and migration traffic at the hypervisor.
2. Needs a key provider (KMS, HGS).
3. Losing keys = losing VMs.
4. Encrypt backups too.
5. Test restore.
VM files → encrypted with keys from KMS
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
- Encryption state visible in VM settings/PowerCLI (
Get-VM | Select Name,@{n='Encrypted';e={$_.ExtensionData.Config.KeyId -ne $null}}). - Key provider healthy and backed up.
- Restore of an encrypted VM tested.
Step 2 Common mistakes Narrow the fault
- No backup of encryption keys.
- Backup software unable to read encrypted VMs.
- Expecting host encryption to protect against an admin of the hypervisor.
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.
- VM encryption needs a key provider or KMS.
- The performance cost is usually small.
Get-VMSecurity <vm> | fl EncryptStateAndVmMigrationTraffic,Shielded— Hyper-VGet-VM <vm> | Get-VMEncryption (PowerCLI)— vSphere VM encryptionkey provider status— KMS connected
ReferenceWhy it matters1 section · depth on demand
What it protects
Hypervisor-level VM encryption protects VM files on storage and in backups or copies. It does not protect against someone with admin rights on the running VM or the hypervisor management plane.
ReferenceImportant terms & boundaries2 sections · depth on demand
In depth
VM encryption encrypts the VM's files (disks, configuration, swap, memory files) on the datastore with per-VM keys protected by a key provider.
| Platform | Feature |
|---|---|
| vSphere | VM Encryption via storage policy, keys from Native Key Provider or KMIP KMS |
| Hyper-V | Shielded VMs (BitLocker in guest, Host Guardian Service), encryption support for Gen 2 |
| KVM | LUKS-encrypted qcow2/raw, encrypted storage (ZFS/Ceph), AMD SEV for memory |
Encryption protects against stolen datastores and backups; it does not protect against an attacker with vCenter/host admin rights, who can simply run the VM.
Options
| Level | Example |
|---|---|
| Hypervisor | vSphere VM Encryption, Hyper-V shielded VMs |
| Guest | BitLocker, LUKS |
| Storage | Array encryption, vSAN encryption |
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 Encryption. Documentation verification only; this is not observed lab or production Evidence.
Basis: https://csrc.nist.gov/pubs/sp/800/125/final · confidence 94%