[CentOS-devel] Status report: packaging VirtualBox Guest Additions

Sat Sep 17 19:52:22 UTC 2016
Nico Kadel-Garcia <nkadel at gmail.com>

On Sat, Sep 17, 2016 at 3:01 AM, Laurentiu Pancescu <lpancescu at gmail.com> wrote:
> On 13/09/16 16:03, Laurentiu Pancescu wrote:
>>
>> The advice from #vbox-dev is to install the Guest Additions in a VM
>> using their installer on the .iso image they provide.  This should
>> leave all the necessary sources and Makefiles for building the kernel
>> modules in /usr/src, which I could use for the RPMs instead of the
>> original source.
>
>
> Over the last few days, I installed the Guest Additions in a Vagrant box and
> took a closer look at the installer.  The source for the kernel modules that
> it copies in /usr/src compiles without any issues on both CentOS 6 and 7 and
> doesn't even require kBuild like the regular build process.
>
> Besides the kernel modules' source, the Guest Additions .iso delivers a few
> binaries, precompiled for i386 and x86_64, as well as a quite extensive
> runtime, implementing memory allocation, pseudo-random numbers, math
> routines, a crypto library, etc. [1]  We are unable to compile the userland
> on CentOS due to the unfixed bug in GCC 4.8 (which seems to be triggered by
> our own kernel headers, not the VirtualBox source), as well as having
> kernels older than 3.11.  Vagrant's check for the guest additions still

Can you use the much more recent gcc in the dev-toolset-4
repositories, which is in turn enabled by the the centos-release-scl
and centos-release-scl-rh packages? It would mean using a customized
koji or mock setup and activating a BuildRequires

> passes if I remove the userland files, but the shared folders stop working -
> having just the kernel modules is not enough.
>
> Regards,
> Laurențiu
>
> [1] https://www.virtualbox.org/browser/vbox/trunk/src/VBox/Runtime/common
> _______________________________________________
> CentOS-devel mailing list
> CentOS-devel at centos.org
> https://lists.centos.org/mailman/listinfo/centos-devel