Ubuntu in Virtual Box

Questions about virtualization software
Forum rules
Before you post please read how to get help
Post Reply
Stegemueller
Level 1
Level 1
Posts: 29
Joined: Sat Jun 15, 2019 11:14 am

Ubuntu in Virtual Box

Post by Stegemueller » Sat Jun 15, 2019 11:29 am

Hi there

My system is Linux Mint 19.1 Cinnamon, and I would like to play around with Ubuntu in the Virtual box, but I keep getting error messages:
"Kunne ikke åbne en session til den virtuelle maskine Ubuntu.

The virtual machine 'Ubuntu' has terminated unexpectedly during startup with exit code 1 (0x1).

Resultats kode: NS_ERROR_FAILURE (0x80004005)
Komponent: MachineWrap
Grænseflade: IMachine {85cd948e-a71f-4289-281e-0ca7ad48cd89}"
I'm very new to Linux and know almost nothing about the terminal so I hopevery much you'll guide me, as I've been googling for days.
Skærmbillede fra 2019-06-15 17-25-50.png
Best regards,
Hanne,
Denmark
Best regards,

Hanne B. Stegemüller,,
Denmark

deck_luck
Level 4
Level 4
Posts: 201
Joined: Mon May 27, 2019 6:57 pm
Location: here

Re: Ubuntu in Virtual Box

Post by deck_luck » Sat Jun 15, 2019 3:42 pm

The vboxdrv is a kernel module used by Virtualbox. When performing the Virtualbox installation , did you reboot the Linux computer to allow the new kernel module to load? If I remember correctly the Virtualbox installation prints a notice to reboot after a successful installation.
💡Give a man a fish, and you feed him for a day. Teach a man to fish, and you feed him for a lifetime. ✝️

haphaeu
Level 1
Level 1
Posts: 1
Joined: Tue Jun 18, 2019 2:03 pm

Re: Ubuntu in Virtual Box

Post by haphaeu » Tue Jun 18, 2019 2:18 pm

This seems to be a problem after one of the latest updates.

I have virtual machines in VirtualBox for a long time, and they all broke (failed to initialise) recently.

I get exactly the same error as above by Stegemueller.

Here is more information about it:

As the error message says, I've tried:

Code: Select all

~ sudo modprobe vboxdrv
modprobe: FATAL: Module vboxdrv not found in directory /lib/modules/5.0.0-16-generic
Then, I've tried to re-install dkms modules:

Code: Select all

~ sudo apt install --reinstall virtualbox-dkms

Reading package lists... Done
Building dependency tree       
Reading state information... Done
0 to upgrade, 0 to newly install, 1 reinstalled, 0 to remove and 0 not to upgrade.
Need to get 0 B/686 kB of archives.
After this operation, 0 B of additional disk space will be used.
(Reading database ... 591113 files and directories currently installed.)
Preparing to unpack .../virtualbox-dkms_5.2.18-dfsg-2~ubuntu18.04.5_all.deb ...

-------- Uninstall Beginning --------
Module:  virtualbox
Version: 5.2.18
Kernel:  4.15.0-52-generic (x86_64)
-------------------------------------

Status: Before uninstall, this module version was ACTIVE on this kernel.

vboxdrv.ko:
 - Uninstallation
   - Deleting from: /lib/modules/4.15.0-52-generic/updates/
 - Original module
   - No original module was found for this module on this kernel.
   - Use the dkms install command to reinstall any previous module version.


vboxnetadp.ko:
 - Uninstallation
   - Deleting from: /lib/modules/4.15.0-52-generic/updates/
 - Original module
   - No original module was found for this module on this kernel.
   - Use the dkms install command to reinstall any previous module version.


vboxnetflt.ko:
 - Uninstallation
   - Deleting from: /lib/modules/4.15.0-52-generic/updates/
 - Original module
   - No original module was found for this module on this kernel.
   - Use the dkms install command to reinstall any previous module version.


vboxpci.ko:
 - Uninstallation
   - Deleting from: /lib/modules/4.15.0-52-generic/updates/
 - Original module
   - No original module was found for this module on this kernel.
   - Use the dkms install command to reinstall any previous module version.

depmod...

DKMS: uninstall completed.

------------------------------
Deleting module version: 5.2.18
completely from the DKMS tree.
------------------------------
Done.
Unpacking virtualbox-dkms (5.2.18-dfsg-2~ubuntu18.04.5) over (5.2.18-dfsg-2~ubuntu18.04.5) ...
Setting up virtualbox-dkms (5.2.18-dfsg-2~ubuntu18.04.5) ...
Loading new virtualbox-5.2.18 DKMS files...
Building for 5.0.0-16-generic
Building initial module for 5.0.0-16-generic
ERROR (dkms apport): kernel package linux-headers-5.0.0-16-generic is not supported
Error! Bad return status for module build on kernel: 5.0.0-16-generic (x86_64)
Consult /var/lib/dkms/virtualbox/5.2.18/build/make.log for more information.
and finally the contents of the log file mentioned above:

Code: Select all

~ cat /var/lib/dkms/virtualbox/5.2.18/build/make.log
DKMS make.log for virtualbox-5.2.18 for kernel 5.0.0-16-generic (x86_64)
Tue 18 Jun 20:12:15 CEST 2019
make: Entering directory '/usr/src/linux-headers-5.0.0-16-generic'
  CC [M]  /var/lib/dkms/virtualbox/5.2.18/build/vboxdrv/linux/SUPDrv-linux.o
  CC [M]  /var/lib/dkms/virtualbox/5.2.18/build/vboxdrv/SUPDrv.o
  CC [M]  /var/lib/dkms/virtualbox/5.2.18/build/vboxdrv/SUPDrvGip.o
  CC [M]  /var/lib/dkms/virtualbox/5.2.18/build/vboxdrv/SUPDrvSem.o
  CC [M]  /var/lib/dkms/virtualbox/5.2.18/build/vboxdrv/SUPDrvTracer.o
  CC [M]  /var/lib/dkms/virtualbox/5.2.18/build/vboxdrv/SUPLibAll.o
  CC [M]  /var/lib/dkms/virtualbox/5.2.18/build/vboxdrv/r0drv/alloc-r0drv.o
  CC [M]  /var/lib/dkms/virtualbox/5.2.18/build/vboxdrv/r0drv/initterm-r0drv.o
  CC [M]  /var/lib/dkms/virtualbox/5.2.18/build/vboxdrv/r0drv/memobj-r0drv.o
  CC [M]  /var/lib/dkms/virtualbox/5.2.18/build/vboxdrv/r0drv/mpnotification-r0drv.o
  CC [M]  /var/lib/dkms/virtualbox/5.2.18/build/vboxdrv/r0drv/powernotification-r0drv.o
  CC [M]  /var/lib/dkms/virtualbox/5.2.18/build/vboxdrv/r0drv/linux/assert-r0drv-linux.o
  CC [M]  /var/lib/dkms/virtualbox/5.2.18/build/vboxdrv/r0drv/linux/alloc-r0drv-linux.o
  CC [M]  /var/lib/dkms/virtualbox/5.2.18/build/vboxdrv/r0drv/linux/initterm-r0drv-linux.o
  CC [M]  /var/lib/dkms/virtualbox/5.2.18/build/vboxdrv/r0drv/linux/memobj-r0drv-linux.o
  CC [M]  /var/lib/dkms/virtualbox/5.2.18/build/vboxdrv/r0drv/linux/memuserkernel-r0drv-linux.o
  CC [M]  /var/lib/dkms/virtualbox/5.2.18/build/vboxdrv/r0drv/linux/mp-r0drv-linux.o
  CC [M]  /var/lib/dkms/virtualbox/5.2.18/build/vboxdrv/r0drv/linux/mpnotification-r0drv-linux.o
  CC [M]  /var/lib/dkms/virtualbox/5.2.18/build/vboxdrv/r0drv/linux/process-r0drv-linux.o
  CC [M]  /var/lib/dkms/virtualbox/5.2.18/build/vboxdrv/r0drv/linux/rtStrFormatKernelAddress-r0drv-linux.o
  CC [M]  /var/lib/dkms/virtualbox/5.2.18/build/vboxdrv/r0drv/linux/semevent-r0drv-linux.o
  CC [M]  /var/lib/dkms/virtualbox/5.2.18/build/vboxdrv/r0drv/linux/semeventmulti-r0drv-linux.o
/var/lib/dkms/virtualbox/5.2.18/build/vboxdrv/r0drv/linux/memuserkernel-r0drv-linux.c: In function ‘VBoxHost_RTR0MemUserIsValidAddr’:
/var/lib/dkms/virtualbox/5.2.18/build/vboxdrv/r0drv/linux/memuserkernel-r0drv-linux.c:69:55: error: macro "access_ok" passed 3 arguments, but takes just 2
     bool fRc = access_ok(VERIFY_READ, (void *)R3Ptr, 1);
                                                       ^
/var/lib/dkms/virtualbox/5.2.18/build/vboxdrv/r0drv/linux/memuserkernel-r0drv-linux.c:69:16: error: ‘access_ok’ undeclared (first use in this function)
     bool fRc = access_ok(VERIFY_READ, (void *)R3Ptr, 1);
                ^~~~~~~~~
/var/lib/dkms/virtualbox/5.2.18/build/vboxdrv/r0drv/linux/memuserkernel-r0drv-linux.c:69:16: note: each undeclared identifier is reported only once for each function it appears in
scripts/Makefile.build:284: recipe for target '/var/lib/dkms/virtualbox/5.2.18/build/vboxdrv/r0drv/linux/memuserkernel-r0drv-linux.o' failed
make[2]: *** [/var/lib/dkms/virtualbox/5.2.18/build/vboxdrv/r0drv/linux/memuserkernel-r0drv-linux.o] Error 1
make[2]: *** Waiting for unfinished jobs....
scripts/Makefile.build:515: recipe for target '/var/lib/dkms/virtualbox/5.2.18/build/vboxdrv' failed
make[1]: *** [/var/lib/dkms/virtualbox/5.2.18/build/vboxdrv] Error 2
Makefile:1605: recipe for target '_module_/var/lib/dkms/virtualbox/5.2.18/build' failed
make: *** [_module_/var/lib/dkms/virtualbox/5.2.18/build] Error 2
make: Leaving directory '/usr/src/linux-headers-5.0.0-16-generic'
So, here I got stuck. Is that a problem with dkms-apport?

Code: Select all

ERROR (dkms apport): kernel package linux-headers-5.0.0-16-generic is not supported
Or a bug in

Code: Select all

/var/lib/dkms/virtualbox/5.2.18/build/vboxdrv/r0drv/linux/memuserkernel-r0drv-linux.c:69:55: error: macro "access_ok" passed 3 arguments, but takes just 2
For the reference:

Code: Select all

System:    Host: ryzen7 Kernel: 5.0.0-16-generic x86_64 bits: 64 compiler: gcc v: 7.3.0 Desktop: Cinnamon 4.0.10 
           Distro: Linux Mint 19.1 Tessa base: Ubuntu 18.04 bionic 
Machine:   Type: Desktop Mobo: ASUSTeK model: ROG STRIX X470-F GAMING v: Rev X.0x serial: <filter> UEFI: American Megatrends 
           v: 4406 date: 02/28/2019 
CPU:       Topology: 8-Core model: AMD Ryzen 7 2700 bits: 64 type: MT MCP arch: Zen+ rev: 2 L2 cache: 4096 KiB 
           flags: lm nx pae sse sse2 sse3 sse4_1 sse4_2 sse4a ssse3 svm bogomips: 105404 
           Speed: 1374 MHz min/max: 1550/3300 MHz Core speeds (MHz): 1: 1375 2: 1374 3: 1367 4: 1368 5: 1373 6: 1459 7: 1343 
           8: 1374 9: 1375 10: 1375 11: 1372 12: 1374 13: 1375 14: 1374 15: 1372 16: 1374 

Post Reply

Return to “Virtualization”