Common issues encountered when running the linux-inference-memory-hints project in QEMU.
- Symptoms:
scripts/build_kernel.shfails during thegit amphase. - Cause: The base kernel version (6.6.x) may have drifted significantly, or the patches were applied out of order.
- Fix: Ensure you are using the exact version specified in
build_kernel.sh(6.6.20). Tryrm -rf kernel-buildand restart.
- Symptoms: QEMU hangs or loops after "End of boot".
- Cause: Usually a missing
initin the rootfs or incorrectroot=parameter. - Fix: Verify your
rootfs.ext4contains a valid/sbin/initor/bin/sh.
- Symptoms:
scripts/run_in_vm.shfails to find/mnt/repo. - Cause: The guest kernel lacks
CONFIG_NET_9PorCONFIG_9P_FS. - Fix:
build_kernel.shenables these viadefconfig. If using a custom config, ensure 9P support is built-in (not a module).
- Symptoms:
verify_semantic_pipeline.shreports[UNSUPPORTED]. - Cause: You may be booting an old
bzImageinstead of the newly patched one. - Fix: Check
uname -rinside the VM and verify it matches your build timestamp.
- Symptoms: Reclaim counters stay at zero.
- Cause: Insufficient memory pressure.
- Fix: Increase the background load in
memory_pressureor reduce the VM RAM (e.g.,-m 1G).
- Symptoms:
/sys/kernel/debugis empty. - Fix: Run
mount -t debugfs none /sys/kernel/debuginside the guest.