You are not logged in.

#1 2020-07-05 06:02:05

mkharkov
Member
Registered: 2020-07-04
Posts: 3

Upgrading kernel from 5.7.6 to 5.7.7 breaks vbox guest additions

Hello!

I'm not sure if this is the right forum to address the issue, but I need at least a hint of how I can investigate further and fix the issue, sorry in advance smile
I'm running Arch as a virtual machine on VirtualBox 6.0.22
I've recently upgraded kernel and my guest additions stopped working.

On boot time I started to get next messages:

Failed to start Load Kernel Modules.
Failed to start vboxadd.service.
Failed to start vboxadd-service.service.

Services status:

➜  systemctl --failed
  UNIT                         LOAD   ACTIVE SUB    DESCRIPTION             
● systemd-modules-load.service loaded failed failed Load Kernel Modules     
● vboxadd-service.service      loaded failed failed vboxadd-service.service 
● vboxadd.service              loaded failed failed vboxadd.service         
● vboxservice.service          loaded failed failed VirtualBox Guest Service

LOAD   = Reflects whether the unit definition was properly loaded.
ACTIVE = The high-level unit activation state, i.e. generalization of SUB.
SUB    = The low-level unit activation state, values depend on unit type.

4 loaded units listed.

➜  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: exit-code) since Sun 2020-07-05 08:04:06 EEST; 18min ago
       Docs: man:systemd-modules-load.service(8)
             man:modules-load.d(5)
    Process: 229 ExecStart=/usr/lib/systemd/systemd-modules-load (code=exited, status=1/FAILURE)
   Main PID: 229 (code=exited, status=1/FAILURE)

Jul 05 08:04:05 Arch systemd-modules-load[229]: Inserted module 'crypto_user'
Jul 05 08:04:06 Arch systemd-modules-load[229]: Inserted module 'sg'
Jul 05 08:04:06 Arch systemd-modules-load[229]: Failed to insert module 'vboxguest': Invalid argument
Jul 05 08:04:06 Arch systemd-modules-load[229]: Failed to insert module 'vboxsf': Invalid argument
Jul 05 08:04:06 Arch systemd-modules-load[229]: Inserted module 'vboxvideo'
Jul 05 08:04:06 Arch systemd-modules-load[229]: Failed to insert module 'vboxguest': Invalid argument
Jul 05 08:04:06 Arch systemd-modules-load[229]: Failed to insert module 'vboxsf': Invalid argument
Jul 05 08:04:06 Arch systemd[1]: systemd-modules-load.service: Main process exited, code=exited, status=1/FAILURE
Jul 05 08:04:06 Arch systemd[1]: systemd-modules-load.service: Failed with result 'exit-code'.
Jul 05 08:04:06 Arch systemd[1]: Failed to start Load Kernel Modules.
➜  systemctl status vboxadd.service             
● vboxadd.service
     Loaded: loaded (/opt/VBoxGuestAdditions-6.0.22/init/vboxadd; enabled; vendor preset: disabled)
     Active: failed (Result: exit-code) since Sun 2020-07-05 08:04:34 EEST; 18min ago
    Process: 317 ExecStart=/opt/VBoxGuestAdditions-6.0.22/init/vboxadd start (code=exited, status=1/FAILURE)
   Main PID: 317 (code=exited, status=1/FAILURE)

Jul 05 08:04:11 Arch vboxadd[343]: VirtualBox Guest Additions:   /sbin/rcvboxadd quicksetup <version>
Jul 05 08:04:11 Arch vboxadd[345]: VirtualBox Guest Additions: or
Jul 05 08:04:11 Arch vboxadd[347]: VirtualBox Guest Additions:   /sbin/rcvboxadd quicksetup all
Jul 05 08:04:32 Arch vboxadd[348]: depmod: ERROR: failed to load symbols from /lib/modules/5.7.7-arch1-1/misc/vboxsf.ko.xz: Invalid argument
Jul 05 08:04:32 Arch vboxadd[348]: depmod: ERROR: failed to load symbols from /lib/modules/5.7.7-arch1-1/misc/vboxguest.ko.xz: Invalid argument
Jul 05 08:04:34 Arch vboxadd[317]: modprobe vboxguest failed
Jul 05 08:04:34 Arch vboxadd[317]: The log file /var/log/vboxadd-setup.log may contain further information.
Jul 05 08:04:34 Arch systemd[1]: vboxadd.service: Main process exited, code=exited, status=1/FAILURE
Jul 05 08:04:34 Arch systemd[1]: vboxadd.service: Failed with result 'exit-code'.
Jul 05 08:04:34 Arch systemd[1]: Failed to start vboxadd.service.
➜  systemctl status vboxadd-service.service
● vboxadd-service.service
     Loaded: loaded (/opt/VBoxGuestAdditions-6.0.22/init/vboxadd-service; enabled; vendor preset: disabled)
     Active: failed (Result: exit-code) since Sun 2020-07-05 08:04:34 EEST; 18min ago
    Process: 469 ExecStart=/opt/VBoxGuestAdditions-6.0.22/init/vboxadd-service start (code=exited, status=1/FAILURE)

Jul 05 08:04:34 Arch systemd[1]: Starting vboxadd-service.service...
Jul 05 08:04:34 Arch vboxadd-service[469]: vboxadd-service.sh: Starting VirtualBox Guest Addition service.
Jul 05 08:04:34 Arch vboxadd-service[469]: VirtualBox Additions module not loaded!
Jul 05 08:04:34 Arch systemd[1]: vboxadd-service.service: Control process exited, code=exited, status=1/FAILURE
Jul 05 08:04:34 Arch systemd[1]: vboxadd-service.service: Failed with result 'exit-code'.
Jul 05 08:04:34 Arch systemd[1]: Failed to start vboxadd-service.service.
➜  systemctl status vboxservice.service 
● vboxservice.service - VirtualBox Guest Service
     Loaded: loaded (/usr/lib/systemd/system/vboxservice.service; enabled; vendor preset: disabled)
     Active: failed (Result: exit-code) since Sun 2020-07-05 08:04:11 EEST; 56min ago
    Process: 318 ExecStartPre=/usr/bin/modprobe vboxguest (code=exited, status=1/FAILURE)
    Process: 319 ExecStartPre=/usr/bin/modprobe vboxvideo (code=exited, status=0/SUCCESS)
    Process: 320 ExecStartPre=/usr/bin/modprobe vboxsf (code=exited, status=1/FAILURE)
    Process: 321 ExecStart=/usr/bin/VBoxService -f (code=exited, status=1/FAILURE)
   Main PID: 321 (code=exited, status=1/FAILURE)

Jul 05 08:04:11 Arch systemd[1]: Starting VirtualBox Guest Service...
Jul 05 08:04:11 Arch modprobe[318]: modprobe: ERROR: could not insert 'vboxguest': Invalid argument
Jul 05 08:04:11 Arch modprobe[320]: modprobe: ERROR: could not insert 'vboxsf': Invalid argument
Jul 05 08:04:11 Arch systemd[1]: Started VirtualBox Guest Service.
Jul 05 08:04:11 Arch VBoxService[321]: VBoxService: error: VbglR3Init failed with rc=VERR_FILE_NOT_FOUND
Jul 05 08:04:11 Arch systemd[1]: vboxservice.service: Main process exited, code=exited, status=1/FAILURE
Jul 05 08:04:11 Arch systemd[1]: vboxservice.service: Failed with result 'exit-code'.

In /lib/modules I have 2 kernel dirs, the output of their misc folder:

➜  ls -lah 5.7.6-arch1-1/misc
total 1.4M
drwxr-xr-x 2 root root 4.0K Jun 28 11:16 .
drwxr-xr-x 3 root root 4.0K Jul  4 08:40 ..
-rw-r--r-- 1 root root 688K Jun 28 11:16 vboxguest.ko.xz
-rw-r--r-- 1 root root 361K Jun 28 11:16 vboxsf.ko.xz
-rw-r--r-- 1 root root 364K Jun 28 11:16 vboxvideo.ko.xz
➜  ls -lah 5.7.7-arch1-1/misc
total 8.0K
drwxr-xr-x 2 root root 4.0K Jul  4 09:43 .
drwxr-xr-x 5 root root 4.0K Jul  5 08:04 ..
-rw-r--r-- 1 root root    0 Jul  4 09:43 vboxguest.ko.xz
-rw-r--r-- 1 root root    0 Jul  4 09:43 vboxsf.ko.xz

For some reason in newest kernel files are empty.
I have reinstalled vbox guests with

sudo pacman -Rcns virtualbox-guest-utils virtualbox-guest-dkms && sudo pacman -S virtualbox-guest-utils virtualbox-guest-dkms

What could be the problem? Or I should just wait for an update of virtualbox-guest-dkms and virtualbox-guest-utils?

Thanks!

Offline

#2 2020-07-05 19:44:40

loqs
Member
Registered: 2014-03-06
Posts: 18,928

Re: Upgrading kernel from 5.7.6 to 5.7.7 breaks vbox guest additions

What was the output from pacman when you initially upgraded the kernel and after you reinstalled the virtualbox-guest-utils virtualbox-guest-dkms (/var/log/pacman.log)
Also the output of

# dkms status

Offline

#3 2020-07-06 05:42:51

mkharkov
Member
Registered: 2020-07-04
Posts: 3

Re: Upgrading kernel from 5.7.6 to 5.7.7 breaks vbox guest additions

When kernel was upgraded:

[2020-07-04T08:38:05+0300] [PACMAN] Running 'pacman -Syyu'
[2020-07-04T08:38:05+0300] [PACMAN] synchronizing package lists
[2020-07-04T08:38:10+0300] [PACMAN] starting full system upgrade
[2020-07-04T08:40:45+0300] [ALPM] running '60-mkinitcpio-remove.hook'...
[2020-07-04T08:40:45+0300] [ALPM] running '71-dkms-remove.hook'...
[2020-07-04T08:40:45+0300] [ALPM] transaction started
[2020-07-04T08:40:47+0300] [ALPM] removed intel-tbb (2020.2-1)
[2020-07-04T08:40:47+0300] [ALPM] upgraded harfbuzz (2.6.8-1 -> 2.6.8-2)
[2020-07-04T08:40:47+0300] [ALPM] upgraded librsvg (2:2.48.7-1 -> 2:2.48.8-1)
[2020-07-04T08:40:47+0300] [ALPM] upgraded gtk-update-icon-cache (1:3.24.20-1 -> 1:3.24.21-1)
[2020-07-04T08:40:47+0300] [ALPM] upgraded ca-certificates-mozilla (3.53.1-1 -> 3.54-1)
[2020-07-04T08:40:47+0300] [ALPM] upgraded curl (7.70.0-1 -> 7.71.1-1)
[2020-07-04T08:40:47+0300] [ALPM] upgraded popt (1.16-12 -> 1.18-1)
[2020-07-04T08:40:47+0300] [ALPM] upgraded libglvnd (1.3.1-1 -> 1.3.2-1)
[2020-07-04T08:40:47+0300] [ALPM] upgraded gtk3 (1:3.24.20-1 -> 1:3.24.21-1)
[2020-07-04T08:40:47+0300] [ALPM] upgraded baobab (3.34.0-2 -> 3.34.1-1)
[2020-07-04T08:40:47+0300] [ALPM] upgraded harfbuzz-icu (2.6.8-1 -> 2.6.8-2)
[2020-07-04T08:40:47+0300] [ALPM] upgraded epiphany (3.36.2-1 -> 3.36.3-1)
[2020-07-04T08:40:47+0300] [ALPM] upgraded nspr (4.25-1 -> 4.26-1)
[2020-07-04T08:40:47+0300] [ALPM] upgraded nss (3.53.1-1 -> 3.54-1)
[2020-07-04T08:40:48+0300] [ALPM] upgraded evince (3.36.6-1 -> 3.36.7-1)
[2020-07-04T08:40:48+0300] [ALPM] upgraded protobuf (3.12.0-1 -> 3.12.3-1)
[2020-07-04T08:40:48+0300] [ALPM] upgraded evolution-data-server (3.36.3-2 -> 3.36.4-1)
[2020-07-04T08:40:49+0300] [ALPM] upgraded evolution (3.36.3-1 -> 3.36.4-1)
[2020-07-04T08:40:49+0300] [ALPM] upgraded vulkan-icd-loader (1.2.141-1 -> 1.2.145-1)
[2020-07-04T08:40:49+0300] [ALPM] upgraded flatpak (1.7.2-1 -> 1.8.1-1)
[2020-07-04T08:40:49+0300] [ALPM] installed tbb (2020.2-1)
[2020-07-04T08:40:49+0300] [ALPM] upgraded python-setuptools (1:47.3.1-1 -> 1:47.3.2-1)
[2020-07-04T08:40:49+0300] [ALPM] upgraded python-wcwidth (0.2.4-2 -> 0.2.5-1)
[2020-07-04T08:40:49+0300] [ALPM] upgraded ipython (7.15.0-1 -> 7.16.1-1)
[2020-07-04T08:40:49+0300] [ALPM] installed xorg-fonts-encodings (1.0.5-2)
[2020-07-04T08:40:49+0300] [ALPM] upgraded libfontenc (1.1.4-2 -> 1.1.4-3)
[2020-07-04T08:40:49+0300] [ALPM] upgraded libmicrohttpd (0.9.70-3 -> 0.9.71-1)
[2020-07-04T08:40:49+0300] [ALPM] upgraded libwacom (1.4-1 -> 1.4.1-1)
[2020-07-04T08:40:50+0300] [ALPM] upgraded linux (5.7.6.arch1-1 -> 5.7.7.arch1-1)
[2020-07-04T08:40:53+0300] [ALPM] upgraded linux-headers (5.7.6.arch1-1 -> 5.7.7.arch1-1)
[2020-07-04T08:40:53+0300] [ALPM] upgraded tslib (1.21-2 -> 1.22-1)
[2020-07-04T08:40:54+0300] [ALPM] upgraded qt5-base (5.15.0-3 -> 5.15.0-4)
[2020-07-04T08:40:54+0300] [ALPM] upgraded re2 (1:20200601-1 -> 1:20200701-1)
[2020-07-04T08:40:54+0300] [ALPM] upgraded rygel (0.38.3-2 -> 0.38.4-1)
[2020-07-04T08:40:54+0300] [ALPM] upgraded suitesparse (5.7.2-1 -> 5.8.0-2)
[2020-07-04T08:40:54+0300] [ALPM] upgraded sushi (3.34.0+15+g6aa213e-1 -> 3.34.0+19+g331d9b7-1)
[2020-07-04T08:40:54+0300] [ALPM] upgraded ttf-roboto-mono (2.002-3 -> 2.002-4)
[2020-07-04T08:40:54+0300] [ALPM] upgraded vala (0.48.6-1 -> 0.48.7-1)
[2020-07-04T08:40:54+0300] [ALPM] upgraded vmaf (1.5.1-1 -> 1.5.2-1)
[2020-07-04T08:40:54+0300] [ALPM] upgraded zbar (0.23.1-1 -> 0.23.1-2)
[2020-07-04T08:40:56+0300] [ALPM] transaction completed
[2020-07-04T08:40:56+0300] [ALPM] running '20-systemd-sysusers.hook'...
[2020-07-04T08:40:57+0300] [ALPM] running '30-systemd-daemon-reload.hook'...
[2020-07-04T08:40:57+0300] [ALPM] running '30-systemd-hwdb.hook'...
[2020-07-04T08:40:57+0300] [ALPM] running '30-systemd-udev-reload.hook'...
[2020-07-04T08:40:57+0300] [ALPM] running '30-systemd-update.hook'...
[2020-07-04T08:40:57+0300] [ALPM] running '60-depmod.hook'...
[2020-07-04T08:41:04+0300] [ALPM] running '70-dkms-install.hook'...
[2020-07-04T08:41:04+0300] [ALPM] running '90-mkinitcpio-install.hook'...
[2020-07-04T08:41:04+0300] [ALPM-SCRIPTLET] ==> Building image from preset: /etc/mkinitcpio.d/linux.preset: 'default'
[2020-07-04T08:41:04+0300] [ALPM-SCRIPTLET]   -> -k /boot/vmlinuz-linux -c /etc/mkinitcpio.conf -g /boot/initramfs-linux.img
[2020-07-04T08:41:04+0300] [ALPM-SCRIPTLET] ==> Starting build: 5.7.7-arch1-1
[2020-07-04T08:41:05+0300] [ALPM-SCRIPTLET]   -> Running build hook: [base]
[2020-07-04T08:41:06+0300] [ALPM-SCRIPTLET]   -> Running build hook: [udev]
[2020-07-04T08:41:07+0300] [ALPM-SCRIPTLET]   -> Running build hook: [autodetect]
[2020-07-04T08:41:07+0300] [ALPM-SCRIPTLET]   -> Running build hook: [modconf]
[2020-07-04T08:41:07+0300] [ALPM-SCRIPTLET]   -> Running build hook: [block]
[2020-07-04T08:41:08+0300] [ALPM-SCRIPTLET]   -> Running build hook: [filesystems]
[2020-07-04T08:41:08+0300] [ALPM-SCRIPTLET]   -> Running build hook: [keyboard]
[2020-07-04T08:41:09+0300] [ALPM-SCRIPTLET]   -> Running build hook: [fsck]
[2020-07-04T08:41:09+0300] [ALPM-SCRIPTLET] ==> Generating module dependencies
[2020-07-04T08:41:09+0300] [ALPM-SCRIPTLET] ==> Creating gzip-compressed initcpio image: /boot/initramfs-linux.img
[2020-07-04T08:41:11+0300] [ALPM-SCRIPTLET] ==> Image generation successful
[2020-07-04T08:41:11+0300] [ALPM-SCRIPTLET] ==> Building image from preset: /etc/mkinitcpio.d/linux.preset: 'fallback'
[2020-07-04T08:41:11+0300] [ALPM-SCRIPTLET]   -> -k /boot/vmlinuz-linux -c /etc/mkinitcpio.conf -g /boot/initramfs-linux-fallback.img -S autodetect
[2020-07-04T08:41:11+0300] [ALPM-SCRIPTLET] ==> Starting build: 5.7.7-arch1-1
[2020-07-04T08:41:11+0300] [ALPM-SCRIPTLET]   -> Running build hook: [base]
[2020-07-04T08:41:11+0300] [ALPM-SCRIPTLET]   -> Running build hook: [udev]
[2020-07-04T08:41:11+0300] [ALPM-SCRIPTLET]   -> Running build hook: [modconf]
[2020-07-04T08:41:11+0300] [ALPM-SCRIPTLET]   -> Running build hook: [block]
[2020-07-04T08:41:12+0300] [ALPM-SCRIPTLET] ==> WARNING: Possibly missing firmware for module: wd719x
[2020-07-04T08:41:12+0300] [ALPM-SCRIPTLET] ==> WARNING: Possibly missing firmware for module: aic94xx
[2020-07-04T08:41:14+0300] [ALPM-SCRIPTLET]   -> Running build hook: [filesystems]
[2020-07-04T08:41:14+0300] [ALPM-SCRIPTLET]   -> Running build hook: [keyboard]
[2020-07-04T08:41:15+0300] [ALPM-SCRIPTLET]   -> Running build hook: [fsck]
[2020-07-04T08:41:17+0300] [ALPM-SCRIPTLET] ==> Generating module dependencies
[2020-07-04T08:41:17+0300] [ALPM-SCRIPTLET] ==> Creating gzip-compressed initcpio image: /boot/initramfs-linux-fallback.img
[2020-07-04T08:41:21+0300] [ALPM-SCRIPTLET] ==> Image generation successful
[2020-07-04T08:41:21+0300] [ALPM] running 'dbus-reload.hook'...
[2020-07-04T08:41:21+0300] [ALPM] running 'fontconfig.hook'...
[2020-07-04T08:41:21+0300] [ALPM] running 'gdk-pixbuf-query-loaders.hook'...
[2020-07-04T08:41:21+0300] [ALPM] running 'glib-compile-schemas.hook'...
[2020-07-04T08:41:22+0300] [ALPM] running 'gtk-query-immodules-3.0.hook'...
[2020-07-04T08:41:22+0300] [ALPM] running 'gtk-update-icon-cache.hook'...
[2020-07-04T08:41:22+0300] [ALPM] running 'texinfo-install.hook'...
[2020-07-04T08:41:22+0300] [ALPM] running 'update-ca-trust.hook'...
[2020-07-04T08:41:22+0300] [ALPM] running 'update-desktop-database.hook'...

Few times tried with vbox-guests:

[2020-07-04T16:58:46+0300] [PACMAN] Running 'pacman -S virtualbox-guest-utils'
[2020-07-04T16:58:47+0300] [ALPM] transaction started
[2020-07-04T16:58:47+0300] [ALPM] reinstalled virtualbox-guest-utils (6.1.10-1)
[2020-07-04T16:58:47+0300] [ALPM] transaction completed
[2020-07-04T16:58:47+0300] [ALPM] running '20-systemd-sysusers.hook'...
[2020-07-04T16:58:47+0300] [ALPM] running '30-systemd-daemon-reload.hook'...
[2020-07-04T16:58:47+0300] [ALPM] running '30-systemd-udev-reload.hook'...
[2020-07-04T16:58:48+0300] [ALPM] running '30-systemd-update.hook'...


[2020-07-04T17:37:00+0300] [PACMAN] Running 'pacman -Rcns virtualbox-guest-dkms'
[2020-07-04T17:37:06+0300] [ALPM] running '71-dkms-remove.hook'...
[2020-07-04T17:37:06+0300] [ALPM-SCRIPTLET] /usr/lib/dkms/alpm-hook: line 51: /usr/src/vboxsf-6.1.10_OSE/dkms.conf: No such file or directory
[2020-07-04T17:37:06+0300] [ALPM-SCRIPTLET] ==> Unable to remove module vboxsf/6.1.10_OSE for kernel 5.7.7-arch1-1: Not found in dkms status output.
[2020-07-04T17:37:06+0300] [ALPM] transaction started
[2020-07-04T17:37:08+0300] [ALPM] removed virtualbox-guest-dkms (6.1.10-1)
[2020-07-04T17:37:08+0300] [ALPM] removed dkms (2.8.1-4)
[2020-07-04T17:37:08+0300] [ALPM] transaction completed
[2020-07-04T17:37:08+0300] [ALPM] running '30-systemd-update.hook'...
[2020-07-04T17:46:15+0300] [PACMAN] Running 'pacman -S virtualbox-guest-dkms'
[2020-07-04T17:46:19+0300] [ALPM] transaction started
[2020-07-04T17:46:19+0300] [ALPM] installed dkms (2.8.1-4)
[2020-07-04T17:46:19+0300] [ALPM] installed virtualbox-guest-dkms (6.1.10-1)
[2020-07-04T17:46:19+0300] [ALPM] transaction completed
[2020-07-04T17:46:19+0300] [ALPM] running '30-systemd-update.hook'...
[2020-07-04T17:46:19+0300] [ALPM] running '70-dkms-install.hook'...
[2020-07-04T17:57:51+0300] [PACMAN] Running 'pacman -Rcns virtualbox-guest-utils virtualbox-guest-dkms'
[2020-07-04T17:57:52+0300] [ALPM] running '71-dkms-remove.hook'...
[2020-07-04T17:57:52+0300] [ALPM] transaction started
[2020-07-04T17:57:54+0300] [ALPM] removed virtualbox-guest-utils (6.1.10-1)
[2020-07-04T17:57:54+0300] [ALPM] removed xorg-xrandr (1.5.1-2)
[2020-07-04T17:57:54+0300] [ALPM] removed virtualbox-guest-dkms (6.1.10-1)
[2020-07-04T17:57:54+0300] [ALPM] removed dkms (2.8.1-4)
[2020-07-04T17:57:54+0300] [ALPM] transaction completed
[2020-07-04T17:57:54+0300] [ALPM] running '30-systemd-daemon-reload.hook'...
[2020-07-04T17:57:54+0300] [ALPM] running '30-systemd-udev-reload.hook'...
[2020-07-04T17:57:54+0300] [ALPM] running '30-systemd-update.hook'...
[2020-07-04T17:57:54+0300] [PACMAN] Running 'pacman -S virtualbox-guest-utils virtualbox-guest-dkms'
[2020-07-04T17:57:58+0300] [ALPM] transaction started
[2020-07-04T17:57:58+0300] [ALPM] installed xorg-xrandr (1.5.1-2)
[2020-07-04T17:57:58+0300] [ALPM] installed dkms (2.8.1-4)
[2020-07-04T17:57:58+0300] [ALPM] installed virtualbox-guest-dkms (6.1.10-1)
[2020-07-04T17:57:58+0300] [ALPM] installed virtualbox-guest-utils (6.1.10-1)
[2020-07-04T17:57:58+0300] [ALPM] transaction completed
[2020-07-04T17:57:58+0300] [ALPM] running '20-systemd-sysusers.hook'...
[2020-07-04T17:57:58+0300] [ALPM] running '30-systemd-daemon-reload.hook'...
[2020-07-04T17:57:58+0300] [ALPM] running '30-systemd-udev-reload.hook'...
[2020-07-04T17:57:58+0300] [ALPM] running '30-systemd-update.hook'...
[2020-07-04T17:57:58+0300] [ALPM] running '70-dkms-install.hook'...

And tried to install linux headers (package was already present):

[2020-07-04T18:09:02+0300] [PACMAN] Running 'pacman -S linux-headers'
[2020-07-04T18:09:06+0300] [ALPM] running '70-dkms-upgrade.hook'...
[2020-07-04T18:09:06+0300] [ALPM] transaction started
[2020-07-04T18:09:08+0300] [ALPM] reinstalled linux-headers (5.7.7.arch1-1)
[2020-07-04T18:09:08+0300] [ALPM] transaction completed
[2020-07-04T18:09:08+0300] [ALPM] running '30-systemd-update.hook'...
[2020-07-04T18:09:08+0300] [ALPM] running '60-depmod.hook'...
[2020-07-04T18:09:14+0300] [ALPM-SCRIPTLET] depmod: ERROR: failed to load symbols from /lib/modules/5.7.7-arch1-1/misc/vboxsf.ko.xz: Invalid argument
[2020-07-04T18:09:14+0300] [ALPM-SCRIPTLET] depmod: ERROR: failed to load symbols from /lib/modules/5.7.7-arch1-1/misc/vboxguest.ko.xz: Invalid argument
[2020-07-04T18:09:14+0300] [ALPM] running '70-dkms-install.hook'...

And I guess the problem is in dkms, it didn't rebuild modules after upgrade. But I'm unable to understand how to do it.
Dkms status gives no output at all

➜  sudo dkms status         
➜  sudo dkms autoinstall                 
➜  sudo dkms autoinstall -k 5.7.7-arch1-1

It worked only after I've installed deepin-anything-dkms, but autoinstall does not work anyway

➜  sudo dkms status                      
deepin-anything, 5.0.1, 5.7.7-arch1-1, x86_64: installed

Any ideas how I can trigger rebuild modules for new kernel?

Offline

#4 2020-07-06 09:35:41

loqs
Member
Registered: 2014-03-06
Posts: 18,928

Re: Upgrading kernel from 5.7.6 to 5.7.7 breaks vbox guest additions

Clean the old modules with DKMS

#dkms remove vboxsf/6.1.10_OSE -k 5.7.6-arch1-1
#dkms remove vboxsf/6.1.10_OSE -k 5.7.7-arch1-1

If that fails manually remove the directories /usr/lib/modules/5.7.6-arch1-1/misc plus /usr/lib/modules/5.7.7-arch1-1/misc along with their contents.
The virtualbox modules provided by the linux package should then be used but may mismatch with the host version of virtualbox.
If there is a mismatch and you can not upgrade to virtualbox 6.1.10 try dkms autoinstall again

# dkms autoinstall -k 5.7.7-arch1-1

Last edited by loqs (2020-07-06 09:35:51)

Offline

#5 2020-07-06 18:13:39

mkharkov
Member
Registered: 2020-07-04
Posts: 3

Re: Upgrading kernel from 5.7.6 to 5.7.7 breaks vbox guest additions

Removed the files you mentioned.
Load-modules fail disappeared.
After that I installed virtualbox-guest-iso and run VBoxLinuxAdditions.sh (preliminary deleted /usr/sbin/vbox-greeter and /usr/sbin/vbox-uninstall-guest-additions to be able to start script)
VBoxLinuxAdditions.sh script run /sbin/rcvboxadd quicksetup and it rebuilded guest additions for new kernel.

@loqs, thank you very much for your help!

Offline

Board footer

Powered by FluxBB