Bug 2158305

Summary: virt-install using fails with fedora 37 iso fails with "ERROR Couldn't find kernel for install tree."
Product: [Fedora] Fedora Reporter: Rob Lowe <rlowe>
Component: virt-managerAssignee: Cole Robinson <crobinso>
Status: NEW --- QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: 37CC: berrange, crobinso, mah, philip.wyett
Target Milestone: ---   
Target Release: ---   
Hardware: x86_64   
OS: Linux   
Fixed In Version: Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Description Flags
kickstart file used for testing none

Description Rob Lowe 2023-01-05 03:46:54 UTC
Created attachment 1935839 [details]
kickstart file used for testing

Description of problem:

When attempting to create a new Fedora 37 virtual machine using the virt-install command, the command fails with "ERROR    Couldn't find kernel for install tree.".

A similar set of commands previously worked fine for Fedora 36.

This also seems to be  https://ask.fedoraproject.org/t/virt-install-compat-regression-with-f37-isos/29343

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


How reproducible:

This can be reliably reproduced using the following steps.

Steps to Reproduce:
1. Download Fedora-Workstation-Live-x86_64-37-1.7.iso
2. Create kickstart file (similar to attached).
3. Run the command: 

sudo virt-install -n test --memory=2048 --vcpus=2 --location iso/Fedora-Workstation-Live-x86_64-37-1.7.iso --disk size=30,pool=vms --network=default --os-variant=fedora37 --initrd-inject kickstart/f37-test.cfg --extra-args "inst.ks=file:/f37-test.cfg console=ttyS0"

Actual results:

Starting install...
ERROR    Couldn't find kernel for install tree.
Domain installation does not appear to have been successful.
If it was, you can restart your domain by running:
  virsh --connect qemu:///system start test
otherwise, please restart your installation.

No virtual machine was installed.

Expected results:

A virtual machine called "test" was installed.

Additional info:

Comment 1 Mark A. Hershberger 2023-04-05 20:00:11 UTC
I'm experiencing a similar issue using virt-install on a Debian host (package virtinst 1:4.1.0-2) with an "Regular" ISO from https://en.altlinux.org/Regular

Comment 2 Mark A. Hershberger 2023-04-05 20:09:09 UTC
Note that replacing --location with --cdrom works, but might not help the case of the OP.