Bila anda menggunakan VirtualBox 6.1.16 atau lebih rendah, ketika menggunakan kernel 5.10 akan muncul pesan error

kernel driver not installed 1908
bila perintah yang diminta dijalankan

sudo /sbin/vboxconfig

di log build (/var/log/vbox-setup.log) kernel module Virtualbox muncul error

/tmp/vbox.0/r0drv/linux/memobj-r0drv-linux.c: In function ‘rtR0MemObjLinuxVMap’:
/tmp/vbox.0/r0drv/linux/memobj-r0drv-linux.c:560:34: error: implicit declaration of function ‘alloc_vm_area’ [-Werror=implicit-function-declaration]
  560 |                 pMemLnx->pArea = alloc_vm_area(pMemLnx->Core.cb, papPtes); /* Note! pArea->nr_pages is not set. */
      |                                  ^~~~~~~~~~~~~
/tmp/vbox.0/r0drv/linux/memobj-r0drv-linux.c:560:32: warning: assignment to ‘struct vm_struct *’ from ‘int’ makes pointer from integer without a cast [-Wint-conversion]
  560 |                 pMemLnx->pArea = alloc_vm_area(pMemLnx->Core.cb, papPtes); /* Note! pArea->nr_pages is not set. */
      |                                ^
   ./tools/objtool/objtool orc generate  --module --no-fp --retpoline --uaccess /tmp/vbox.0/r0drv/linux/memuserkernel-r0drv-linux.o
/tmp/vbox.0/r0drv/linux/memuserkernel-r0drv-linux.o: warning: objtool: VBoxHost_RTR0MemKernelCopyTo()+0x13: redundant CLD
/tmp/vbox.0/r0drv/linux/memuserkernel-r0drv-linux.o: warning: objtool: VBoxHost_RTR0MemKernelCopyFrom()+0x13: redundant CLD
  gcc -Wp,-MMD,/tmp/vbox.0/r0drv/linux/.process-r0drv-linux.o.d  -nostdinc -isystem /usr/lib/gcc/x86_64-redhat-linux/10/include -I./arch/x86/include -I./arch/x86/include/generated  -I./include -I./arch/x86/incl>
   ./tools/objtool/objtool orc generate  --module --no-fp --retpoline --uaccess /tmp/vbox.0/r0drv/linux/mpnotification-r0drv-linux.o
  gcc -Wp,-MMD,/tmp/vbox.0/r0drv/linux/.rtStrFormatKernelAddress-r0drv-linux.o.d  -nostdinc -isystem /usr/lib/gcc/x86_64-redhat-linux/10/include -I./arch/x86/include -I./arch/x86/include/generated  -I./include >
cc1: some warnings being treated as errors

Solusi VirtualBox untuk Kernel 5.10

Solusinya adalah menggunakan VirtualBox 6.1.18 yang bisa di download dari virtualbox.org

Disini saya menggunakan Fedora 32, caranya sama untuk Debian atau Ubuntu tinggal disesuaikan nama file yang di download

Download VirtualBox dan Extension Pack

wget https://download.virtualbox.org/virtualbox/6.1.18/VirtualBox-6.1-6.1.18_142142_fedora32-1.x86_64.rpm 
wget https://download.virtualbox.org/virtualbox/6.1.18/Oracle_VM_VirtualBox_Extension_Pack-6.1.18.vbox-extpack

Install VirtualBox dengan

sudo dnf install ./VirtualBox-6.1-6.1.18_142142_fedora32-1.x86_64.rpm
# ubuntu/debian ganti jadi
sudo apt install ./VirtualBox-6.1-6.1.18_142142_fedora32-1.x86_64.rpm

Install VirtualBox Extention Pack

echo y | sudo vboxmanage extpack install Oracle_VM_VirtualBox_Extension_Pack-6.1.18.vbox-extpack --accept-license=yes

setelah selesai VirtualBox bisa digunakan kembali.

Leave a comment

Your email address will not be published. Required fields are marked *