Arch Linux: bash: /etc/init.d/vboxdrv: No such file or directory


After a kernel upgrade, Virtualbox instructs you to run “/etc/init.d/vboxdrv setup” as root. When you try this on Arch, you get an error message, however:

bash: /etc/init.d/vboxdrv: No such file or directory

Turns out that on Arch, there’s a different path to follow. As root, do:

/usr/bin/vbox_build_module

Followed by:

modprobe -r vboxdrv

And you should be set! Still, if you’re not, please don’t hold me responsible. Everything you do as root is your own responsibility!

6 Responses to “Arch Linux: bash: /etc/init.d/vboxdrv: No such file or directory”


  1. 1 emptinger

    Hi!

    Many thanks to you. The modprobe finally did the job for me!

    :)

  2. 2 survietamine

    hi,
    I installed this driver from package and don’t have /usr/bin/vbox_build_module file on my system.

    But Virtualbox works fine.

    Did I miss a package ?
    I have these :

    # pacman -Qs virtualbox
    local/virtualbox-modules 3.0.6-1
    Kernel modules for VirtualBox
    local/virtualbox-ose 3.0.6-1
    Powerful x86 virtualization for enterprise as well as home use (Open Source Edition)
    local/virtualbox-ose-additions 3.0.6-1
    Guest Additions for VirtualBox (Open Source Edition)
    local/virtualbox-ose-additions-modules 3.0.6-1
    Kernel modules for VirtualBox Guest Additions

    ——————

    # modprobe -l | grep vbo
    misc/vboxnetflt.ko
    misc/vboxvfs.ko
    misc/vboxdrv.ko
    misc/vboxnetadp.ko
    misc/vboxadd.ko

    $ lsmod | grep vbox
    vboxnetflt 96424 0
    vboxnetadp 88744 0
    vboxdrv 134440 2 vboxnetflt

    I cannot modprobe vboxvfs, vboxadd :
    # modprobe vboxvfs
    FATAL: Error inserting vboxvfs (/lib/modules/2.6.30-ARCH/misc/vboxvfs.ko): No such device
    # modprobe vboxadd
    FATAL: Error inserting vboxadd (/lib/modules/2.6.30-ARCH/misc/vboxadd.ko): No such device

    That’s not too important for me, the important thing is that i get “bridge” mode operational for my virtual machines since vboxnetflt has been loaded successfully.

    If you have any idea, thanks a lot, i am not to ArchLinux.

  3. 3 jefke

    Hi Survietamine,

    If Virtualbox works fine, then I guess you’re ok, but I don’t think I can help you with the rest of your question: I think you are running the open source edition (ose), while I’m using the normal version myself. Maybe that’s why you don’t have vbox_build_module?

    Cheers

  4. 4 survietamine

    hello jefke,
    and thanks for your answer.

    By “i am not to ArchLinux.”, i meant “i am new to ArchLinux”.
    Did you installed Virtualbox from sources or another repository ?
    I didn’t configure AUR.
    As I wrote, Additions are not so important to me because I Still can configure resolution under XP or linux virtual machines.
    Have a good day.

  5. 5 jefke

    Hi survietamine,

    It’s been a while since I installed it, but if I remember correctly I used the archlinuxfr repository mentioned in wiki.archlinux.org/index.php/VirtualBox

    I use the binary version mainly for its usb support

  6. 6 Balwinder S Dheeman

    I think, it is packager and, or PKGBUILD maintainer’s fault who forget to add a default config file /etc/conf.d/vboxdrv and an init script /etc/rc.d/vboxdrv which might help solving auto loading of requisite modules.

    Try, http://cto.homelinux.net/pub/Archie/virtualbox-ose.tar.xz

    You need to add vboxdrv to your DAEMONS arrary in /etc/rc.conf also.

Leave a Reply