I want to compile and run a linux-2.x kernel without a VM, but a linux container.
Nope, the kernel that runs inside a container, is the same as your host machine.
For kernel testing you must go the VM route. Vagrant is a nice tool for easily working with VMs.
We're a place where coders share, stay up-to-date and grow their careers.
We strive for transparency and don't collect excess data.