Virtualbox with grsec

Discuss usability issues, general maintenance, and general support issues for a grsecurity-enabled system.

Virtualbox with grsec

Postby Silvr » Sun May 10, 2009 2:28 am

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?
Silvr
 
Posts: 21
Joined: Sun Apr 19, 2009 2:34 pm

Re: Virtualbox with grsec

Postby Grach » Sun May 10, 2009 4:31 am

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.
Grach
 
Posts: 66
Joined: Thu Feb 05, 2009 11:15 pm

Re: Virtualbox with grsec

Postby tjh » Sun May 10, 2009 7:26 am

Yes, I have to build my kernel without KERNEXEC in order to get kvm running properly.
tjh
 
Posts: 102
Joined: Sat Oct 16, 2004 8:19 pm

Re: Virtualbox with grsec

Postby PaX Team » Mon May 11, 2009 5:57 pm

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.
PaX Team
 
Posts: 2310
Joined: Mon Mar 18, 2002 4:35 pm

Re: Virtualbox with grsec

Postby tjh » Wed May 13, 2009 4:23 am

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
tjh
 
Posts: 102
Joined: Sat Oct 16, 2004 8:19 pm

Re: Virtualbox with grsec

Postby tjh » Wed May 20, 2009 11:33 am

@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!
tjh
 
Posts: 102
Joined: Sat Oct 16, 2004 8:19 pm

Re: Virtualbox with grsec

Postby Grach » Wed May 20, 2009 3:30 pm

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!
Grach
 
Posts: 66
Joined: Thu Feb 05, 2009 11:15 pm


Return to grsecurity support

cron