I've got my own boot loader for some custom OS and I would like to boot it with VirtualBox. I'm pretty sure that it's possible.
First of all I've tried to write the first 512 bytes of *.vdi file, since I thought that virtual hard drive (the one you create for guest OS) is purely mapped into corresponding *.vdi file. After starting a crash happened. Therefore, I decided to check if *.vdi has something like a header (which I must have overwritten) and some internal structure. Yeah, it has one.
So the question is where should I write my 512 byte boot loader inside *.vdi to be able to boot. Let's talk about STATIC *.vdi's only (in case of simplicity).
Thanks in advance. BTW, I've read this.
Custom OS with VirtualBox (Boot loader)
-
mpack
- Site Moderator
- Posts: 39134
- Joined: 4. Sep 2008, 17:09
- Primary OS: MS Windows 10
- VBox Version: VirtualBox+Oracle ExtPack
- Guest OSses: Mostly XP
Re: Custom OS with VirtualBox (Boot loader)
That discussion is too technical and esoteric for this forum. As a developer you should find TerryE's VDI tutorial a great introduction, everything else about the structure can be found in the VBox source code. I know from experience that it's easy to find and to follow.