Skip to content

Feature: allow users to specify kernel modules directory when running with custom kernel #117

Open

Description

@brb

At the time of writing, the LVH runner allows users to use a custom kernel path (to bzImage) via --kernel cmdline param. Unfortunately, it doesn't allow users to specify kernel modules directory. The pre-installed kmods in a VM image usually cannot be used with the custom kernel.

One workaround is to mount linux dir via --host-mount, and then from the VM cd /host/linux && make module_install. However, having the explicit kmods param would make the LVH runner easier to use.

Activity

  1. SAMurai-16 commented on May 25, 2026

    @SAMurai-16

    @brb is this issue still up for grabs??

  2. brb commented on May 26, 2026

    @brb
    MemberAuthor

    Yep, it has not been implemented yet. Before taking a stab, mind elaborating your approach?

  3. SAMurai-16 commented on May 28, 2026

    @SAMurai-16

    Current LVH allows booting a custom kernel with --kernel, but the VM continues to use whatever /lib/modules directory is already present in the image. When the custom kernel version differs from the image’s preinstalled modules, module loading fails.

    The approach I’m considering is to add a --kernel-modules runner option so users can provide the modules directory that matches the custom kernel. LVH would then make that directory available to the guest at runtime, avoiding the need to rebuild the VM image or manually mount the full Linux source tree and run make module_install inside the VM.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions