close

最近幫客戶處理系統的問題,遇到 VirtualBox 於 CentOS 8.3 上無法正常運作的問題。當啟動 VirtualBox 時,會出現錯誤訊息 "vboxclient the virtualbox kernel service is not running"。重新執行 /sbin/vboxconfig 則會出現下列訊息。 

[root@localhost ~]# /sbin/vboxconfig
vboxdrv.sh: Stopping VirtualBox services.
vboxdrv.sh: Starting VirtualBox services.
vboxdrv.sh: Building VirtualBox kernel modules.
vboxdrv.sh: failed: Look at /var/log/vbox-setup.log to find out what went wrong.

There were problems setting up VirtualBox.  To re-start the set-up process, run
  /sbin/vboxconfig
as root.  If your system is using EFI Secure Boot you may need to sign the
kernel modules (vboxdrv, vboxnetflt, vboxnetadp, vboxpci) before you can load
them. Please see your Linux system's documentation for more information.

/var/log/vbox-setup.log 的內容如下 : 

Building the main VirtualBox module.
Error building the module:
make V=1 CONFIG_MODULE_SIG= CONFIG_MODULE_SIG_ALL= -C /lib/modules/4.18.0-240.el8.x86_64/build M=/tmp/vbox.0 SRCROOT=/tmp/vbox.0 -j4 modules
make[1]: warning: -jN forced in submake: disabling jobserver mode.
Makefile:978: *** "Cannot generate ORC metadata for CONFIG_UNWINDER_ORC=y, please install libelf-dev, libelf-devel or elfutils-libelf-devel".  Stop.
make: *** [/tmp/vbox.0/Makefile-footer.gmk:114: vboxdrv] Error 2

這個檔案內容的重點,就是 "please install libelf-dev, libelf-devel". ( OS : 漏看這訊息,花了一天的時間。) 所以,只要執行下列指令,重新安裝該兩套件即可。

dnf install elfutils-devel elfutils-libelf-devel

軟硬體體設備:

  • HP Z2 G5 Workstation
  •  CentOS 8.3
  •  Virtualbox 6.18

Reference : JOELIA

arrow
arrow
    全站熱搜

    ccchiu 發表在 痞客邦 留言(0) 人氣()