Hide KVM signature when using GPU passthrough to support more GPU models #3459
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.
Currently, when using the GPU passthrough mode, certain GPU models such as Titan X will not work. To reproduce the error:
minikube start --vm-driver kvm2 --gpu
minikube addons enable nvidia-driver-installer
The driver installation will then fail. Further investigation shows that this is because the command
nvidia-smi
fails with the errorUnable to determine the device handle for GPU 0000:0X:00.0: Unknown Error
.The error occurs because NVIDIA doesn't seem to support GPU passthrough for certain lower-end models such as the Titan X family.
The fix for this is to hide the KVM hypervisor signature (see here). I have tested this fix with Titan X Pascal and the NVIDIA driver was installed successfully and the GPU works well without any problem in Minikube. As far as I can tell, I don't think there is any negative side effects of hiding the KVM signature.