LUKS Encryption root partition , dracut no physical devices found

Posted on

We have a RHEL8 image which has root and swap partitions and encrypting the root partitions. I have followed the below steps.

  1. Mount the root partition
  2. setup luks for the root partition
  3. Open the luks root partition
  4. Format with xfs
  5. untar root file system files tared earlier to the encrypted root
  6. update fstab with dev/mapper/crypt-root to mount '/' file system
  7. edit /etc/crypttab with luks partition uuid
  8. Edit grub config for the new volume volume group and update rd.luks.uuid=
  9. chroot to root partition
  10. run dracut -f to update the initramfs
  11. Convert img to ova with aemu

When uploaded ova in ESXi server and boot it I see no physical volumes found.
It is taking me to dracut shell.

PVS not showing anything
LVS not showing anything

Any setup I'm missing here

Responses