Page 1 of 1

Virtualbox with grsec

PostPosted: Sun May 10, 2009 2:28 am
by Silvr
So I would like to run Virtualbox on a machine that is running grsec on a 2.6.29.2 kernel. Virtualbox requires a kernel module vboxdrv as they call it. I compiled a kernel with module loading left enabled so that I could boot into the kernel install Virtualbox with vboxdrv and then disable module loading with sysctl.

Virtualbox installed fine and was able to build vboxdrv, which it is not normally able to do when you have module loading disabled. When I go to start up a virtual machine, the entire computer hangs and I have to reboot. There is no error output from Virtualbox or in the logs.

Does anyone use Virtualbox with grsec?

Re: Virtualbox with grsec

PostPosted: Sun May 10, 2009 4:31 am
by Grach
Try to rebuild the kernel without KERNEXEC and UDEREF, and then rebuild vbox modules. It happened to work at least on x86 + vbox 1.6.x.

Re: Virtualbox with grsec

PostPosted: Sun May 10, 2009 7:26 am
by tjh
Yes, I have to build my kernel without KERNEXEC in order to get kvm running properly.

Re: Virtualbox with grsec

PostPosted: Mon May 11, 2009 5:57 pm
by PaX Team
tjh wrote:Yes, I have to build my kernel without KERNEXEC in order to get kvm running properly.
i thought i'd fixed up KERNEXEC/KVM a while ago and that combo should work. are you having a problem with the latest .29.x versions still? if so, i'd appreciate more details.

Re: Virtualbox with grsec

PostPosted: Wed May 13, 2009 4:23 am
by tjh
This was with the version that Spender had posted he'd mis-merged, so maybe that was the problem? 2.6.29.2-grsec, 2 versions back from ~spender.

Firing up the KVM's produced a bunch of OOPS then the machine hung solid.

I will happily try to reproduce for you, I just assumed that KVM+PaX wasn't supposed to be compatible.

Tim

Re: Virtualbox with grsec

PostPosted: Wed May 20, 2009 11:33 am
by tjh
@PaX Team: It seems that KVM and PAX with KERNEXEC enabled are now working really well.

I certainly had problems with it before, but all good now.

Thanks!

Re: Virtualbox with grsec

PostPosted: Wed May 20, 2009 3:30 pm
by Grach
Yes, KVM works for me too. Thank you very much, PaX Team! Having opensource virtualization with KERNEXEC is great and reminds me the day I've discovered PaX and KERNEXEC in the Linux world... The job you're doing is awesome, very appreciated. Thank you!