I've tried to write a simple kernel in C. I've found this tutorial: Bare Bones. I've followed the steps. When I compiled the "o" files to one "bin" file, I tried to run this in VirtualBox. I've changed "bin" extension to "img". I've created a new virtual machine and when I tried to set "img" file as floppy image, I get an error:
A floppy fájl megnyitása sikertelen: path_of_file. (Eng.: failed to load floppy image.)
Could not get the storage format of the medium 'path_of_file' (VERR_NOT_SUPPORTED).
Eredmény kód: VBOX_E_IPRT_ERROR (0x80BB0005) (Eng.: Result code.)
Komponens: Medium (Eng.: Component.)
Interfész: IMedium {05f2bbb6-a3a6-4fb9-9b49-6d0dda7142ac} (Eng.: Interface.)
Callee: IVirtualBox {fafa4e17-1ee2-4905-a10e-fe7c18bf5554}
Callee RC: VBOX_E_OBJECT_NOT_FOUND (0x80BB0001)
I will be very happy, if someone can tell me what is the problem and how I can fix it. I've searched for the solution all over the internet, but I didn't find it yet. Software what I used:
- NASM 2.11.06
- i686-elf-gcc 4.8.2 (from OSDev forum)
- VirtualBox 4.3.20
My OS is Windows 7 Professional 64-bit.
(Sorry for my english, but I've been learning this language yet.)
Thanks.