-
Notifications
You must be signed in to change notification settings - Fork 28
MTV-3397-Enabling nbde vmware #779
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Draft
Jenny-Anne
wants to merge
9
commits into
kubev2v:main
Choose a base branch
from
Jenny-Anne:MTV-3397-nbde-with-clevis
base: main
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Draft
Changes from all commits
Commits
Show all changes
9 commits
Select commit
Hold shift + click to select a range
0f958e4
enabling nbde vmware
Jenny-Anne 36c398e
edits
Jenny-Anne 938155c
code snippet formatting
Jenny-Anne f139384
concept and procedure
Jenny-Anne afad819
concept
Jenny-Anne 98ddaeb
procedure
Jenny-Anne 5911e49
cr snippet
Jenny-Anne ea7f7be
nbde and luks updates
Jenny-Anne 2d460d0
NBDE updates
Jenny-Anne File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
25 changes: 25 additions & 0 deletions
25
documentation/modules/con_migration-of-luks-encrypted-disks.adoc
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,25 @@ | ||
| // Module included in the following assemblies: | ||
| // | ||
| // assembly_planning-migration-vmware.adoc | ||
|
|
||
| :_mod-docs-content-type: CONCEPT | ||
| [id="con_migration-of-luks-encrypted-disks_{context}"] | ||
|
|
||
| = Migration of LUKS-encrypted disks | ||
yaacov marked this conversation as resolved.
Show resolved
Hide resolved
|
||
|
|
||
| [role="_abstract"] | ||
| If you have virtual machines (VMs) with LUKS-encrypted disks in your source VMware VSphere environment, you can migrate them to Red Hat {virt} by enabling Network-Bound Disk Encryption (NBDE) with Clevis. Alternatively, you can manually add passwords for LUKS-encrypted devices in your migration plan. | ||
|
|
||
| If you enable NBDE, passwords are retrieved from the Clevis server. When you manually add LUKS passwords to your migration plan, you provide the list of passwords, and you cannot use NBDE to retrieve them. The two methods for migrating LUKS-encrypted disks are incompatible. You must use either NBDE or manual LUKS passwords to migrate LUKS-encrypted disks. | ||
|
|
||
| MTV transfers the data of VMs with LUKS-encrypted disks from the source environment to the target {virt} cluster. MTV reads only the blocks that are required for guest conversion, decrypting the required blocks and re-encrypting them locally with the same key. | ||
|
|
||
| Clevis is a client-side framework that automates the decryption of LUKS volumes by binding a LUKS key slot to a policy. During the migration of VMs with LUKS-encrypted disks, MTV authenticates with the configured network service by requesting the key to unlock the LUKS-encrypted disk from the Tang server. The automatic retrieval of the key allows the VM to boot without a manual passphrase entry from an administrator. | ||
|
|
||
| Benefits of NBDE:: | ||
|
|
||
| * *Automation:* Eliminates the need to enter keys manually during migration. | ||
| * *Enhanced security:* Maintains the security of VMs throughout their migration lifecycle by preserving LUKS encryption from the source to the destination. | ||
| * *Seamless operation:* Ensures that VMs with encrypted disks can be brought online in the new OpenShift Virtualization environment with minimal interruption. | ||
|
|
||
|
|
||
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,60 @@ | ||
| // Module included in the following assemblies: | ||
| // | ||
| // assembly_planning-migration-vmware.adoc | ||
|
|
||
| :_mod-docs-content-type: PROCEDURE | ||
| [id="proc_enabling-nbde-with-clevis_{context}"] | ||
|
|
||
| = Enabling Network-Bound Disk Encryption with Clevis | ||
|
|
||
| [role="_abstract"] | ||
| 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. | ||
|
|
||
| You can enable NBDE with Clevis either in the MTV UI or in the YAML file for your migration plan: | ||
|
|
||
| * 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. | ||
| * In the YAML file for your migration plan, you can combine encryption types and apply the setting to selected VMs in the YAML file. | ||
|
|
||
| .Prerequisites | ||
| * The Tang server is accessible from your OpenShift cluster and from the migration network. | ||
| * You have a LUKS key slot bound to the Tang server policy. | ||
| + | ||
| 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). | ||
|
|
||
| .Procedure | ||
| . Enable NBDE with Clevis in the MTV UI. | ||
| .. In the Create migration plan wizard, navigate to *Other settings* under *Additional setup* in the left navigation pane. | ||
Jenny-Anne marked this conversation as resolved.
Show resolved
Hide resolved
|
||
| .. Select *Use NBDE/Clevis*. | ||
| + | ||
| 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. | ||
| .. Click *Next*, and verify that *Use NBDE/Clevis* shows as *Enabled* under *Other settings (optional)*. | ||
| .. When you create your migration plan, click *Migration plans* in the left navigation menu, and open the *Plan Details* page for your migration plan. | ||
| .. Click the *Edit* icon for *Disk decryption* under *Plan settings*. | ||
| .. Verify that *Use network-bound disk encryption (NBDE/Clevis)* is selected. | ||
| + | ||
| If you are not using NBDE with Clevis, verify that the passphrases for LUKS-encrypted devices are added. | ||
|
|
||
| . Enable NBDE with Clevis in the YAML file. | ||
| .. Click *Migration plans* in the left navigation menu and open the *Plan Details* page for your migration plan. | ||
| .. Click the *YAML* tab to open the `Plan` custom resource (CR) for your migration plan. | ||
| .. 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`: | ||
| + | ||
| Example: | ||
| + | ||
| ---- | ||
| vms: | ||
| - id: vm-1 | ||
| name: vm-1-esx8.0-rhel8.10-raid1 | ||
| targetPowerState: on | ||
| nbdeClevis: true | ||
| - id: vm-2 | ||
| name: vm-2-esx8.0-rhel8.10-raid1 | ||
| luks: { name: 'test-secret-1' } | ||
| - id: vm-3 | ||
| name: vm-3-esx8.0-rhel8.10-raid1 | ||
| ---- | ||
Jenny-Anne marked this conversation as resolved.
Show resolved
Hide resolved
|
||
|
|
||
| .Troubleshooting | ||
| * 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. | ||
|
|
||
|
|
||
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.