You are not logged in.

#1 2016-10-08 18:58:28

Clueless
Member
Registered: 2011-08-17
Posts: 16

Virtualbox guest fai to start kernel modules, bootup takes a long time

Hi, I'm running Arch as a virtualbox guest, virtualbox host version 5.1.6 on Windows 10. When I start up my system, there is a 1m30s delay as systemd tries to load kernel modules. This then fails. Virtualbox guest modules don't seem to be working great, mouse integration in particular seems very bad, with the wrong icon for my mouse and clicks registering in the wrong portion of the screen. I recently upgraded Arch Linux after not booting since April 2015, the problem started after that upgrade if it is relevant.

Some diagnostics follow:

# systemctl status systemd-modules-load.service

● systemd-modules-load.service - Load Kernel Modules
   Loaded: loaded (/usr/lib/systemd/system/systemd-modules-load.service; static; vendor preset: disabled)
   Active: failed (Result: timeout) since Sat 2016-10-08 14:29:23 EDT; 10min ago
     Docs: man:systemd-modules-load.service(8)
           man:modules-load.d(5)
 Main PID: 160
    Tasks: 1 (limit: 4915)
   CGroup: /system.slice/systemd-modules-load.service
           └─160 /usr/lib/systemd/systemd-modules-load

Oct 08 14:24:52 vmarch systemd-modules-load[160]: Inserted module 'vboxguest'
Oct 08 14:26:22 vmarch systemd[1]: systemd-modules-load.service: Start operation timed out. Terminating.
Oct 08 14:27:53 vmarch systemd[1]: systemd-modules-load.service: State 'stop-final-sigterm' timed out. Killing.
Oct 08 14:27:53 vmarch systemd[1]: systemd-modules-load.service: Killing process 160 (systemd-modules) with signal SIGKILL.
Oct 08 14:29:23 vmarch systemd[1]: systemd-modules-load.service: Processes still around after final SIGKILL. Entering failed mode.
Oct 08 14:29:23 vmarch systemd[1]: Failed to start Load Kernel Modules.
Oct 08 14:29:23 vmarch systemd[1]: systemd-modules-load.service: Unit entered failed state.
Oct 08 14:29:23 vmarch systemd[1]: systemd-modules-load.service: Failed with result 'timeout'.
Warning: Journal has been rotated since unit was started. Log output is incomplete or unavailable.

# systemctl restart systemd-modules-load.service (output after 1m30s)

Job for systemd-modules-load.service failed because a timeout was exceeded.
See "systemctl status systemd-modules-load.service" and "journalctl -xe" for details.

$ systemctl status systemd-modules-load.service

● systemd-modules-load.service - Load Kernel Modules
   Loaded: loaded (/usr/lib/systemd/system/systemd-modules-load.service; static; vendor preset: disabled)
   Active: failed (Result: timeout) since Sat 2016-10-08 14:50:41 EDT; 6min ago
     Docs: man:systemd-modules-load.service(8)
           man:modules-load.d(5)
  Process: 1378 ExecStart=/usr/lib/systemd/systemd-modules-load (code=killed, signal=TERM)
 Main PID: 1378 (code=killed, signal=TERM)
    Tasks: 1 (limit: 4915)
   CGroup: /system.slice/systemd-modules-load.service
           └─160 /usr/lib/systemd/systemd-modules-load

Oct 08 14:49:11 vmarch systemd[1]: Starting Load Kernel Modules...
Oct 08 14:50:41 vmarch systemd[1]: systemd-modules-load.service: Start operation timed out. Terminating.
Oct 08 14:50:41 vmarch systemd[1]: Failed to start Load Kernel Modules.
Oct 08 14:50:41 vmarch systemd[1]: systemd-modules-load.service: Unit entered failed state.
Oct 08 14:50:41 vmarch systemd[1]: systemd-modules-load.service: Failed with result 'timeout'.

$ journalctl -xe (excerpt)

Oct 08 14:49:11 vmarch sudo[1375]:   aogier : TTY=pts/0 ; PWD=/home/aogier ; USER=root ; COMMAND=/usr/bin/systemctl restart systemd-modules-load.service
Oct 08 14:49:11 vmarch sudo[1375]: pam_unix(sudo:session): session opened for user root by (uid=0)
Oct 08 14:49:11 vmarch systemd[1]: Starting Load Kernel Modules...
-- Subject: Unit systemd-modules-load.service has begun start-up
-- Defined-By: systemd
-- Support: http://lists.freedesktop.org/mailman/listinfo/systemd-devel
-- 
-- Unit systemd-modules-load.service has begun starting up.
Oct 08 14:49:29 vmarch kernel: VbglR0HGCMInternalCall: vbglR0HGCMInternalDoCall failed. rc=-2
Oct 08 14:49:29 vmarch kernel: VBOXGUEST_IOCTL_HGCM_CALL: 64 Failed. rc=-2.
Oct 08 14:50:41 vmarch systemd[1]: systemd-modules-load.service: Start operation timed out. Terminating.
Oct 08 14:50:41 vmarch systemd[1]: Failed to start Load Kernel Modules.
-- Subject: Unit systemd-modules-load.service has failed
-- Defined-By: systemd
-- Support: http://lists.freedesktop.org/mailman/listinfo/systemd-devel
-- 
-- Unit systemd-modules-load.service has failed.
-- 
-- The result is failed.
Oct 08 14:50:41 vmarch systemd[1]: systemd-modules-load.service: Unit entered failed state.
Oct 08 14:50:41 vmarch systemd[1]: systemd-modules-load.service: Failed with result 'timeout'.
Oct 08 14:50:41 vmarch sudo[1375]: pam_unix(sudo:session): session closed for user root
Oct 08 14:50:54 vmarch kernel: VbglR0HGCMInternalCall: vbglR0HGCMInternalDoCall failed. rc=-2
Oct 08 14:50:54 vmarch kernel: VBOXGUEST_IOCTL_HGCM_CALL: 64 Failed. rc=-2.
Oct 08 14:51:14 vmarch kernel: VbglR0HGCMInternalCall: vbglR0HGCMInternalDoCall failed. rc=-2
Oct 08 14:51:14 vmarch kernel: VBOXGUEST_IOCTL_HGCM_CALL: 64 Failed. rc=-2.

$ pacman -Qs virtualbox

local/virtualbox-guest-modules-arch 5.1.6-1
    Virtualbox guest kernel modules for Arch Kernel
local/virtualbox-guest-utils 5.1.6-1
    VirtualBox Guest userspace utilities

$ pacman -Qs linux

local/alsa-lib 1.1.2-1
    An alternative implementation of Linux sound support
local/archlinux-keyring 20160812-1
    Arch Linux PGP keyring
local/avahi 0.6.32-2
    Service Discovery for Linux using mDNS/DNS-SD -- compatible with Bonjour
local/iptables 1.6.0-1
    Linux kernel packet control tool
local/keyutils 1.5.9-1
    Linux Key Management Utilities
local/kmod 23-1
    Linux kernel module management tools and library
local/libaio 0.3.110-1
    The Linux-native asynchronous I/O facility (aio) library
local/libiec61883 1.2.0-4
    A higher level API for streaming DV, MPEG-2 and audio over Linux IEEE 1394
local/libimobiledevice 1.2.0-3
    Library that talks the protocols to support iPhone and iPod Touch devices on Linux
local/libraw1394 2.1.2-1
    Provides an API to the Linux IEEE1394 (FireWire) driver
local/libutil-linux 2.28.2-1
    util-linux runtime libraries
local/libva 1.7.2-1
    Video Acceleration (VA) API for Linux
local/libxshmfence 1.2-1
    a library that exposes a event API on top of Linux futexes
local/linux 4.7.6-1 (base)
    The Linux kernel and modules
local/linux-api-headers 4.7-1
    Kernel headers sanitized for use in userspace
local/linux-firmware 20160915.c4c07a8-1
    Firmware files for Linux
local/linux-headers 4.7.6-1
    Header files and scripts for building modules for Linux kernel
local/man-pages 4.07-1 (base)
    Linux man pages
local/mdadm 3.4-1 (base)
    A tool for managing/monitoring Linux md device arrays, also known as Software RAID
local/pacman-mirrorlist 20161005-1
    Arch Linux mirror list for use by pacman
local/util-linux 2.28.2-1 (base base-devel)
    Miscellaneous system utilities for Linux
local/v4l-utils 1.10.1-1
    Userspace tools and conversion library for Video 4 Linux

$ uname -a

Linux vmarch 4.7.6-1-ARCH #1 SMP PREEMPT Fri Sep 30 19:46:40 CEST 2016 i686 GNU/Linux

Offline

#2 2016-10-09 22:36:09

Clueless
Member
Registered: 2011-08-17
Posts: 16

Re: Virtualbox guest fai to start kernel modules, bootup takes a long time

Bump. Bootup still takes a really long time waiting for kernel modules and virtualbox guest additions don't work. Maybe I intimidated people with the wall of text, would just be grateful for any advice anyone can give. Thanks!

Offline

#3 2016-10-10 12:10:44

mrunion
Member
From: Jonesborough, TN
Registered: 2007-01-26
Posts: 1,938
Website

Re: Virtualbox guest fai to start kernel modules, bootup takes a long time


Matt

"It is very difficult to educate the educated."

Offline

#4 2016-10-24 17:47:11

ezacaria
Member
Registered: 2007-12-10
Posts: 113

Re: Virtualbox guest fai to start kernel modules, bootup takes a long time

We really seem to have some issues with the Arch virtualbox guests. The problem seems to appear after kernel 4.7.5, since the same VM boots with the October ISO.

The current kernel (4.78.4-1) does not boot in my case. The VM just hangs after "Probing EDD" and "ok". The machine's log says "Guest Log: int13_harddisk: function 02, unmapped device for ELDL=8" for different 8* numbers. These lines alternate with "int13_harddisk_ext: function 41, unmapped device for ELDL". I booted it with the Arch installation iso and reinstalled syslinux, but it did not help.

What does seem to work to some extent is the LTS kernel. I had quite some hassle, but it finally seems to be up. I am coming from the LTS 4.4.21-1, to which I switched after having the same problem with the modules as the original poster. First, I upgraded the system while ignoring the LTS kernel/headers, firmware, guest utils and dkms guest modules. Then, I removed the pacman Ignore configuration and updated again.

My experience is that the guests break now and then after virtualbox upgrades, and it is tempting to just freeze vbox on host and guest, especially considering that our version is considered a fork and not really supported on the Oracle forums.

Anyways, for your current situation I would suggest to either downgrade the kernel or switch to LTS. Some time ago I tried with the Zen kernel but it did not work either. I did not test the current version now, though.

Offline

Board footer

Powered by FluxBB