Setelah update VirtualBox biasanya kita diminta untuk recompile modul kernel untuk VirtualBox dengan cara

/etc/init.d/vboxdrv setup

bila anda gagal menjalankan perintah tersebut, dengan error yang kurang memberi manfaat seperti dibawah ini

Stopping VirtualBox kernel modules                         [FAILED]
  (Cannot unload module vboxdrv)

Bila error tersebut di lewatkan dan anda langsung menjalankan VirtualBox guest maka akan muncul pesan error

Failed to open/create the internal network 'HostInterfaceNetworking-enp5s0' (VERR_SUPDRV_COMPONENT_NOT_FOUND). Failed to attach the network LUN (VERR_SUPDRV_COMPONENT_NOT_FOUND). One of the kernel modules was not successfully loaded. Make sure that no kernel modules from an older version of VirtualBox exist. Then try to recompile and reload the kernel modules by executing '/etc/init.d/vboxdrv setup' as root (VERR_SUPDRV_COMPONENT_NOT_FOUND)

Beberapa solusi untuk mengatasi masalah diatas

1. Pastikan tidak ada service VirtualBox yang jalan

ps axu | egrep -e 'VBox|vbox'

contoh output perintah diatas

jaranguda  25156  0.2  0.1 1041488 12108 ?       Sl   16:52   0:00 /usr/lib/virtualbox/vboxwebsrv --background
jaranguda  25159  0.0  0.0 211136  5948 ?        S    16:52   0:00 /usr/lib/virtualbox/VBoxXPCOMIPCD
jaranguda  25164  0.1  0.1 693648 10048 ?        Sl   16:52   0:00 /usr/lib/virtualbox/VBoxSVC --auto-shutdown
jaranguda  25237 95.3  0.8 1672408 62920 ?       Sl   16:54   1:08 /usr/lib/virtualbox/VBoxHeadless --comment Ubuntu --startvm 815d8106-87a0-4f68-be39-439a83bbea04 --vrde config
root     25362  0.0  0.0 108040   896 pts/0    S+   16:55   0:00 egrep --color=auto -e VBox|vbox

matikan semua service diatas, atau bisa juga dengan cara paksa

kill -9 $PID

ganti $PID dengan PID proses diatas. Lalu jalankan ulang proses

/etc/init.d/vboxdrv setup

2. Install kernel header dan devel

su -c "yum install kernel-devel kernel-headers dkms"

Restart komputer anda, lalu jalankan perintah

/etc/init.d/vboxdrv setup

bila masih gagal lanjut ke langkah 3

3. Export Kernel DIR

export KERN_DIR=/usr/src/kernels/`uname -r`

lalu jalankan

/etc/init.d/vboxdrv setup

Leave a comment

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