[SOLVED] Testing with VM and Custom Boot Loader
Posted: Thu Aug 04, 2011 1:28 pm
I've got a custom boot loader and I would like to be able to boot my system with some VM (VirtualBox, VMware, etc).
Just in case of testing purposes the kernel is currently abandoned. So actually the only thing this boot loader does - is printing a string (using some bios interruptions). That's the only thing I want to be working right now. So...
First of all I've tried to make raw write of this boot loader (or perhaps boot "printer" ) to the beginning of VirtualBox's virtual drive file (*.vdi). But no success, since *.vdi files have their own structure and a header. I'm not really keen to dig into this structure, because there no proper documentation on it.
Secondly I've tried VMware. VMware's emulated hard drives seem to be purely mapped into *.vmdk files and therefore *.vmdk files do not have any headers or structure. So I did the same (wrote the first 512 bytes of boot loader into it). But when I start VM just nothing happens, and even carret does not blink - looks like VM freezes or whatever.
I would like to know if anyone has done similar tricks and succeeded. The problem is - I don't want to mess with that floppy stuff. Is there another way to test boot loader and operating system development in general, like the one I'm proposing in this topic.
Thanks in advance.
Just in case of testing purposes the kernel is currently abandoned. So actually the only thing this boot loader does - is printing a string (using some bios interruptions). That's the only thing I want to be working right now. So...
First of all I've tried to make raw write of this boot loader (or perhaps boot "printer" ) to the beginning of VirtualBox's virtual drive file (*.vdi). But no success, since *.vdi files have their own structure and a header. I'm not really keen to dig into this structure, because there no proper documentation on it.
Secondly I've tried VMware. VMware's emulated hard drives seem to be purely mapped into *.vmdk files and therefore *.vmdk files do not have any headers or structure. So I did the same (wrote the first 512 bytes of boot loader into it). But when I start VM just nothing happens, and even carret does not blink - looks like VM freezes or whatever.
I would like to know if anyone has done similar tricks and succeeded. The problem is - I don't want to mess with that floppy stuff. Is there another way to test boot loader and operating system development in general, like the one I'm proposing in this topic.
Thanks in advance.