Ticket #17311 (closed defect: fixed)

Opened 5 years ago

Last modified 4 years ago

GuestAddition build fails on linux -> fixed in 5.2.8

Reported by: rithik.g Owned by:
Component: guest additions Version: VirtualBox 5.2.0
Keywords: Cc:
Guest type: Linux Host type: Linux


In file included from ./include/linux/module.h:18:0,

from /tmp/vbox.0/r0drv/linux/the-linux-kernel.h:88, from /tmp/vbox.0/VBoxGuest-linux.c:36:

/tmp/vbox.0/VBoxGuest-linux.c:1165:35: error: initialization from incompatible pointer type [-Werror=incompatible-pointer-types]

module_param_call(log, vgdrvLinuxParamLogGrpSet, vgdrvLinuxParamLogGrpGet, NULL, 0664);

./include/linux/moduleparam.h:233:24: note: in definition of macro ‘module_param_call’

{ .flags = 0, .set = _set, .get = _get }; \

Full log in attachment.


vboxadd-setup.log Download (12.8 KB) - added by rithik.g 5 years ago.
vboxadd setup build log

Change History

Changed 5 years ago by rithik.g

vboxadd setup build log

comment:1 Changed 5 years ago by rithik.g

user@rawhide ~]$ hostnamectl 

   Static hostname: rawhide
         Icon name: computer-vm
           Chassis: vm
        Machine ID: ac117c87543b44ce80fcd8b933753c84
           Boot ID: d90c8f5c13b147d7b5c089c83c5d7eb6
    Virtualization: oracle
  Operating System: Fedora 28 (Workstation Edition)
       CPE OS Name: cpe:/o:fedoraproject:fedora:28
            Kernel: Linux 4.15.0-0.rc0.git7.2.fc28.x86_64
      Architecture: x86-64

comment:2 Changed 5 years ago by mightnare

Version 0, edited 5 years ago by mightnare (next)

comment:3 Changed 4 years ago by fbauzac

The patch above works for me. Here is what I did:

In Virtualbox, insert guest additions.

Download the patch above:

wget -qO /tmp/linux-4.15.0-rc8-VBoxGuestAdditions-amd64.diff

Extract the self-extracting file:

sudo -i
mkdir /tmp/vbox
cd /tmp/vbox
/path/to/ --keep
# The above command still fails, but keeps the extracted files inside ./install/
cd install

Determine if you use VBoxGuestAdditions-amd64.tar.bz2 (64bit) or VBoxGuestAdditions-x86.tar.bz2 (32bit). Below I use VBoxGuestAdditions-amd64.tar.bz2.

Apply the patch:

mkdir VBoxGuestAdditions-amd64
tar -C VBoxGuestAdditions-amd64 -xf VBoxGuestAdditions-amd64.tar.bz2
patch -p0 < /tmp/linux-4.15.0-rc8-VBoxGuestAdditions-amd64.diff


  • Find the line
    bzip2 -d -c "$ARCH_PACKAGE" | tar -xf - -C "$INSTALLATION_DIR" || exit 1
  • Replace it with:
    cp -a VBoxGuestAdditions-amd64/* "$INSTALLATION_DIR/"
  • Run ./
  • Done! (You might need to reboot your guest)

comment:4 Changed 4 years ago by Yaroslav

With the new kernel (kernel-4.15.3-300.fc27) in Fedora the guest additions cannot be build due to the error mentioned in the bug.

Moreover if you have shared folders managed by systemd in fstab the system doesn't boot.

comment:5 Changed 4 years ago by michael

Please try out the latest Guest Additions test build<1>.

  1. wiki:Testbuilds

comment:6 Changed 4 years ago by michael

  • Status changed from new to closed
  • Resolution set to fixed
  • Summary changed from GuestAddition build fails on linux to GuestAddition build fails on linux -> fixed in 5.2.8
Note: See TracTickets for help on using tickets.
ContactPrivacy policyTerms of Use