Rocky Linux 9.2 QEMU / KVM UTM LVM fails at first boot

I get consistent LVM failures on first boot after kickstarting.

I fixed the issue by logging in with root password, at the emergency mode prompt, and doing:

mv /etc/lvm/devices/system.devices /system.devices
lvmdevices -v --adddev /dev/disk/by-id/ata-QEMU_HARDDISK_QM00001-part3
reboot

I have to do this after every kickstart install

Here is the diff:

# New file
< # Created by LVM command lvmdevices pid 3406 at Fri Oct  6 23:11:37 2023
< VERSION=1.1.4
< IDTYPE=sys_wwid IDNAME=t10.ATA_QEMU_HARDDISK_QM00003 DEVNAME=/dev/sdb3 PVID=MWDos7eV743hRiMvJZE4y3xkd5TUYoxR PART=3
---
# Old file
> # Created by LVM command lvmdevices pid 977 at Fri Oct  6 22:42:47 2023
> VERSION=1.1.1
> IDTYPE=sys_wwid IDNAME=t10.ATA_QEMU_HARDDISK_QM00001 DEVNAME=/dev/sdb3 PVID=MWDos7eV743hRiMvJZE4y3xkd5TUYoxR PART=3

Here is the kickstart file …

#version=RHEL9
### LOCALIZATION
# System keyboard
keyboard --xlayouts='us'

# System language
lang en_US.UTF-8

# System timezone
timezone America/New_York --utc

### NETWORK
# Firewall configuration
firewall --disabled
network --bootproto=dhcp --device=enp0s1 --onboot=on --noipv6 --activate

repo --name="AppStream" --baseurl=file:///run/install/sources/mount-0000-cdrom/AppStream
repo --name="BaseOS" --baseurl=file:///run/install/sources/mount-0000-cdrom/BaseOS

# OS
# Do not configure the X Window System
skipx

# System authorization information
authselect --useshadow

# SELinux configuration
selinux --disabled

rootpw --cleartext NunYaBiz

### INSTALL

# Use text mode install
text
# Install from cdrom
cdrom

# storage
ignoredisk --only-use=disk/by-id/ata-QEMU_HARDDISK_QM00003
clearpart --drives=disk/by-id/ata-QEMU_HARDDISK_QM00003 --disklabel=gpt --initlabel --all

part /boot --fstype="xfs" --ondisk=disk/by-id/ata-QEMU_HARDDISK_QM00003 --size=1025 --label=BOOT
part /boot/efi --fstype="efi" --ondisk=disk/by-id/ata-QEMU_HARDDISK_QM00003 --size=513 --label=EFI
part pv.42 --fstype="lvmpv" --ondisk=disk/by-id/ata-QEMU_HARDDISK_QM00003 --size=2048 --label=PV --grow
volgroup rl pv.42
logvol / --fstype="xfs" --size=4096 --vgname=rl --name=root
logvol swap --fstype="swap" --size=2048 --vgname=rl --name=swap
logvol /home --fstype="xfs" --size=2048 --vgname=rl --name=home
logvol /usr --fstype="xfs" --size=4096 --vgname=rl --name=usr
logvol /var --fstype="xfs" --size=4096 --vgname=rl --name=var
logvol /opt --fstype="xfs" --size=1024 --vgname=rl --name=opt
logvol /tmp --fstype="xfs" --size=1024 --vgname=rl --name=tmp

poweroff

%packages
@^minimal-environment
authselect-compat
vim-enhanced
zsh
-iwl*
-plymouth
%end

%anaconda
pwpolicy root --minlen=8 --minquality=1 --notempty --strict
pwpolicy luks --minlen=8 --minquality=1 --emptyok
%end

This topic was automatically closed 60 days after the last reply. New replies are no longer allowed.