Senin, 18 Maret 2019

VirtualBox error after last (Ubuntu) Software Update





















0






























First off, this is not the same problem explained in other posts (AFAIK), where the solution is running another command or find where vboxconfig is located.




  • VirtualBox version: 5.2.26


  • Ubuntu version: 16.04


  • Updates which have "broken" something: those between last week and today (2019/03/18)



I ran Ubuntu Software Updater this morning, after turning on the computer. Afterwards I tried to launch a Virtual Box machine (version installed via .deb, not the Ubuntu Software Center one) and got that famous error:



    Kernel driver not installed (rc=-1908)



The VirtualBox Linux kernel driver (vboxdrv) is either not loaded or there is a permission problem with /dev/vboxdrv. Please reinstall the kernel module by executing



'/sbin/vboxconfig'



as root.



where: suplibOsInit what: 3 VERR_VM_DRIVER_NOT_INSTALLED (-1908) - The support driver is not installed. On linux, open returned ENOENT.



After reading about the problem and understanding why should I do it, I executed it:



$ sudo /sbin/vboxconfig



vboxdrv.sh: Stopping VirtualBox services.

vboxdrv.sh: Starting VirtualBox services.

vboxdrv.sh: Building VirtualBox kernel modules.

vboxdrv.sh: failed: Look at /var/log/vbox-setup.log to find out what went wrong.



Reading the .log, I see that the problem seems to be related with the "get_user_pages" function, and at this point I honestly have no idea how to solve it.



Building the main VirtualBox module.

Error building the module:

make V=1 CONFIG_MODULE_SIG= -C /lib/modules/4.4.0-143-generic/build SUBDIRS=/tmp/vbox.0 SRCROOT=/tmp/vbox.0 -j8 modules

make[1]: warning: -jN forced in submake: disabling jobserver mode.

mkdir -p /tmp/vbox.0/.tmp_versions ; rm -f /tmp/vbox.0/.tmp_versions/*

make -f ./scripts/Makefile.build obj=/tmp/vbox.0

[...]

[...]

[...]

/tmp/vbox.0/r0drv/linux/memobj-r0drv-linux.c: In function ‘rtR0MemObjNativeLockUser’:

/tmp/vbox.0/r0drv/linux/memobj-r0drv-linux.c:1122:33: warning: passing argument 6 of ‘get_user_pages’ makes pointer from integer without a cast [-Wint-conversion]

fWrite, /* force write access. */

^

In file included from /tmp/vbox.0/r0drv/linux/the-linux-kernel.h:98:0,

from /tmp/vbox.0/r0drv/linux/memobj-r0drv-linux.c:31:

include/linux/mm.h:1222:6: note: expected ‘struct page **’ but argument is of type ‘int’

long get_user_pages(struct task_struct *tsk, struct mm_struct *mm,

^

/tmp/vbox.0/r0drv/linux/memobj-r0drv-linux.c:1124:33: warning: passing argument 7 of ‘get_user_pages’ from incompatible pointer type [-Wincompatible-pointer-types]

&pMemLnx->apPages[0], /* Page array. */

^

In file included from /tmp/vbox.0/r0drv/linux/the-linux-kernel.h:98:0,

from /tmp/vbox.0/r0drv/linux/memobj-r0drv-linux.c:31:

include/linux/mm.h:1222:6: note: expected ‘struct vm_area_struct **’ but argument is of type ‘struct page **’

long get_user_pages(struct task_struct *tsk, struct mm_struct *mm,

^

/tmp/vbox.0/r0drv/linux/memobj-r0drv-linux.c:1112:18: error: too many arguments to function ‘get_user_pages’

rc = get_user_pages(pTask, /* Task for fault accounting. */

^

In file included from /tmp/vbox.0/r0drv/linux/the-linux-kernel.h:98:0,

from /tmp/vbox.0/r0drv/linux/memobj-r0drv-linux.c:31:

include/linux/mm.h:1222:6: note: declared here

long get_user_pages(struct task_struct *tsk, struct mm_struct *mm,

^

gcc -Wp,-MD,/tmp/vbox.0/r0drv/linux/.mpnotification-r0drv-linux.o.d -nostdinc -isystem /usr/lib/gcc/x86_64-linux-gnu/5/include -I./arch/x86/include -Iarch/x86/include/generated/uapi -Iarch/x86/include/generated -Iinclude -I./arch/x86/include/uapi -Iarch/x86/include/generated/uapi -I./include/uapi -Iinclude/generated/uapi -include ./include/linux/kconfig.h -Iubuntu/include -D__KERNEL__ -fno-pie -Wall -Wundef -Wstrict-prototypes -Wno-trigraphs -fno-strict-aliasing -fno-common -Werror-implicit-function-declaration -Wno-format-security -std=gnu89 -fno-PIE -fno-pie -no-pie -mno-sse -mno-mmx -mno-sse2 -mno-3dnow -mno-avx -m64 -falign-jumps=1 -falign-loops=1 -mno-80387 -mno-fp-ret-in-387 -mpreferred-stack-boundary=3 -mskip-rax-setup -mtune=generic -mno-red-zone -mcmodel=kernel -funit-at-a-time -maccumulate-outgoing-args -DCONFIG_X86_X32_ABI -DCONFIG_AS_CFI=1 -DCONFIG_AS_CFI_SIGNAL_FRAME=1 -DCONFIG_AS_CFI_SECTIONS=1 -DCONFIG_AS_FXSAVEQ=1 -DCONFIG_AS_SSSE3=1 -DCONFIG_AS_CRC32=1 -DCONFIG_AS_AVX=1 -DCONFIG_AS_AVX2=1 -DCONFIG_AS_SHA1_NI=1 -DCONFIG_AS_SHA256_NI=1 -pipe -Wno-sign-compare -fno-asynchronous-unwind-tables -mindirect-branch=thunk-extern -mindirect-branch-register -DRETPOLINE -fno-delete-null-pointer-checks -Wno-maybe-uninitialized -O2 --param=allow-store-data-races=0 -DCC_HAVE_ASM_GOTO -Wframe-larger-than=1024 -fstack-protector-strong -Wno-unused-but-set-variable -fno-omit-frame-pointer -fno-optimize-sibling-calls -fno-var-tracking-assignments -pg -mfentry -DCC_USING_FENTRY -Wdeclaration-after-statement -Wno-pointer-sign -fno-strict-overflow -fno-merge-all-constants -fmerge-constants -fno-stack-check -fconserve-stack -Werror=implicit-int -Werror=strict-prototypes -Werror=date-time -include /tmp/vbox.0/include/VBox/SUPDrvMangling.h -fno-omit-frame-pointer -fno-pie -I/lib/modules/4.4.0-143-generic/build/include -I/tmp/vbox.0/ -I/tmp/vbox.0/include -I/tmp/vbox.0/r0drv/linux -D__KERNEL__ -DMODULE -DRT_OS_LINUX -DIN_RING0 -DIN_RT_R0 -DIN_SUP_R0 -DVBOX -DRT_WITH_VBOX -DVBOX_WITH_HARDENING -DSUPDRV_WITH_RELEASE_LOGGER -Wno-declaration-after-statement -DCONFIG_VBOXDRV_AS_MISC -DRT_ARCH_AMD64 -DVBOX_WITH_64_BITS_GUESTS -DMODULE -D"KBUILD_STR(s)=#s" -D"KBUILD_BASENAME=KBUILD_STR(mpnotification_r0drv_linux)" -D"KBUILD_MODNAME=KBUILD_STR(vboxdrv)" -c -o /tmp/vbox.0/r0drv/linux/.tmp_mpnotification-r0drv-linux.o /tmp/vbox.0/r0drv/linux/mpnotification-r0drv-linux.c

scripts/Makefile.build:285: recipe for target '/tmp/vbox.0/r0drv/linux/memobj-r0drv-linux.o' failed

make[2]: *** [/tmp/vbox.0/r0drv/linux/memobj-r0drv-linux.o] Error 1

make[2]: *** Waiting for unfinished jobs....

if [ "-pg" = "-pg" ]; then if [ /tmp/vbox.0/r0drv/linux/initterm-r0drv-linux.o != "scripts/mod/empty.o" ]; then ./scripts/recordmcount "/tmp/vbox.0/r0drv/linux/initterm-r0drv-linux.o"; fi; fi;

if [ "-pg" = "-pg" ]; then if [ /tmp/vbox.0/SUPDrv.o != "scripts/mod/empty.o" ]; then ./scripts/recordmcount "/tmp/vbox.0/SUPDrv.o"; fi; fi;

if [ "-pg" = "-pg" ]; then if [ /tmp/vbox.0/r0drv/linux/assert-r0drv-linux.o != "scripts/mod/empty.o" ]; then ./scripts/recordmcount "/tmp/vbox.0/r0drv/linux/assert-r0drv-linux.o"; fi; fi;

if [ "-pg" = "-pg" ]; then if [ /tmp/vbox.0/r0drv/linux/alloc-r0drv-linux.o != "scripts/mod/empty.o" ]; then ./scripts/recordmcount "/tmp/vbox.0/r0drv/linux/alloc-r0drv-linux.o"; fi; fi;

if [ "-pg" = "-pg" ]; then if [ /tmp/vbox.0/r0drv/linux/memuserkernel-r0drv-linux.o != "scripts/mod/empty.o" ]; then ./scripts/recordmcount "/tmp/vbox.0/r0drv/linux/memuserkernel-r0drv-linux.o"; fi; fi;

if [ "-pg" = "-pg" ]; then if [ /tmp/vbox.0/r0drv/linux/mpnotification-r0drv-linux.o != "scripts/mod/empty.o" ]; then ./scripts/recordmcount "/tmp/vbox.0/r0drv/linux/mpnotification-r0drv-linux.o"; fi; fi;

if [ "-pg" = "-pg" ]; then if [ /tmp/vbox.0/r0drv/linux/mp-r0drv-linux.o != "scripts/mod/empty.o" ]; then ./scripts/recordmcount "/tmp/vbox.0/r0drv/linux/mp-r0drv-linux.o"; fi; fi;

Makefile:1454: recipe for target '_module_/tmp/vbox.0' failed

make[1]: *** [_module_/tmp/vbox.0] Error 2

/tmp/vbox.0/Makefile.include.footer:101: recipe for target 'vboxdrv' failed

make: *** [vboxdrv] Error 2



I have already tried every solution for similar issues with this error message but none works for me.



Anyone has had similar problems after last Ubuntu updates?



UPDATE:
I have completely uninstalled VirtualBox, restarted the system, installed VirtualBox again, and still the very same error.

















share|improve this question























































    0






























    First off, this is not the same problem explained in other posts (AFAIK), where the solution is running another command or find where vboxconfig is located.




    • VirtualBox version: 5.2.26


    • Ubuntu version: 16.04


    • Updates which have "broken" something: those between last week and today (2019/03/18)



    I ran Ubuntu Software Updater this morning, after turning on the computer. Afterwards I tried to launch a Virtual Box machine (version installed via .deb, not the Ubuntu Software Center one) and got that famous error:



        Kernel driver not installed (rc=-1908)



    The VirtualBox Linux kernel driver (vboxdrv) is either not loaded or there is a permission problem with /dev/vboxdrv. Please reinstall the kernel module by executing



    '/sbin/vboxconfig'



    as root.



    where: suplibOsInit what: 3 VERR_VM_DRIVER_NOT_INSTALLED (-1908) - The support driver is not installed. On linux, open returned ENOENT.



    After reading about the problem and understanding why should I do it, I executed it:



    $ sudo /sbin/vboxconfig



    vboxdrv.sh: Stopping VirtualBox services.

    vboxdrv.sh: Starting VirtualBox services.

    vboxdrv.sh: Building VirtualBox kernel modules.

    vboxdrv.sh: failed: Look at /var/log/vbox-setup.log to find out what went wrong.



    Reading the .log, I see that the problem seems to be related with the "get_user_pages" function, and at this point I honestly have no idea how to solve it.



    Building the main VirtualBox module.

    Error building the module:

    make V=1 CONFIG_MODULE_SIG= -C /lib/modules/4.4.0-143-generic/build SUBDIRS=/tmp/vbox.0 SRCROOT=/tmp/vbox.0 -j8 modules

    make[1]: warning: -jN forced in submake: disabling jobserver mode.

    mkdir -p /tmp/vbox.0/.tmp_versions ; rm -f /tmp/vbox.0/.tmp_versions/*

    make -f ./scripts/Makefile.build obj=/tmp/vbox.0

    [...]

    [...]

    [...]

    /tmp/vbox.0/r0drv/linux/memobj-r0drv-linux.c: In function ‘rtR0MemObjNativeLockUser’:

    /tmp/vbox.0/r0drv/linux/memobj-r0drv-linux.c:1122:33: warning: passing argument 6 of ‘get_user_pages’ makes pointer from integer without a cast [-Wint-conversion]

    fWrite, /* force write access. */

    ^

    In file included from /tmp/vbox.0/r0drv/linux/the-linux-kernel.h:98:0,

    from /tmp/vbox.0/r0drv/linux/memobj-r0drv-linux.c:31:

    include/linux/mm.h:1222:6: note: expected ‘struct page **’ but argument is of type ‘int’

    long get_user_pages(struct task_struct *tsk, struct mm_struct *mm,

    ^

    /tmp/vbox.0/r0drv/linux/memobj-r0drv-linux.c:1124:33: warning: passing argument 7 of ‘get_user_pages’ from incompatible pointer type [-Wincompatible-pointer-types]

    &pMemLnx->apPages[0], /* Page array. */

    ^

    In file included from /tmp/vbox.0/r0drv/linux/the-linux-kernel.h:98:0,

    from /tmp/vbox.0/r0drv/linux/memobj-r0drv-linux.c:31:

    include/linux/mm.h:1222:6: note: expected ‘struct vm_area_struct **’ but argument is of type ‘struct page **’

    long get_user_pages(struct task_struct *tsk, struct mm_struct *mm,

    ^

    /tmp/vbox.0/r0drv/linux/memobj-r0drv-linux.c:1112:18: error: too many arguments to function ‘get_user_pages’

    rc = get_user_pages(pTask, /* Task for fault accounting. */

    ^

    In file included from /tmp/vbox.0/r0drv/linux/the-linux-kernel.h:98:0,

    from /tmp/vbox.0/r0drv/linux/memobj-r0drv-linux.c:31:

    include/linux/mm.h:1222:6: note: declared here

    long get_user_pages(struct task_struct *tsk, struct mm_struct *mm,

    ^

    gcc -Wp,-MD,/tmp/vbox.0/r0drv/linux/.mpnotification-r0drv-linux.o.d -nostdinc -isystem /usr/lib/gcc/x86_64-linux-gnu/5/include -I./arch/x86/include -Iarch/x86/include/generated/uapi -Iarch/x86/include/generated -Iinclude -I./arch/x86/include/uapi -Iarch/x86/include/generated/uapi -I./include/uapi -Iinclude/generated/uapi -include ./include/linux/kconfig.h -Iubuntu/include -D__KERNEL__ -fno-pie -Wall -Wundef -Wstrict-prototypes -Wno-trigraphs -fno-strict-aliasing -fno-common -Werror-implicit-function-declaration -Wno-format-security -std=gnu89 -fno-PIE -fno-pie -no-pie -mno-sse -mno-mmx -mno-sse2 -mno-3dnow -mno-avx -m64 -falign-jumps=1 -falign-loops=1 -mno-80387 -mno-fp-ret-in-387 -mpreferred-stack-boundary=3 -mskip-rax-setup -mtune=generic -mno-red-zone -mcmodel=kernel -funit-at-a-time -maccumulate-outgoing-args -DCONFIG_X86_X32_ABI -DCONFIG_AS_CFI=1 -DCONFIG_AS_CFI_SIGNAL_FRAME=1 -DCONFIG_AS_CFI_SECTIONS=1 -DCONFIG_AS_FXSAVEQ=1 -DCONFIG_AS_SSSE3=1 -DCONFIG_AS_CRC32=1 -DCONFIG_AS_AVX=1 -DCONFIG_AS_AVX2=1 -DCONFIG_AS_SHA1_NI=1 -DCONFIG_AS_SHA256_NI=1 -pipe -Wno-sign-compare -fno-asynchronous-unwind-tables -mindirect-branch=thunk-extern -mindirect-branch-register -DRETPOLINE -fno-delete-null-pointer-checks -Wno-maybe-uninitialized -O2 --param=allow-store-data-races=0 -DCC_HAVE_ASM_GOTO -Wframe-larger-than=1024 -fstack-protector-strong -Wno-unused-but-set-variable -fno-omit-frame-pointer -fno-optimize-sibling-calls -fno-var-tracking-assignments -pg -mfentry -DCC_USING_FENTRY -Wdeclaration-after-statement -Wno-pointer-sign -fno-strict-overflow -fno-merge-all-constants -fmerge-constants -fno-stack-check -fconserve-stack -Werror=implicit-int -Werror=strict-prototypes -Werror=date-time -include /tmp/vbox.0/include/VBox/SUPDrvMangling.h -fno-omit-frame-pointer -fno-pie -I/lib/modules/4.4.0-143-generic/build/include -I/tmp/vbox.0/ -I/tmp/vbox.0/include -I/tmp/vbox.0/r0drv/linux -D__KERNEL__ -DMODULE -DRT_OS_LINUX -DIN_RING0 -DIN_RT_R0 -DIN_SUP_R0 -DVBOX -DRT_WITH_VBOX -DVBOX_WITH_HARDENING -DSUPDRV_WITH_RELEASE_LOGGER -Wno-declaration-after-statement -DCONFIG_VBOXDRV_AS_MISC -DRT_ARCH_AMD64 -DVBOX_WITH_64_BITS_GUESTS -DMODULE -D"KBUILD_STR(s)=#s" -D"KBUILD_BASENAME=KBUILD_STR(mpnotification_r0drv_linux)" -D"KBUILD_MODNAME=KBUILD_STR(vboxdrv)" -c -o /tmp/vbox.0/r0drv/linux/.tmp_mpnotification-r0drv-linux.o /tmp/vbox.0/r0drv/linux/mpnotification-r0drv-linux.c

    scripts/Makefile.build:285: recipe for target '/tmp/vbox.0/r0drv/linux/memobj-r0drv-linux.o' failed

    make[2]: *** [/tmp/vbox.0/r0drv/linux/memobj-r0drv-linux.o] Error 1

    make[2]: *** Waiting for unfinished jobs....

    if [ "-pg" = "-pg" ]; then if [ /tmp/vbox.0/r0drv/linux/initterm-r0drv-linux.o != "scripts/mod/empty.o" ]; then ./scripts/recordmcount "/tmp/vbox.0/r0drv/linux/initterm-r0drv-linux.o"; fi; fi;

    if [ "-pg" = "-pg" ]; then if [ /tmp/vbox.0/SUPDrv.o != "scripts/mod/empty.o" ]; then ./scripts/recordmcount "/tmp/vbox.0/SUPDrv.o"; fi; fi;

    if [ "-pg" = "-pg" ]; then if [ /tmp/vbox.0/r0drv/linux/assert-r0drv-linux.o != "scripts/mod/empty.o" ]; then ./scripts/recordmcount "/tmp/vbox.0/r0drv/linux/assert-r0drv-linux.o"; fi; fi;

    if [ "-pg" = "-pg" ]; then if [ /tmp/vbox.0/r0drv/linux/alloc-r0drv-linux.o != "scripts/mod/empty.o" ]; then ./scripts/recordmcount "/tmp/vbox.0/r0drv/linux/alloc-r0drv-linux.o"; fi; fi;

    if [ "-pg" = "-pg" ]; then if [ /tmp/vbox.0/r0drv/linux/memuserkernel-r0drv-linux.o != "scripts/mod/empty.o" ]; then ./scripts/recordmcount "/tmp/vbox.0/r0drv/linux/memuserkernel-r0drv-linux.o"; fi; fi;

    if [ "-pg" = "-pg" ]; then if [ /tmp/vbox.0/r0drv/linux/mpnotification-r0drv-linux.o != "scripts/mod/empty.o" ]; then ./scripts/recordmcount "/tmp/vbox.0/r0drv/linux/mpnotification-r0drv-linux.o"; fi; fi;

    if [ "-pg" = "-pg" ]; then if [ /tmp/vbox.0/r0drv/linux/mp-r0drv-linux.o != "scripts/mod/empty.o" ]; then ./scripts/recordmcount "/tmp/vbox.0/r0drv/linux/mp-r0drv-linux.o"; fi; fi;

    Makefile:1454: recipe for target '_module_/tmp/vbox.0' failed

    make[1]: *** [_module_/tmp/vbox.0] Error 2

    /tmp/vbox.0/Makefile.include.footer:101: recipe for target 'vboxdrv' failed

    make: *** [vboxdrv] Error 2



    I have already tried every solution for similar issues with this error message but none works for me.



    Anyone has had similar problems after last Ubuntu updates?



    UPDATE:
    I have completely uninstalled VirtualBox, restarted the system, installed VirtualBox again, and still the very same error.

















    share|improve this question



















































      0






















      0














      0












      First off, this is not the same problem explained in other posts (AFAIK), where the solution is running another command or find where vboxconfig is located.




      • VirtualBox version: 5.2.26


      • Ubuntu version: 16.04


      • Updates which have "broken" something: those between last week and today (2019/03/18)



      I ran Ubuntu Software Updater this morning, after turning on the computer. Afterwards I tried to launch a Virtual Box machine (version installed via .deb, not the Ubuntu Software Center one) and got that famous error:



          Kernel driver not installed (rc=-1908)



      The VirtualBox Linux kernel driver (vboxdrv) is either not loaded or there is a permission problem with /dev/vboxdrv. Please reinstall the kernel module by executing



      '/sbin/vboxconfig'



      as root.



      where: suplibOsInit what: 3 VERR_VM_DRIVER_NOT_INSTALLED (-1908) - The support driver is not installed. On linux, open returned ENOENT.



      After reading about the problem and understanding why should I do it, I executed it:



      $ sudo /sbin/vboxconfig



      vboxdrv.sh: Stopping VirtualBox services.

      vboxdrv.sh: Starting VirtualBox services.

      vboxdrv.sh: Building VirtualBox kernel modules.

      vboxdrv.sh: failed: Look at /var/log/vbox-setup.log to find out what went wrong.



      Reading the .log, I see that the problem seems to be related with the "get_user_pages" function, and at this point I honestly have no idea how to solve it.



      Building the main VirtualBox module.

      Error building the module:

      make V=1 CONFIG_MODULE_SIG= -C /lib/modules/4.4.0-143-generic/build SUBDIRS=/tmp/vbox.0 SRCROOT=/tmp/vbox.0 -j8 modules

      make[1]: warning: -jN forced in submake: disabling jobserver mode.

      mkdir -p /tmp/vbox.0/.tmp_versions ; rm -f /tmp/vbox.0/.tmp_versions/*

      make -f ./scripts/Makefile.build obj=/tmp/vbox.0

      [...]

      [...]

      [...]

      /tmp/vbox.0/r0drv/linux/memobj-r0drv-linux.c: In function ‘rtR0MemObjNativeLockUser’:

      /tmp/vbox.0/r0drv/linux/memobj-r0drv-linux.c:1122:33: warning: passing argument 6 of ‘get_user_pages’ makes pointer from integer without a cast [-Wint-conversion]

      fWrite, /* force write access. */

      ^

      In file included from /tmp/vbox.0/r0drv/linux/the-linux-kernel.h:98:0,

      from /tmp/vbox.0/r0drv/linux/memobj-r0drv-linux.c:31:

      include/linux/mm.h:1222:6: note: expected ‘struct page **’ but argument is of type ‘int’

      long get_user_pages(struct task_struct *tsk, struct mm_struct *mm,

      ^

      /tmp/vbox.0/r0drv/linux/memobj-r0drv-linux.c:1124:33: warning: passing argument 7 of ‘get_user_pages’ from incompatible pointer type [-Wincompatible-pointer-types]

      &pMemLnx->apPages[0], /* Page array. */

      ^

      In file included from /tmp/vbox.0/r0drv/linux/the-linux-kernel.h:98:0,

      from /tmp/vbox.0/r0drv/linux/memobj-r0drv-linux.c:31:

      include/linux/mm.h:1222:6: note: expected ‘struct vm_area_struct **’ but argument is of type ‘struct page **’

      long get_user_pages(struct task_struct *tsk, struct mm_struct *mm,

      ^

      /tmp/vbox.0/r0drv/linux/memobj-r0drv-linux.c:1112:18: error: too many arguments to function ‘get_user_pages’

      rc = get_user_pages(pTask, /* Task for fault accounting. */

      ^

      In file included from /tmp/vbox.0/r0drv/linux/the-linux-kernel.h:98:0,

      from /tmp/vbox.0/r0drv/linux/memobj-r0drv-linux.c:31:

      include/linux/mm.h:1222:6: note: declared here

      long get_user_pages(struct task_struct *tsk, struct mm_struct *mm,

      ^

      gcc -Wp,-MD,/tmp/vbox.0/r0drv/linux/.mpnotification-r0drv-linux.o.d -nostdinc -isystem /usr/lib/gcc/x86_64-linux-gnu/5/include -I./arch/x86/include -Iarch/x86/include/generated/uapi -Iarch/x86/include/generated -Iinclude -I./arch/x86/include/uapi -Iarch/x86/include/generated/uapi -I./include/uapi -Iinclude/generated/uapi -include ./include/linux/kconfig.h -Iubuntu/include -D__KERNEL__ -fno-pie -Wall -Wundef -Wstrict-prototypes -Wno-trigraphs -fno-strict-aliasing -fno-common -Werror-implicit-function-declaration -Wno-format-security -std=gnu89 -fno-PIE -fno-pie -no-pie -mno-sse -mno-mmx -mno-sse2 -mno-3dnow -mno-avx -m64 -falign-jumps=1 -falign-loops=1 -mno-80387 -mno-fp-ret-in-387 -mpreferred-stack-boundary=3 -mskip-rax-setup -mtune=generic -mno-red-zone -mcmodel=kernel -funit-at-a-time -maccumulate-outgoing-args -DCONFIG_X86_X32_ABI -DCONFIG_AS_CFI=1 -DCONFIG_AS_CFI_SIGNAL_FRAME=1 -DCONFIG_AS_CFI_SECTIONS=1 -DCONFIG_AS_FXSAVEQ=1 -DCONFIG_AS_SSSE3=1 -DCONFIG_AS_CRC32=1 -DCONFIG_AS_AVX=1 -DCONFIG_AS_AVX2=1 -DCONFIG_AS_SHA1_NI=1 -DCONFIG_AS_SHA256_NI=1 -pipe -Wno-sign-compare -fno-asynchronous-unwind-tables -mindirect-branch=thunk-extern -mindirect-branch-register -DRETPOLINE -fno-delete-null-pointer-checks -Wno-maybe-uninitialized -O2 --param=allow-store-data-races=0 -DCC_HAVE_ASM_GOTO -Wframe-larger-than=1024 -fstack-protector-strong -Wno-unused-but-set-variable -fno-omit-frame-pointer -fno-optimize-sibling-calls -fno-var-tracking-assignments -pg -mfentry -DCC_USING_FENTRY -Wdeclaration-after-statement -Wno-pointer-sign -fno-strict-overflow -fno-merge-all-constants -fmerge-constants -fno-stack-check -fconserve-stack -Werror=implicit-int -Werror=strict-prototypes -Werror=date-time -include /tmp/vbox.0/include/VBox/SUPDrvMangling.h -fno-omit-frame-pointer -fno-pie -I/lib/modules/4.4.0-143-generic/build/include -I/tmp/vbox.0/ -I/tmp/vbox.0/include -I/tmp/vbox.0/r0drv/linux -D__KERNEL__ -DMODULE -DRT_OS_LINUX -DIN_RING0 -DIN_RT_R0 -DIN_SUP_R0 -DVBOX -DRT_WITH_VBOX -DVBOX_WITH_HARDENING -DSUPDRV_WITH_RELEASE_LOGGER -Wno-declaration-after-statement -DCONFIG_VBOXDRV_AS_MISC -DRT_ARCH_AMD64 -DVBOX_WITH_64_BITS_GUESTS -DMODULE -D"KBUILD_STR(s)=#s" -D"KBUILD_BASENAME=KBUILD_STR(mpnotification_r0drv_linux)" -D"KBUILD_MODNAME=KBUILD_STR(vboxdrv)" -c -o /tmp/vbox.0/r0drv/linux/.tmp_mpnotification-r0drv-linux.o /tmp/vbox.0/r0drv/linux/mpnotification-r0drv-linux.c

      scripts/Makefile.build:285: recipe for target '/tmp/vbox.0/r0drv/linux/memobj-r0drv-linux.o' failed

      make[2]: *** [/tmp/vbox.0/r0drv/linux/memobj-r0drv-linux.o] Error 1

      make[2]: *** Waiting for unfinished jobs....

      if [ "-pg" = "-pg" ]; then if [ /tmp/vbox.0/r0drv/linux/initterm-r0drv-linux.o != "scripts/mod/empty.o" ]; then ./scripts/recordmcount "/tmp/vbox.0/r0drv/linux/initterm-r0drv-linux.o"; fi; fi;

      if [ "-pg" = "-pg" ]; then if [ /tmp/vbox.0/SUPDrv.o != "scripts/mod/empty.o" ]; then ./scripts/recordmcount "/tmp/vbox.0/SUPDrv.o"; fi; fi;

      if [ "-pg" = "-pg" ]; then if [ /tmp/vbox.0/r0drv/linux/assert-r0drv-linux.o != "scripts/mod/empty.o" ]; then ./scripts/recordmcount "/tmp/vbox.0/r0drv/linux/assert-r0drv-linux.o"; fi; fi;

      if [ "-pg" = "-pg" ]; then if [ /tmp/vbox.0/r0drv/linux/alloc-r0drv-linux.o != "scripts/mod/empty.o" ]; then ./scripts/recordmcount "/tmp/vbox.0/r0drv/linux/alloc-r0drv-linux.o"; fi; fi;

      if [ "-pg" = "-pg" ]; then if [ /tmp/vbox.0/r0drv/linux/memuserkernel-r0drv-linux.o != "scripts/mod/empty.o" ]; then ./scripts/recordmcount "/tmp/vbox.0/r0drv/linux/memuserkernel-r0drv-linux.o"; fi; fi;

      if [ "-pg" = "-pg" ]; then if [ /tmp/vbox.0/r0drv/linux/mpnotification-r0drv-linux.o != "scripts/mod/empty.o" ]; then ./scripts/recordmcount "/tmp/vbox.0/r0drv/linux/mpnotification-r0drv-linux.o"; fi; fi;

      if [ "-pg" = "-pg" ]; then if [ /tmp/vbox.0/r0drv/linux/mp-r0drv-linux.o != "scripts/mod/empty.o" ]; then ./scripts/recordmcount "/tmp/vbox.0/r0drv/linux/mp-r0drv-linux.o"; fi; fi;

      Makefile:1454: recipe for target '_module_/tmp/vbox.0' failed

      make[1]: *** [_module_/tmp/vbox.0] Error 2

      /tmp/vbox.0/Makefile.include.footer:101: recipe for target 'vboxdrv' failed

      make: *** [vboxdrv] Error 2



      I have already tried every solution for similar issues with this error message but none works for me.



      Anyone has had similar problems after last Ubuntu updates?



      UPDATE:
      I have completely uninstalled VirtualBox, restarted the system, installed VirtualBox again, and still the very same error.

















      share|improve this question






























      First off, this is not the same problem explained in other posts (AFAIK), where the solution is running another command or find where vboxconfig is located.




      • VirtualBox version: 5.2.26


      • Ubuntu version: 16.04


      • Updates which have "broken" something: those between last week and today (2019/03/18)



      I ran Ubuntu Software Updater this morning, after turning on the computer. Afterwards I tried to launch a Virtual Box machine (version installed via .deb, not the Ubuntu Software Center one) and got that famous error:



          Kernel driver not installed (rc=-1908)



      The VirtualBox Linux kernel driver (vboxdrv) is either not loaded or there is a permission problem with /dev/vboxdrv. Please reinstall the kernel module by executing



      '/sbin/vboxconfig'



      as root.



      where: suplibOsInit what: 3 VERR_VM_DRIVER_NOT_INSTALLED (-1908) - The support driver is not installed. On linux, open returned ENOENT.



      After reading about the problem and understanding why should I do it, I executed it:



      $ sudo /sbin/vboxconfig



      vboxdrv.sh: Stopping VirtualBox services.

      vboxdrv.sh: Starting VirtualBox services.

      vboxdrv.sh: Building VirtualBox kernel modules.

      vboxdrv.sh: failed: Look at /var/log/vbox-setup.log to find out what went wrong.



      Reading the .log, I see that the problem seems to be related with the "get_user_pages" function, and at this point I honestly have no idea how to solve it.



      Building the main VirtualBox module.

      Error building the module:

      make V=1 CONFIG_MODULE_SIG= -C /lib/modules/4.4.0-143-generic/build SUBDIRS=/tmp/vbox.0 SRCROOT=/tmp/vbox.0 -j8 modules

      make[1]: warning: -jN forced in submake: disabling jobserver mode.

      mkdir -p /tmp/vbox.0/.tmp_versions ; rm -f /tmp/vbox.0/.tmp_versions/*

      make -f ./scripts/Makefile.build obj=/tmp/vbox.0

      [...]

      [...]

      [...]

      /tmp/vbox.0/r0drv/linux/memobj-r0drv-linux.c: In function ‘rtR0MemObjNativeLockUser’:

      /tmp/vbox.0/r0drv/linux/memobj-r0drv-linux.c:1122:33: warning: passing argument 6 of ‘get_user_pages’ makes pointer from integer without a cast [-Wint-conversion]

      fWrite, /* force write access. */

      ^

      In file included from /tmp/vbox.0/r0drv/linux/the-linux-kernel.h:98:0,

      from /tmp/vbox.0/r0drv/linux/memobj-r0drv-linux.c:31:

      include/linux/mm.h:1222:6: note: expected ‘struct page **’ but argument is of type ‘int’

      long get_user_pages(struct task_struct *tsk, struct mm_struct *mm,

      ^

      /tmp/vbox.0/r0drv/linux/memobj-r0drv-linux.c:1124:33: warning: passing argument 7 of ‘get_user_pages’ from incompatible pointer type [-Wincompatible-pointer-types]

      &pMemLnx->apPages[0], /* Page array. */

      ^

      In file included from /tmp/vbox.0/r0drv/linux/the-linux-kernel.h:98:0,

      from /tmp/vbox.0/r0drv/linux/memobj-r0drv-linux.c:31:

      include/linux/mm.h:1222:6: note: expected ‘struct vm_area_struct **’ but argument is of type ‘struct page **’

      long get_user_pages(struct task_struct *tsk, struct mm_struct *mm,

      ^

      /tmp/vbox.0/r0drv/linux/memobj-r0drv-linux.c:1112:18: error: too many arguments to function ‘get_user_pages’

      rc = get_user_pages(pTask, /* Task for fault accounting. */

      ^

      In file included from /tmp/vbox.0/r0drv/linux/the-linux-kernel.h:98:0,

      from /tmp/vbox.0/r0drv/linux/memobj-r0drv-linux.c:31:

      include/linux/mm.h:1222:6: note: declared here

      long get_user_pages(struct task_struct *tsk, struct mm_struct *mm,

      ^

      gcc -Wp,-MD,/tmp/vbox.0/r0drv/linux/.mpnotification-r0drv-linux.o.d -nostdinc -isystem /usr/lib/gcc/x86_64-linux-gnu/5/include -I./arch/x86/include -Iarch/x86/include/generated/uapi -Iarch/x86/include/generated -Iinclude -I./arch/x86/include/uapi -Iarch/x86/include/generated/uapi -I./include/uapi -Iinclude/generated/uapi -include ./include/linux/kconfig.h -Iubuntu/include -D__KERNEL__ -fno-pie -Wall -Wundef -Wstrict-prototypes -Wno-trigraphs -fno-strict-aliasing -fno-common -Werror-implicit-function-declaration -Wno-format-security -std=gnu89 -fno-PIE -fno-pie -no-pie -mno-sse -mno-mmx -mno-sse2 -mno-3dnow -mno-avx -m64 -falign-jumps=1 -falign-loops=1 -mno-80387 -mno-fp-ret-in-387 -mpreferred-stack-boundary=3 -mskip-rax-setup -mtune=generic -mno-red-zone -mcmodel=kernel -funit-at-a-time -maccumulate-outgoing-args -DCONFIG_X86_X32_ABI -DCONFIG_AS_CFI=1 -DCONFIG_AS_CFI_SIGNAL_FRAME=1 -DCONFIG_AS_CFI_SECTIONS=1 -DCONFIG_AS_FXSAVEQ=1 -DCONFIG_AS_SSSE3=1 -DCONFIG_AS_CRC32=1 -DCONFIG_AS_AVX=1 -DCONFIG_AS_AVX2=1 -DCONFIG_AS_SHA1_NI=1 -DCONFIG_AS_SHA256_NI=1 -pipe -Wno-sign-compare -fno-asynchronous-unwind-tables -mindirect-branch=thunk-extern -mindirect-branch-register -DRETPOLINE -fno-delete-null-pointer-checks -Wno-maybe-uninitialized -O2 --param=allow-store-data-races=0 -DCC_HAVE_ASM_GOTO -Wframe-larger-than=1024 -fstack-protector-strong -Wno-unused-but-set-variable -fno-omit-frame-pointer -fno-optimize-sibling-calls -fno-var-tracking-assignments -pg -mfentry -DCC_USING_FENTRY -Wdeclaration-after-statement -Wno-pointer-sign -fno-strict-overflow -fno-merge-all-constants -fmerge-constants -fno-stack-check -fconserve-stack -Werror=implicit-int -Werror=strict-prototypes -Werror=date-time -include /tmp/vbox.0/include/VBox/SUPDrvMangling.h -fno-omit-frame-pointer -fno-pie -I/lib/modules/4.4.0-143-generic/build/include -I/tmp/vbox.0/ -I/tmp/vbox.0/include -I/tmp/vbox.0/r0drv/linux -D__KERNEL__ -DMODULE -DRT_OS_LINUX -DIN_RING0 -DIN_RT_R0 -DIN_SUP_R0 -DVBOX -DRT_WITH_VBOX -DVBOX_WITH_HARDENING -DSUPDRV_WITH_RELEASE_LOGGER -Wno-declaration-after-statement -DCONFIG_VBOXDRV_AS_MISC -DRT_ARCH_AMD64 -DVBOX_WITH_64_BITS_GUESTS -DMODULE -D"KBUILD_STR(s)=#s" -D"KBUILD_BASENAME=KBUILD_STR(mpnotification_r0drv_linux)" -D"KBUILD_MODNAME=KBUILD_STR(vboxdrv)" -c -o /tmp/vbox.0/r0drv/linux/.tmp_mpnotification-r0drv-linux.o /tmp/vbox.0/r0drv/linux/mpnotification-r0drv-linux.c

      scripts/Makefile.build:285: recipe for target '/tmp/vbox.0/r0drv/linux/memobj-r0drv-linux.o' failed

      make[2]: *** [/tmp/vbox.0/r0drv/linux/memobj-r0drv-linux.o] Error 1

      make[2]: *** Waiting for unfinished jobs....

      if [ "-pg" = "-pg" ]; then if [ /tmp/vbox.0/r0drv/linux/initterm-r0drv-linux.o != "scripts/mod/empty.o" ]; then ./scripts/recordmcount "/tmp/vbox.0/r0drv/linux/initterm-r0drv-linux.o"; fi; fi;

      if [ "-pg" = "-pg" ]; then if [ /tmp/vbox.0/SUPDrv.o != "scripts/mod/empty.o" ]; then ./scripts/recordmcount "/tmp/vbox.0/SUPDrv.o"; fi; fi;

      if [ "-pg" = "-pg" ]; then if [ /tmp/vbox.0/r0drv/linux/assert-r0drv-linux.o != "scripts/mod/empty.o" ]; then ./scripts/recordmcount "/tmp/vbox.0/r0drv/linux/assert-r0drv-linux.o"; fi; fi;

      if [ "-pg" = "-pg" ]; then if [ /tmp/vbox.0/r0drv/linux/alloc-r0drv-linux.o != "scripts/mod/empty.o" ]; then ./scripts/recordmcount "/tmp/vbox.0/r0drv/linux/alloc-r0drv-linux.o"; fi; fi;

      if [ "-pg" = "-pg" ]; then if [ /tmp/vbox.0/r0drv/linux/memuserkernel-r0drv-linux.o != "scripts/mod/empty.o" ]; then ./scripts/recordmcount "/tmp/vbox.0/r0drv/linux/memuserkernel-r0drv-linux.o"; fi; fi;

      if [ "-pg" = "-pg" ]; then if [ /tmp/vbox.0/r0drv/linux/mpnotification-r0drv-linux.o != "scripts/mod/empty.o" ]; then ./scripts/recordmcount "/tmp/vbox.0/r0drv/linux/mpnotification-r0drv-linux.o"; fi; fi;

      if [ "-pg" = "-pg" ]; then if [ /tmp/vbox.0/r0drv/linux/mp-r0drv-linux.o != "scripts/mod/empty.o" ]; then ./scripts/recordmcount "/tmp/vbox.0/r0drv/linux/mp-r0drv-linux.o"; fi; fi;

      Makefile:1454: recipe for target '_module_/tmp/vbox.0' failed

      make[1]: *** [_module_/tmp/vbox.0] Error 2

      /tmp/vbox.0/Makefile.include.footer:101: recipe for target 'vboxdrv' failed

      make: *** [vboxdrv] Error 2



      I have already tried every solution for similar issues with this error message but none works for me.



      Anyone has had similar problems after last Ubuntu updates?



      UPDATE:
      I have completely uninstalled VirtualBox, restarted the system, installed VirtualBox again, and still the very same error.








      virtualbox










      share|improve this question



























      share|improve this question























      share|improve this question





      share|improve this question










      edited 3 mins ago











      Alberto Martín



























      asked 42 mins ago













      Alberto MartínAlberto Martín



      13518







      13518



































          0











          active



          oldest



          votes























          Your Answer















          StackExchange.ready(function() {

          var channelOptions = {

          tags: "".split(" "),

          id: "89"

          };

          initTagRenderer("".split(" "), "".split(" "), channelOptions);



          StackExchange.using("externalEditor", function() {

          // Have to fire editor after snippets, if snippets enabled

          if (StackExchange.settings.snippets.snippetsEnabled) {

          StackExchange.using("snippets", function() {

          createEditor();

          });

          }

          else {

          createEditor();

          }

          });



          function createEditor() {

          StackExchange.prepareEditor({

          heartbeatType: 'answer',

          autoActivateHeartbeat: false,

          convertImagesToLinks: true,

          noModals: true,

          showLowRepImageUploadWarning: true,

          reputationToPostImages: 10,

          bindNavPrevention: true,

          postfix: "",

          imageUploader: {

          brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",

          contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",

          allowUrls: true

          },

          onDemand: true,

          discardSelector: ".discard-answer"

          ,immediatelyShowMarkdownHelp:true

          });





          }

          });




























          draft saved


          draft discarded



































          StackExchange.ready(

          function () {

          StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2faskubuntu.com%2fquestions%2f1126591%2fvirtualbox-error-after-last-ubuntu-software-update%23new-answer', 'question_page');

          }

          );



          Post as a guest




























          Required, but never shown














































          0











          active



          oldest



          votes















          0











          active



          oldest



          votes

















          active



          oldest



          votes











          active



          oldest



          votes






























          draft saved


          draft discarded





















































































          Thanks for contributing an answer to Ask Ubuntu!


          • Please be sure to answer the question. Provide details and share your research!

          But avoid



          • Asking for help, clarification, or responding to other answers.

          • Making statements based on opinion; back them up with references or personal experience.


          To learn more, see our tips on writing great answers.





          draft saved


          draft discarded



















          StackExchange.ready(

          function () {

          StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2faskubuntu.com%2fquestions%2f1126591%2fvirtualbox-error-after-last-ubuntu-software-update%23new-answer', 'question_page');

          }

          );



          Post as a guest




























          Required, but never shown















































































          Required, but never shown
























          Required, but never shown




















          Required, but never shown











          Required, but never shown



















































          Required, but never shown
























          Required, but never shown




















          Required, but never shown











          Required, but never shown









          VirtualBox error after last (Ubuntu) Software Update Rating: 4.5 Diposkan Oleh: Admin

          0 komentar:

          Posting Komentar

          Popular Posts