Uploaded image for project: 'Migration Toolkit for Virtualization'
  1. Migration Toolkit for Virtualization
  2. MTV-2378

Fail to migrate guest with Clevis from VMware on MTV

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Unresolved
    • Icon: Normal Normal
    • None
    • 2.8.0
    • Guest
    • Quality / Stability / Reliability
    • False
    • Hide

      None

      Show
      None
    • True

      Description of problem:
      Fail to migrate guest with Clevis from VMware on MTV

      Version-Release number of selected component (if applicable):
      MTV 2.8.0
      OCP 4.17.24

      How reproducible:
      100% 

      Steps to Reproduce:
      1. Prepare the guest with Tang and the guest with Cleivs on VMware

      2. Create a migration pan to migrate the guest with cleivs from VMware and input 'clevis' in Disk decryption passphrases

      3. The plan is failed with virt-v2v error 'could not find key to open LUKS encrypted /dev/rhel_bootp-73-75-123/root.', details please refer to pod log

       

      Actual results:
      As above description

      Expected results:
      Fix the bug

      Additional info:
      Can't reproduce on rhel

      # virt-v2v -ic vpx://administrator%40vsphere.local@10.73.213.102/data/10.73.212.38/?no_verify=1 -it vddk -io vddk-libdir=/home/vddk8.0.3 -io  vddk-thumbprint=86:25:2F:5E:74:5C:43:D9:28:62:31:E0:1F:BB:1F:FD:AC:18:A5:93  -ip /home/passwd Auto-esx7.0-rhel9.1-clevis-client --key all:clevis
      [   0.0] Setting up the source: -i libvirt -ic vpx://administrator%40vsphere.local@10.73.213.102/data/10.73.212.38/?no_verify=1 -it vddk Auto-esx7.0-rhel9.1-clevis-client
      [   1.7] Opening the source
      [  10.0] Inspecting the source
      [  23.9] Checking for sufficient free disk space in the guest
      [  23.9] Converting Red Hat Enterprise Linux 9.1 Beta (Plow) (rhel9.1) to run on KVM
      virt-v2v: This guest has virtio drivers installed.
      [ 163.6] Setting a random seed
      [ 163.6] SELinux relabelling
      [ 222.4] Mapping filesystem data to avoid copying unused and blank areas
      virt-v2v: warning: fstrim on guest filesystem 
      /dev/mapper/luks-cf19e4ac-3f54-450b-b801-72e539a8f870 failed.  Usually you 
      can ignore this message.  To find out more read "Trimming" in virt-v2v(1).Original message: fstrim: fstrim: /sysroot/: the discard operation is not 
      supported
      [ 223.8] Closing the overlay
      [ 224.1] Assigning disks to buses
      [ 224.1] Checking if the guest needs BIOS or UEFI to boot
      [ 224.1] Setting up the destination: -o libvirt
      [ 225.6] Copying disk 1/1
      █ 100% [****************************************]
      [ 726.0] Creating output metadata
      [ 726.0] Finishing off 

              rh-ee-solenoci Stefan Olenocin
              mxie@redhat.com Ming Xie
              Votes:
              0 Vote for this issue
              Watchers:
              6 Start watching this issue

                Created:
                Updated: