Conversation
…modules - Added a `required` flag to module loading logic to handle optional modules silently. - Included support for 9p filesystem kernel modules in Linux guest setup. - Adjusted scripts to install 9p modules.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
This pull request enhances how kernel modules are handled in the guest agent and installation scripts, particularly by distinguishing between required and optional modules and ensuring proper inclusion of 9p filesystem modules. The most important changes are grouped below by theme.
Kernel module loading logic improvements:
load_kernel_modulesfunction inguest-agent/src/main.rsto specify which modules are required and which are optional, allowing optional modules (such as network and 9p filesystem modules) to fail silently if missing, which is expected on macOS/VZ. Required modules now trigger warnings if loading fails.Kernel module installation enhancements:
9pnet.koand9pnet_virtio.ko) to the list of modules extracted from the Debian package inscripts/lib/guest_linux.sh, ensuring they are available for installation.install_kernel_modules_linuxfunction inscripts/lib/guest_linux.shto install the 9p filesystem modules, further supporting host directory sharing features.