There is a project called Singularity that addressed development of Operating Systems in managed code
[
^].
Developing an OS is a HUGE task - but at least going through some of the documentation available could give you an idea how difficult it is to do what you want to do (not saying its impossible - just difficult).