Migrating Windows VMs encrypted with BitLocker

Follow this guide to learn how Coriolis can be used to migrate Windows instances that have BitLocker-encrypted disks.

BitLocker key protectors

BitLocker key protectors define how the encrypted drives will be unlocked. TPM protectors store the keys on the Trusted Platform Module device and may be used in conjunction with other methods, such as PIN and/or startup keys stored on unencrypted drives, usually USB drives.

The Windows drive is the only partition that may leverage the TPM. In most cases, it will also hold the keys for the other encrypted drives.

If the TPM isn’t available (e.g. due to hardware changes or if the disks have been moved), recovery passwords or keys must be used to unlock the encrypted partitions.

Alternative Migration Methods

Suspend BitLocker before initiating the migration

BitLocker may be suspended before initiating the migration. It won’t decrypt the disk, which means that it won’t take long. It simply adds a public key used to automatically unlock the disk.

However, this means that the original disk as well as the migrated disk will be unlocked for a period of time. The advantage is that Coriolis will no longer need the BitLocker recovery password.

OS morphing scripts

Encrypted disks may also be unlocked through user-provided OS morphing scripts. Make sure to use the osmorphing_pre_os_mount phase so that the script will be invoked before Coriolis attempts to mount the OS drive.

Subsequent cleanup can be performed by scripts invoked during the replica_first_boot phase.

Only use this approach if the standard procedure is not applicable, for example when using other types of key protectors or if secondary volumes must also be unlocked during os-morphing.

As mentioned before, the OS drive usually holds key protectors for the secondary data drives.