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

Warm migration failed due to inspection could not detect the source guest OS

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Unresolved
    • Icon: Critical Critical
    • 2.11.1
    • 2.11.0
    • Controller

      Description of problem:

      Warm migrate VM with 3 sata disks "sata(0:1,0:2,0:3) Hard disks1,2,3" and cdrom with sata driver "sata(0:0) CD/DVD driver", the migration failed in conversion phase with error:

      virt-v2v-in-place: error: inspection could not detect the source guest (or physical machine) operating system.....
      No root device found in this operating system image.

      Version-Release number of selected component (if applicable):

      MTV 2.11.0-46 with CNV 4.20.8
      (virt-v2v 2.8.1rhel=10,release=13.el10_1 (x86_64), libvirt version: 11.5.0)

      How reproducible:

      Always

      Steps to Reproduce:

      1) Create a VM: mtv-win2022-ip-3disks on vCenter7 with 3 sata disks (sata(0:1) Hard disks1, sata(0:2) Hard disks 2, sata(0:3) Hard disks13) and cdrom with sata driver "sata(0:0) CD/DVD driver". Don't connect the CD-ROM when power on VM. Start the VM.

      2) Create a plan: mtv-win2022 to warm migrate VM to OCP cluster, the plan failed on conversion phase. Hit error:

      inspect_os: fses:
      fs: /dev/sda2 (ntfs) role: other
      fs: /dev/sdb2 (ntfs) role: other
      inspect_os: collect_coreos_inspection_info
      inspect_os: check_for_duplicated_bsd_root
      inspect_os: check_for_duplicated_btrfs_snapshots_olibguestfs: trace: v2v: inspect_os = []
      .......
      virt-v2v-in-place: error: inspection could not detect the source guest (or physical machine) operating system.....
      No root device found in this operating system image.

      Check the converison pod log, the libvirt xml is like this, it seems mix the first disk and cdrom, more details in attached files: warm-win2022-vm-6274-bxjfl-virt-v2v.log, plan-warm-win2022.yaml

        <devices>
          <disk type="file" device="cdrom">             ==> Here
            <source file="/var/tmp/v2v/mtv-win2022-ip-3disks-sda"></source>
            <target dev="sda" bus="sata"></target>
            <readonly></readonly>                       ==> Here
            <address type="drive" controller="0" bus="0" target="0" unit="0"></address>
          </disk>
          <disk type="file" device="disk">
            <source file="/var/tmp/v2v/mtv-win2022-ip-3disks-sdb"></source>
            <target dev="sdb" bus="sata"></target>
            <address type="drive" controller="0" bus="0" target="0" unit="1"></address>
          </disk>
          <disk type="file" device="disk">
            <source file="/var/tmp/v2v/mtv-win2022-ip-3disks-sdc"></source>
            <target dev="sdc" bus="sata"></target>
            <address type="drive" controller="0" bus="0" target="0" unit="2"></address>
          </disk>

      Notice:

      Warm migrate another VM: mtv-win2019-3disks with 3 SCSI disks and cdrom with sata driver "sata(0:0) CD/DVD driver". Don't connect the CD-ROM when power on VM. The migrate executed successfully, check the conversion pod log, the libvirt xml is like this:

      (No cdroom device as it's not connected when power on VM, and sda with guest OS)

        <devices>
          <disk type="file" device="disk">
            <source file="/var/tmp/v2v/mtv-win2019-3disks-sda"></source>
            <target dev="sda" bus="scsi"></target>
            <address type="drive" controller="0" bus="0" target="0" unit="0"></address>
          </disk>
          <disk type="file" device="disk">
            <source file="/var/tmp/v2v/mtv-win2019-3disks-sdb"></source>
            <target dev="sdb" bus="scsi"></target>
            <address type="drive" controller="0" bus="0" target="0" unit="1"></address>
          </disk>
          <disk type="file" device="disk">
            <source file="/var/tmp/v2v/mtv-win2019-3disks-sdc"></source>
            <target dev="sdc" bus="scsi"></target>
            <address type="drive" controller="0" bus="0" target="0" unit="2"></address>
          </disk>
          <controller type="scsi" index="0" model="lsisas1068"></controller>
          <controller type="sata" index="0"></controller> 

      Actual results:

      In Step2: Migration failed due to inspection could not detect the source guest OS

      Expected results:

      In Step2: Migration success

      Additional info:

       

              mnecas@redhat.com Martin Necas
              chhu@redhat.com Chenli Hu
              Votes:
              0 Vote for this issue
              Watchers:
              7 Start watching this issue

                Created:
                Updated: