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

libguestfs inspection does not know about /etc/fstab PARTLABEL=<label>

    • libguestfs-1.52.2-3.el10
    • None
    • Moderate
    • sst_virtualization
    • ssg_virtualization
    • 5
    • False
    • Hide

      None

      Show
      None
    • None
    • None
    • None

      Libguestfs inspection doesn't understand /etc/fstab partition labels (which map to GPT labels). In this Ubuntu guest we have /etc/fstab containing:

      # / was on /dev/sda2 during curtin installation
      PARTLABEL=SYSTEM / ext4 defaults 0 1
      # /boot/efi was on /dev/sda1 during curtin installation
      PARTLABEL=EFI /boot/efi vfat defaults 0 1
      

      These should be mapped via the part-get-name API:

      ><fs> part-get-name /dev/sda 1
      EFI
      ><fs> part-get-name /dev/sda 2
      SYSTEM

      Test with virt-v2v

      # rpm -q virt-v2v libguestfs guestfs-tools
      virt-v2v-2.5.5-2.el10.x86_64
      libguestfs-1.52.2-1.el10.x86_64
      guestfs-tools-1.52.0-6.el10.x86_64
      # virt-v2v -ic vpx://non-admin%40vsphere.local@10.73.212.129/data/10.73.212.36/?no_verify=1  -it vddk -io vddk-libdir=/home/vddk8.0.3 -io vddk-thumbprint=CB:9F:B1:9D:33:49:6C:60:AD:3C:A5:16:77:91:5F:CD:1B:24:B1:43 -ip /home/passwd VDI-Ubuntu-template
      [   1.1] Setting up the source: -i libvirt -ic vpx://non-admin%40vsphere.local@10.73.212.129/data/10.73.212.36/?no_verify=1 -it vddk VDI-Ubuntu-template
      [   2.9] Opening the source
      [  22.5] Inspecting the source
      [  23.5] Checking for sufficient free disk space in the guest
      [  23.5] Converting Ubuntu 22.04.4 LTS to run on KVM
      virt-v2v: error: could not find bootloader mount point (/boot/efi/EFI): 
      find0: /boot/efi/EFI: No such file or directoryIf reporting bugs, run virt-v2v with debugging enabled and include the 
      complete output:  virt-v2v -v -x [...] 

            rhn-eng-rjones Richard Jones
            dbarda Danielle Barda
            virt-maint virt-maint
            Yongkui Guo Yongkui Guo
            Votes:
            0 Vote for this issue
            Watchers:
            9 Start watching this issue

              Created:
              Updated: