Ticket #17311 (closed defect: fixed)
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 |
Description
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.
Attachments
Change History
Changed 3 years ago by rithik.g
-
attachment
vboxadd-setup.log
added
comment:1 Changed 3 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 3 years ago by mightnare
comment:3 Changed 3 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 https://raw.githubusercontent.com/mjmaravillo/misc/master/linux-4.15.0-rc8-VBoxGuestAdditions-amd64.diff
Extract the self-extracting file:
sudo -i mkdir /tmp/vbox cd /tmp/vbox /path/to/VBoxLinuxAdditions.run --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
Edit install.sh:
- 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 ./install.sh
- Done! (You might need to reboot your guest)
comment:4 Changed 3 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.
vboxadd setup build log