Bug 2222485

Summary: virt-v2v-inspector (and others) is unaware of systemd-boot based systems with kernel/initrd in ESP
Product: [Fedora] Fedora Reporter: Jeremy Linton <jeremy.linton>
Component: virt-v2vAssignee: Richard W.M. Jones <rjones>
Status: NEW --- QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: medium Docs Contact:
Priority: unspecified    
Version: 39CC: mbooth, rjones
Target Milestone: ---   
Target Release: ---   
Hardware: aarch64   
OS: Linux   
Whiteboard:
Fixed In Version: Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:
Attachments:
Description Flags
Debug output from virt-v2v-inspector run none

Description Jeremy Linton 2023-07-13 00:20:38 UTC
For example when running virt-v2v-inspector it says:

"virt-v2v-inspector: error: no bootloader detected" on a valid libvirt/kvm bootable guest using systemd-boot.



Reproducible: Always

Steps to Reproduce:
1. Boot/install a fedora image utilizing systemd-boot on the ESP
2. Run virt-v2v-inspector  -i disk $DISKIMAGE
3. Wait for successful completion.
Actual Results:  
[root@mammon-tx2 jlinton]# virt-v2v-inspector  -i disk /var/lib/libvirt/images/fedora-rawhide-systemd-boot.qcow2 
[   0.0] Setting up the source: -i disk /var/lib/libvirt/images/fedora-rawhide-systemd-boot.qcow2
[   1.1] Opening the source
[  10.7] Inspecting the source
[  17.2] Checking for sufficient free disk space in the guest
[  17.2] Converting Fedora Linux 39 (Server Edition Prerelease) to run on KVM
virt-v2v-inspector: error: no bootloader detected

If reporting bugs, run virt-v2v-inspector with debugging enabled and 
include the complete output:

  virt-v2v-inspector -v -x [...]

Comment 1 Jeremy Linton 2023-07-13 00:28:05 UTC
Created attachment 1975506 [details]
Debug output from virt-v2v-inspector run

Comment 2 Jeremy Linton 2023-07-13 00:28:53 UTC
Although, even with a grub based rawhide on aarch64 it still displays warnings that might need attention:

[root@mammon-tx2 jlinton]# virt-v2v-inspector -i disk /var/lib/libvirt/images/fedora-rawhide-2.qcow2 
[   0.0] Setting up the source: -i disk /var/lib/libvirt/images/fedora-rawhide-2.qcow2
[   1.1] Opening the source
[  11.1] Inspecting the source
[  17.4] Checking for sufficient free disk space in the guest
[  17.4] Converting Fedora Linux 39 (Server Edition Prerelease) to run on KVM
virt-v2v-inspector: The QEMU Guest Agent will be installed for this guest 
at first boot.
virt-v2v-inspector: Can't fix UEFI bootloader. VM may not boot.

Comment 3 Fedora Release Engineering 2023-08-16 08:12:45 UTC
This bug appears to have been reported against 'rawhide' during the Fedora Linux 39 development cycle.
Changing version to 39.