Skip to content

Modules support — am I doing this right? #203

Answered by arighi
intelfx asked this question in Q&A
Discussion options

You must be logged in to vote

vng is automatically using the modules from the build dir, basically it installs all the modules in your target kernel build dir ($PWD in this case) in .virtme_mods/ and it will bind mount this dir in /lib/modules/$kernel_version, so inside the vng session you'll be able to load external modules normally.

Keep in mind that this will replace the original /lib/modules/$kernel_version on the host, so if you have out-of-tree dkms modules you won't be able to see them with your recompiled kernel. But you can see them if you run the host's kernel (using vng -r).

Also note that vng -r . is equivalent to simply running vng (default is to run the kernel from the current working dir).

Replies: 1 comment 2 replies

Comment options

You must be logged in to vote
2 replies
@intelfx
Comment options

@arighi
Comment options

Answer selected by intelfx
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants