Hello, I want to make very simple OS that just shows a red screen, shut down with a key. If I am not wrong I can use OpenGL to render graphics for my OS.
Is that possible to do it ?
Which things should I need to do to install it like windows ?
You want to make a "simple" OS? Well... The words "simple" and "OS" does not go well together. You have created such a question where you have juxtaposed the words Simple and OS. To create an OS, you need so many things. I wouldn't dare call any OS simple. Any OS is very complex and difficult to make.
Alright then I made a bootable device, simple boot.asm (compiled as BIN) and I thing simple OS means this for me. Now, can I call c++ code inside asm file and continue with c++ ?
That's a bootloader, not an OS. You don't have an interrupt handler, you can't allocate memory, you can't create processes or threads, you can't use I/O devices, ...
So, yes, within those constraints you could run some very rudimentary C++ code, and if all you want to do is do some processing and not be able to take any input from anywhere nor output any results, I suppose you can do that.
A bit off-topic, but if you ever do make something noteworthy, be sure to talk about it in the Lounge :) This OS stuff is well over my head, but does seem interesting so good luck.
I will say, getting your OS/custom windowing system to interact with a graphics card to set up a proper context for OpenGL is probably really difficult to do from scratch, but I'm sure it's possible.