Bug 2158305 - virt-install using fails with fedora 37 iso fails with "ERROR Couldn't find kernel for install tree."
Summary: virt-install using fails with fedora 37 iso fails with "ERROR Couldn't fin...
Keywords:
Status: NEW
Alias: None
Product: Fedora
Classification: Fedora
Component: virt-manager
Version: 37
Hardware: x86_64
OS: Linux
unspecified
unspecified
Target Milestone: ---
Assignee: Cole Robinson
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2023-01-05 03:46 UTC by Rob Lowe
Modified: 2023-04-05 20:09 UTC (History)
4 users (show)

Fixed In Version:
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
Environment:
Last Closed:
Type: Bug


Attachments (Terms of Use)
kickstart file used for testing (570 bytes, text/plain)
2023-01-05 03:46 UTC, Rob Lowe
no flags Details

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):

Fedora-Workstation-Live-x86_64-37-1.7.iso
virt-install-4.1.0-1.fc37.noarch

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.


Note You need to log in before you can comment on or make changes to this bug.