Commit 2e15fd3
sci: load kvm modules via modules-load.d to fix libvirtd boot race
libvirtd's Cloud Hypervisor driver does a one-time /dev/kvm existence
check at init (ch_conf.c). If /dev/kvm doesn't exist at that moment
the driver is permanently skipped with no retry.
kvm_amd/kvm_intel are loaded by udev (non-deterministic), not by
systemd-modules-load.service (which runs Before=sysinit.target).
This creates a race: libvirtd can start before /dev/kvm is created.
Adding kvm.conf to modules-load.d moves loading to
systemd-modules-load.service, which is guaranteed to complete before
libvirtd starts (via the sysinit.target -> multi-user.target chain).
The arch-mismatched module fails harmlessly with -EOPNOTSUPP.
Fixes intermittent CI failures in Test CloudHypervisor jobs.1 parent f116c03 commit 2e15fd3
1 file changed
Lines changed: 3 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
0 commit comments