Pcornel
Virtualization · Security

VM Encryption

Cheat sheet · https://pcornel.dk/topic.php?topic=3654

Back to the Topic

Answer

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.

Remember

  • VM encryption needs a key provider or KMS.
  • The performance cost is usually small.

First checks

  • Get-VMSecurity <vm> | fl EncryptStateAndVmMigrationTraffic,Shielded — Hyper-V
  • Get-VM <vm> | Get-VMEncryption (PowerCLI) — vSphere VM encryption
  • key provider status — KMS connected

Verify in this order

VM files → encrypted with keys from KMS

Where it usually breaks

First mismatch in management intent → host/cluster capability → hypervisor runtime/task → virtual resource/device → guest state → workload-visible read-back; preserve identity/native error/pre-state before mutation.

Read-only verification commands unless stated otherwise. Confirm syntax for your platform and release. Full reference: https://pcornel.dk/topic.php?topic=3654

Confirmation

Confirm action

Continue?