Hi all,
I use a Docker container with 4.9.16-coreos-r1 on a DigitalOcean host.
Virtualization is available as shown below :
Model name: Intel(R) Xeon(R) CPU E5-2650L v3 @ 1.80GHz
Virtualization: VT-x
Hypervisor vendor: KVM
Virtualization type: full
I issue : apt-get install qemu-kvm libvirt-bin virtinst bridge-utils
At some point, the installation complains :
Configuring kvm qemu-kvm
modprobe: ERROR: ../libkmod/libkmod.c:586 kmodsearchmoddep() could not open moddep file '/lib/modules/4.9.16-coreos-r1/modules.dep.bin'
modprobe: FATAL: Module kvm_intel not found in directory /lib/modules/4.9.16-coreos-r1
...done.
Surprisingly, there is actually no '/lib/modules/4.9.16-coreos-r1' directory...
Nor does '/lib/modules' exist...
Is this specific to a CoreOS container ?
From what I read in several posts, I need to install Linux headers. Then, the missing directory will be created and it will be possible to get 'kvm-intel.ko' module properly installed in a subdirectory and loaded.
But, when I issue : apt-get install linux-headers-'uname -r'
I get the following error :
Reading package lists...
Building dependency tree...
Reading state information...
E: Unable to locate package linux-headers-4.9.16-coreos-r1
E: Couldn't find any package by glob 'linux-headers-4.9.16-coreos-r1'
E: Couldn't find any package by regex 'linux-headers-4.9.16-coreos-r1'
Why are the headers not available ? How can I get them ?
I tried to use another kernel by following this tutorial :
https://www.digitalocean.com/community/tutorials/how-to-update-a-digitalocean-server-s-kernelThen, 'kvm-intel.ko' is avalaible but can not be loaded.
Using 'insmod -f' fails with an 'invalid module format'.
I even tried to to execute the new kernel without reboot using 'kexec' command.
But it also fails with an “invalid argument” error.
I am not an expert at all. And I am stuck for days now.
I would really appreciate if somebody could help me figure out what is wrong...
Kind regards,
Laurent Le Moux