Add KVM based checks #160
Open
aerosouund wants to merge 4 commits into
Open
Conversation
this logic may be used by other check groups that want to verify the existence of certain modules. modify the KernelChecks has_modules check to import and leverage this moved logic Signed-off-by: aerosouund <aerosound161@gmail.com>
other check lanes may need this logic to check the cpu vendor or flags. Signed-off-by: aerosouund <aerosound161@gmail.com>
create a new lane of checks that assert the needed requirements presence for running edera on a kvm based host. which are: - /dev/kvm exists - the vhost_vsock module exists - the one of vendor specific kvm modules exist on the host (kvm_amd, kvm_intel) Signed-off-by: aerosouund <aerosound161@gmail.com>
if specified, it will signal the need to run the kvm based checks. which are the Kvm, PVH and IOMMU lanes Signed-off-by: aerosouund <aerosound161@gmail.com>
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.
Closes: #154
Explanation
Add a
hypervisorflag to the preinstall command to specify that the kvm based group of checks should run (/dev/kvmexists,kvm_amdorkvm_intelexist,vhost_vsockexists)Example successful run:
Example failed run:
cc: @bleggett @antoineco