kvm: module verification failed: signature and/or required key missing - tainting kernel

前端 未结 4 820
谎友^
谎友^ 2020-12-06 04:35

I\'m using Ubuntu 14.04 LTS and kernel version 3.13.11.4.
I\'m trying to load patched KVM modules kvm and kvm-intel

4条回答
  •  独厮守ぢ
    2020-12-06 05:08

    Instead of re-configuring the kernel, this error (module verification failed) could be resolved by just adding one line CONFIG_MODULE_SIG=n to the top of the Makefile for the module itself:

    CONFIG_MODULE_SIG=n
    
    # If KERNELRELEASE is defined, we've been invoked from the
    # kernel build system and can use its language.
    ifneq ($(KERNELRELEASE),)
        obj-m := hello.o
    
    # Otherwise we were called directly from the command
    # line; invoke the kernel build system.
    else
        KERNELDIR ?= /lib/modules/$(shell uname -r)/build
        PWD := $(shell pwd)
    
    default:
        $(MAKE) -C $(KERNELDIR) M=$(PWD) modules
    endif
    

提交回复
热议问题