On Sun, 05 Apr 2020 01:55:13 +1000 "Michael D. Setzer II via users" wrote:
Does a simple "modprobe vboxdrv" also fails ?
# modprobe vboxdrv modprobe: ERROR: could not insert 'vboxdrv': Operation not permitted
This happens if you are not root. Is it the case?
Am root (su) when done. Ran command with strace, and it ends with this? openat(AT_FDCWD, "/sys/module/vboxdrv/initstate", O_RDONLY|O_CLOEXEC) = -1 ENOENT (No such file or directory) stat("/sys/module/vboxdrv", 0x7ffffbbe9ac0) = -1 ENOENT (No such file or directory) openat(AT_FDCWD, "/sys/module/vboxdrv/initstate", O_RDONLY|O_CLOEXEC) = -1 ENOENT (No such file or directory) stat("/sys/module/vboxdrv", 0x7ffffbbe9ac0) = -1 ENOENT (No such file or directory) openat(AT_FDCWD, "/lib/modules/5.5.13-200.fc31.x86_64/extra/VirtualBox/vboxdrv.ko", O_RDONLY|O_CLOEXEC) = 3 read(3, "\177ELF\2\1", 6) = 6 lseek(3, 0, SEEK_SET) = 0 fstat(3, {st_mode=S_IFREG|0644, st_size=731744, ...}) = 0 mmap(NULL, 731744, PROT_READ, MAP_PRIVATE, 3, 0) = 0x7fc9e915f000 finit_module(3, "", 0) = -1 EPERM (Operation not permitted) write(2, "modprobe: ERROR: could not inser"..., 69modprobe: ERROR: could not insert 'vboxdrv': Operation not permitted ) = 69 munmap(0x7fc9e915f000, 731744) = 0 close(3) = 0 munmap(0x7fc9e93b2000, 577066) = 0 munmap(0x7fc9e92a3000, 1109184) = 0 munmap(0x7fc9e9212000, 593336) = 0 munmap(0x7fc9e9995000, 10752) = 0 exit_group(1) = ? +++ exited with 1 +++
So, it seems to be looking for directory and files that don't exist. sys does not show write access for root, but that is the same for my Fedora 30 notebook that is running VirtualBox with no issue.
Thanks for the time. Is 3:10am here in Guam, so going to bed..
# modinfo vboxdrv filename:
OK
Also, double check that the modules have been build with:
dnf list installed kmod-VirtualBox*
dnf list installed kmod-VirtualBox* Installed Packages kmod-VirtualBox.x86_64 6.1.4-3.fc31 @rpmfusion-free-updates kmod-VirtualBox-5.5.13-200.fc31.x86_64.x86_64 6.1.4-3.fc31 @@commandline
OK.
That shows also that you are using VirtualBox from rpmfusion like me.
-- francis