VirtualBox

Hi Team,
I have installed the virtualbox by following the steps from “https://discovery.endeavouros.com/applications/how-to-install-virtualbox/2021/03/” but unable to do the 5th step "sudo modprobe vboxdrv" getting the below error [vicky@vicky-dsktp sbin]$ sudo modprobe vboxdrv
modprobe: FATAL: Module vboxdrv not found in directory /lib/modules/5.15.82-1-lts

Then i continued to setup VM for macos. And when i executed the below command
VBoxManage modifyvm "macos12" --cpuidset 00000001 000106e5 00100800 0098e3fd bfebfbff

i am getting this error

[vicky@vicky-dsktp sbin]$ VBoxManage modifyvm "macos12" --cpuidset 00000001 000106e5 00100800 0098e3fd bfebfbff 
WARNING: The vboxdrv kernel module is not loaded. Either there is no module
         available for the current kernel (5.15.82-1-lts) or it failed to
         load. Please recompile the kernel module and install it by

           sudo /sbin/vboxconfig

         You will not be able to start VMs until this problem is fixed.
[vicky@vicky-dsktp sbin]$ 

As the warning message says that i should i run "sudo /sbin/vboxconfig", I tried executing it but getting the below error

[vicky@vicky-dsktp sbin]$ sudo /sbin/vboxconfig
sudo: /sbin/vboxconfig: command not found
[vicky@vicky-dsktp sbin]$ 

I need xcode for ios app development, so i am trying to run it via VirtualBox, need some help.

Do you have https://archlinux.org/packages/?name=virtualbox-host-modules-arch installed?

Install the package and reboot. Hopefully it will work after that.

:eye: https://wiki.archlinux.org/title/Virtualbox#Installation_steps_for_Arch_Linux_hosts

Also you might want to update your system before attepmting to install any other packages.

Latest linux-lts:

 pacman -Qi linux-lts
Name            : linux-lts
Version         : 5.15.83-1

Hi @pebcak,
I have updated the system and now the lts version is 5.15.83-1.

[vicky@vicky-dsktp ~]$ pacman -Qi linux-lts
Name            : linux-lts
Version         : 5.15.83-1

Also “virtualbox-host-modules-arch” is already installed. But still getting the same error.

[vicky@vicky-dsktp ~]$ VBoxManage modifyvm "macos12" --cpuidset 00000001 000106e5 00100800 0098e3fd bfebfbff
WARNING: The vboxdrv kernel module is not loaded. Either there is no module
         available for the current kernel (5.15.83-1-lts) or it failed to
         load. Please recompile the kernel module and install it by

           sudo /sbin/vboxconfig

         You will not be able to start VMs until this problem is fixed.
[vicky@vicky-dsktp ~]$ sudo /sbin/vboxconfig
[sudo] password for vicky: 
sudo: /sbin/vboxconfig: command not found
[vicky@vicky-dsktp ~]$

Do you have linux-lts-headers installed?

If you don’t, please install it and reboot.
If you do, I’m afraid I am not sure what is failing.
Hopefully other users will chime in with more suggestions.

Yes “linux-lts-headers” is installed already.

1 Like

@Vicky

I’m sorry for the mistake. For linux-lts you would need virtualbox-host-dkms.

3 Likes

Its Working !..
Thanks @pebcak

1 Like

You are welcome! Great news that you got it working!

:enos_flag: :wave:t5:

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