Files
ports/extra/virtualbox
2018-01-09 21:49:40 +08:00
..
2017-11-14 14:02:57 +08:00
2017-11-18 17:59:21 +08:00
2017-11-14 14:02:57 +08:00
2017-11-14 14:02:57 +08:00
2018-01-09 21:49:40 +08:00

  Upgrading a kernel should not affect external modules. Modules which are
  included in the kernel are installed in: /lib/modules/$(KERNELRELEASE)/kernel
  And external modules are installed in: /lib/modules/$(KERNELRELEASE)/extra

  Anyway if you want to compile and install virtualbox modules again you have
  some alternatives:
  # make -C /opt/VirtualBox/src/vboxhost \
    MODULE_DIR=/lib/modules/$(uname -r)/extra install

  Or if you want to an specific kernel version (for example: 4.1.8)
  # make -C /opt/VirtualBox/src/vboxhost \
    KERN_DIR=/usr/src/linux-4.1.8 \
    MODULE_DIR=/lib/modules/4.1.8/extra install

  For modules load on boot add this into MODULES array in /etc/rc.conf
    vboxdrv
    vboxnetadp
    vboxnetflt
    vboxpci