Issue installing VirtualBox

I did a fresh install of Manjaro today.
I installed VirtualBox following the Wiki:

sudo pacman -Syu virtualbox linux54-virtualbox-host-modules

When I got to

sudo vboxreload

I got

Unloading modules: 
Loading modules: modprobe: FATAL: Module vboxnetadp not found in directory /lib/modules/5.9.16-1-MANJARO
modprobe: FATAL: Module vboxnetflt not found in directory /lib/modules/5.9.16-1-MANJARO
modprobe: FATAL: Module vboxdrv not found in directory /lib/modules/5.9.16-1-MANJARO

After a reboot I still got the same error.
System info:

inxi -F
System:
  Host: shmuel-manjaro-xfce Kernel: 5.9.16-1-MANJARO x86_64 bits: 64 
  Desktop: Xfce 4.16.0 Distro: Manjaro Linux 
Machine:
  Type: Desktop Mobo: ASUSTeK model: PRIME B365M-A v: Rev X.0x 
  serial: <superuser required> UEFI: American Megatrends v: 1203 
  date: 10/10/2019 
CPU:
  Info: 8-Core model: Intel Core i7-9700 bits: 64 type: MCP L2 cache: 12 MiB 
  Speed: 4508 MHz min/max: 800/4700 MHz Core speeds (MHz): 1: 4508 2: 4442 
  3: 4511 4: 4439 5: 4498 6: 4510 7: 4597 8: 4597 
Graphics:
  Device-1: Intel UHD Graphics 630 driver: i915 v: kernel 
  Device-2: IMC Networks XHC Camera type: USB driver: uvcvideo 
  Display: x11 server: X.Org 1.20.10 driver: loaded: intel 
  unloaded: modesetting resolution: 1: 1920x1080~60Hz 2: 1920x1080~60Hz 
  OpenGL: renderer: Mesa Intel UHD Graphics 630 (CFL GT2) v: 4.6 Mesa 20.3.4 
Audio:
  Device-1: Intel 200 Series PCH HD Audio driver: snd_hda_intel 
  Device-2: JMTek LLC. USB PnP Audio Device type: USB 
  driver: hid-generic,snd-usb-audio,usbhid 
  Sound Server: ALSA v: k5.9.16-1-MANJARO 
Network:
  Device-1: Realtek RTL8111/8168/8411 PCI Express Gigabit Ethernet 
  driver: r8169 
  IF: enp3s0 state: up speed: 1000 Mbps duplex: full mac: a8:5e:45:e2:87:3c 
Bluetooth:
  Device-1: Cambridge Silicon Radio Bluetooth Dongle (HCI mode) type: USB 
  driver: btusb 
  Message: Required tool hciconfig not installed. Check --recommends 
Drives:
  Local Storage: total: 2.26 TiB used: 621.29 GiB (26.9%) 
  ID-1: /dev/sda vendor: Kingston model: SA400S37480G size: 447.13 GiB 
  ID-2: /dev/sdb vendor: Toshiba model: HDWD120 size: 1.82 TiB 
Partition:
  ID-1: / size: 64.81 GiB used: 15.67 GiB (24.2%) fs: ext4 dev: /dev/sda6 
  ID-2: /boot/efi size: 96 MiB used: 39.2 MiB (40.9%) fs: vfat 
  dev: /dev/sda2 
Swap:
  Alert: No Swap data was found. 
Sensors:
  System Temperatures: cpu: 29.8 C mobo: 27.8 C 
  Fan Speeds (RPM): N/A 
Info:
  Processes: 271 Uptime: 4m Memory: 15.5 GiB used: 2.47 GiB (15.9%) 
  Shell: Bash inxi: 3.3.00

Install the correct host modules for your kernel - list kernels

mhwd-kernel -li

Thanks.
I think the Wiki might be a little misleading. The way I read it, the given command will automatically install the right modules:
“To install VirtualBox and automatically install the kernel modules for your installed kernels enter the following command in the terminal:
$ sudo pacman -Syu virtualbox linux54-virtualbox-host-modules”
https://wiki.manjaro.org/index.php/VirtualBox#Install_VirtualBox

The wiki is not misleading - you are quoting out of context. The context reads

To install VirtualBox, you need to install the packages virtualbox and linux*-virtualbox-host-modules. The latter must match the version of the kernel you are running. To list what kernels is installed use mhwd (example)

$ mhwd-kernel -li
Currently running: 5.4.0-1-MANJARO (linux54)
The following kernels are installed in your system:

  • linux54

To install VirtualBox and automatically install the kernel modules for your installed kernels enter the following command in the terminal:

$ sudo pacman -Syu virtualbox linux54-virtualbox-host-modules

I have rephrased the paragraph and removed the word ‘automatically’.

This topic was automatically closed 15 days after the last reply. New replies are no longer allowed.