|
| 1 | +// Module included in the following assemblies: |
| 2 | +// |
| 3 | +// assembly_planning-migration-vmware.adoc |
| 4 | + |
| 5 | +:_mod-docs-content-type: PROCEDURE |
| 6 | +[id="proc_enabling-nbde-with-clevis_{context}"] |
| 7 | + |
| 8 | += Enabling Network-Bound Disk Encryption with Clevis |
| 9 | + |
| 10 | +[role="_abstract"] |
| 11 | +When you enable Network-Bound Disk Encryption (NBDE) with Clevis, the Tang server manages the keys for Linux Unified Key Setup (LUKS)-encrypted disks during a migration. If you do not use NBDE to migrate LUKS-encrypted disks from your source environment, you can manually add passwords for LUKS-encrypted devices instead. You must use either NBDE or manual LUKS passwords to migrate LUKS-encrypted disks. |
| 12 | + |
| 13 | +You can enable NBDE with Clevis either in the MTV UI or in the YAML file for your migration plan: |
| 14 | + |
| 15 | +* In the MTV UI, you must select either NBDE with Clevis or LUKS passphrases. You can have only one encryption type, and you apply the setting to all VMs in your migration plan. |
| 16 | +* In the YAML file for your migration plan, you can combine encryption types and apply the setting to selected VMs in the YAML file. |
| 17 | + |
| 18 | +.Prerequisites |
| 19 | +* The Tang server is accessible from your OpenShift cluster and from the migration network. |
| 20 | +* You have a LUKS key slot bound to the Tang server policy. |
| 21 | ++ |
| 22 | +NOTE: For MTV to access the keys from the Tang server, the keys must be on a different subnet range than a user-defined network (UDN). |
| 23 | + |
| 24 | +.Procedure |
| 25 | +. Enable NBDE with Clevis in the MTV UI. |
| 26 | +.. In the Create migration plan wizard, navigate to *Other settings* under *Additional setup* in the left navigation pane. |
| 27 | +.. Select *Use NBDE/Clevis*. |
| 28 | ++ |
| 29 | +If you are not using NBDE with Clevis, you add passphrases for LUKS-encrypted devices so that the Tang servers can decrypt the disks during a migration. |
| 30 | +.. Click *Next*, and verify that *Use NBDE/Clevis* shows as *Enabled* under *Other settings (optional)*. |
| 31 | +.. When you create your migration plan, click *Migration plans* in the left navigation menu, and open the *Plan Details* page for your migration plan. |
| 32 | +.. Click the *Edit* icon for *Disk decryption* under *Plan settings*. |
| 33 | +.. Verify that *Use network-bound disk encryption (NBDE/Clevis)* is selected. |
| 34 | ++ |
| 35 | +If you are not using NBDE with Clevis, verify that the passphrases for LUKS-encrypted devices are added. |
| 36 | + |
| 37 | +. Enable NBDE with Clevis in the YAML file. |
| 38 | +.. Click *Migration plans* in the left navigation menu and open the *Plan Details* page for your migration plan. |
| 39 | +.. Click the *YAML* tab to open the `Plan` custom resource (CR) for your migration plan. |
| 40 | +.. For each VM under `vms` in the YAML file, enter the encryption type. In this example, you set `nbdeClevis` as the encryption type for `vm-1`, LUKS passphrase as the encryption type for `vm-2`, and no encryption type for `vm-3`: |
| 41 | ++ |
| 42 | +Example: |
| 43 | ++ |
| 44 | +---- |
| 45 | +vms: |
| 46 | + - id: vm-1 |
| 47 | + name: vm-1-esx8.0-rhel8.10-raid1 |
| 48 | + targetPowerState: on |
| 49 | + nbdeClevis: true |
| 50 | + - id: vm-2 |
| 51 | + name: vm-2-esx8.0-rhel8.10-raid1 |
| 52 | + luks: { name: 'test-secret-1' } |
| 53 | + - id: vm-3 |
| 54 | + name: vm-3-esx8.0-rhel8.10-raid1 |
| 55 | +---- |
| 56 | + |
| 57 | +.Troubleshooting |
| 58 | +* For information about LUKS or Clevis configuration on the source VM, see link:https://docs.redhat.com/en/documentation/red_hat_enterprise_linux/8/html-single/security_hardening/index#configuring-automated-unlocking-of-encrypted-volumes-using-policy-based-decryption_security-hardening[Configuring automated unlocking of encrypted volumes by using policy-based decryption] in the RHEL _Security hardening_ guide. |
| 59 | + |
| 60 | + |
0 commit comments