You are not logged in.

#1 2012-08-05 23:27:17

Cylinder57
Member
Registered: 2012-04-30
Posts: 29

Virtualbox not working in Grsecurity-patched kernel

Hello everyone.

I manually compiled a linux 3.4.7 kernel (without ABS) with these patches:
3.4.4-fix-backlight-regression.patch
change-default-console-loglevel.patch
fix-acerhdf-1810T-bios.patch
grsecurity-2.9.1-3.4.7-201208021520.patch    (Grsecurity Testing)
i915-fix-ghost-tv-output.patch

My Virtualbox version is:
4.1.18-4

Note that this kernel’s settings are the same as Arch’s defaults settings, except:
- The processor family is listed as: Opteron/Athlon64/Hammer/K8
- Grsecurity and Pax are activated and its settings are modified.

I can open the Virtualbox window where I select which virtual machine I run.  However, I cannot actually run a virtualbox machine.

Here are the two popups that result from attempting to open a virtual machine:

Failed to open a session for the virtual machine Name.
 
The virtual machine 'Name' has terminated unexpectedly during startup with exit code 1.
 
Result Code: NS_ERROR_FAILURE (0x80004005)
Component: Machine
Interface: IMachine {5eaa9319-62fc-4b0a-843c-0cb1940f8a91}
Kernel driver not installed (rc=-1908)
 
The VirtualBox Linux kernel driver (vboxdrv) is either not loaded or there is a permission problem with /dev/vboxdrv. Please reinstall the kernel module by executing
 
'pacman -S virtualbox-modules'
 
as root. If you don't use our stock kernel, install virtualbox-source and execute /usr/bin/vboxbuild.

Typically, in Arch, these popups result from the fact that the vboxdrv module is not loaded.  Therefore, I tried, “modprobe vboxdrv” to solve this error.  The output is that another error states, “FATAL: Modprobe vboxdrv not found.”

I tried generating modules for this custom module with:
dkms install vboxhost/4.1.18
However, this is the result:

Building module:
cleaning build area....
make KERNELRELEASE=3.4.7-grsec-ARCH -C /usr/lib/modules/3.4.7-grsec-ARCH/build M=/var/lib/dkms/vboxhost/4.1.18/build....(bad exit status: 2)
Error! Bad return status for module build on kernel: 3.4.7-grsec-ARCH (i686)
Consult /var/lib/dkms/vboxhost/4.1.18/build/make.log for more information.

I also tried to generate modules with:
dkms install vboxhost/4.1.18 -k 3.4.7-grsec-ARCH/i686
The exact same result happened:

Building module:
cleaning build area....
make KERNELRELEASE=3.4.7-grsec-ARCH -C /usr/lib/modules/3.4.7-grsec-ARCH/build M=/var/lib/dkms/vboxhost/4.1.18/build.....(bad exit status: 2)
Error! Bad return status for module build on kernel: 3.4.7-grsec-ARCH (i686)
Consult /var/lib/dkms/vboxhost/4.1.18/build/make.log for more information.

Here is the /var/lib/dkms/vboxhost/4.1.18/build/make.log file:
http://pastebin.com/WA7b1JiB
Here is the Grsec/Pax config:
http://pastebin.com/JevGTvxy
Here is the whole kernel config:
http://pastebin.com/yeNf0Wn3

Last edited by Cylinder57 (2012-08-05 23:33:10)

Offline

Board footer

Powered by FluxBB