Uploaded image for project: 'RHEL'
  1. RHEL
  2. RHEL-122817

The guest can't boot into the second OS if the guest has multiple windows OS after v2v conversion

Linking RHIVOS CVEs to...Migration: Automation ...RHELPRIO AssignedTeam ...SWIFT: POC ConversionSync from "Extern...XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Unresolved
    • Icon: Normal Normal
    • None
    • rhel-10.2
    • virt-v2v
    • None
    • None
    • None
    • 1
    • rhel-virt-tools
    • None
    • False
    • False
    • Hide

      None

      Show
      None
    • None
    • Virt-tools in planning
    • None
    • None
    • Unspecified
    • Unspecified
    • Unspecified
    • x86_64
    • None

      Description of problem:
      The guest can't boot into the second OS if the guest has multiple windows OS after v2v conversion

      Version-Release number of selected component (if applicable):
      virt-v2v-2.9.9-1.el10.x86_64
      libguestfs-1.57.5-1.el10.x86_64
      guestfs-tools-1.54.0-6.el10.x86_64
      nbdkit-1.45.7-1.el10.x86_64
      libnbd-1.23.7-1.el10.x86_64
      libvirt-11.8.0-1.el10.x86_64
      qemu-kvm-10.1.0-2.el10.x86_64

      How reproducible:
      100%

      Steps:
      1. Prepare a guest with two disks, each containing a Windows OS on VMware, then convert the guest from VMware to local by virt-v2v and select the second OS during conversion

      # virt-v2v -ic vpx://non-admin%40vsphere.local@10.73.213.134/data/cluster/10.73.212.36/?no_verify=1  -it vddk -io vddk-libdir=/home/vddk8.0.3  -io vddk-thumbprint=C3:83:1D:C0:6D:4C:47:83:5A:B9:6E:0E:FA:5A:15:22:B4:75:D5:7E -ip /home/passwd esx8.0-win11-efi-for-bug-RHEL-119802 --root /dev/sdb2 -on esx8.0-win11-efi-for-bug-RHEL-119802-select-second-os -o local -os /home -v -x|& tee > v2v-convert-windows-guest-with-multiple-os-and-select-second-os.log

      2. Define the guest by virsh and start the guest after v2v conversion, but found the guest can't boot into OS even though setting boot order=1 for the second disk 

      # virsh define esx8.0-win11-efi-for-bug-RHEL-119802-select-second-os.xml 
      Domain 'esx8.0-win11-efi-for-bug-RHEL-119802-select-second-os' defined from esx8.0-win11-efi-for-bug-RHEL-119802-select-second-os.xml
      # virsh start esx8.0-win11-efi-for-bug-RHEL-119802-select-second-os
      Domain 'esx8.0-win11-efi-for-bug-RHEL-119802-select-second-os' started
      # virsh dumpxml esx8.0-win11-efi-for-bug-RHEL-119802-select-second-os |grep 'boot order' -A 3 -B 5
          <disk type='file' device='disk'>
            <driver name='qemu' type='raw'/>
            <source file='/home/esx8.0-win11-efi-for-bug-RHEL-119802-select-second-os-sda' index='3'/>
            <backingStore/>
            <target dev='vda' bus='virtio'/>
            <boot order='2'/>
            <alias name='virtio-disk0'/>
            <address type='pci' domain='0x0000' bus='0x05' slot='0x00' function='0x0'/>
          </disk>
          <disk type='file' device='disk'>
            <driver name='qemu' type='raw'/>
            <source file='/home/esx8.0-win11-efi-for-bug-RHEL-119802-select-second-os-sdb' index='2'/>
            <backingStore/>
            <target dev='vdb' bus='virtio'/>
            <boot order='1'/>
            <alias name='virtio-disk1'/>
            <address type='pci' domain='0x0000' bus='0x06' slot='0x00' function='0x0'/>
          </disk>
      

       

      Actual result:
      As above description

      Expect result:
      Fix the bug

      Additional info
      The guest can boot into OS after v2v conversion if select the first OS during conversion

       

              virt-maint virt-maint
              mxie@redhat.com Ming Xie
              virt-maint virt-maint
              virt-bugs virt-bugs
              Votes:
              0 Vote for this issue
              Watchers:
              10 Start watching this issue

                Created:
                Updated: