Virtual Machine
Virtual Machine
Ok, I compiled test real-adress code with fasm on win.
Now I need to test it on Virtual Machine.
I tried to make bootable floppy and use it with Sun Virtualbox, but it doesn't work.
Please advice smth to use.
Now I need to test it on Virtual Machine.
I tried to make bootable floppy and use it with Sun Virtualbox, but it doesn't work.
Please advice smth to use.
Re: Virtual Machine
What's wrong? What is the error message? Is that your OS is buggy? Or maybe the floppy image is broken?
Trying to tell us more about what happens when you test your OS in a virtual machine.
Trying to tell us more about what happens when you test your OS in a virtual machine.
"Open source seems to embrace the dark side of human nature." - Ville Turjanmaa
Re: Virtual Machine
I used Winimage for making floppy image.
1. selected my "os.bin" file in "image" -> "boot sector properties"
2. saved image file in format .imz
3. mounted it on my Virtual Machine
4. nothing happens(no output or smth else)
1. selected my "os.bin" file in "image" -> "boot sector properties"
2. saved image file in format .imz
3. mounted it on my Virtual Machine
4. nothing happens(no output or smth else)
Re: Virtual Machine
IMZ files are compressed floppy images. I don't know if VirtualBox supports this format.scrat wrote: 2. saved image file in format .imz
Try to save your image in uncompressed format IMA.
P.S.: you can use BFI for building FAT12 floppy images. And this tool is free!
"Open source seems to embrace the dark side of human nature." - Ville Turjanmaa
Re: Virtual Machine
1. Runned bfi.exe with -o="os.bin" and -b="load.bin", where load.bin is bootable 512bit binary made by Winimage.
2. Loaded img file to Virtualbox and got boot text from image and message, that vm cannot boot from harddisk.
2. Loaded img file to Virtualbox and got boot text from image and message, that vm cannot boot from harddisk.
Re: Virtual Machine
Is that your boot sector supports the FAT12 file system? Otherwise, it is normal for BFI and WinImage does not work!scrat wrote:1. Runned bfi.exe with -o="os.bin" and -b="load.bin", where load.bin is bootable 512bit binary made by Winimage.
2. Loaded img file to Virtualbox and got boot text from image and message, that vm cannot boot from harddisk.
If yes, this is a little help on the use of BFI:
Code: Select all
bfi -f=<floppy image name> -b=<boot sector> <dir>
"Open source seems to embrace the dark side of human nature." - Ville Turjanmaa
Re: Virtual Machine
Ok, how can I create bootsector normally?Tommy wrote:Is that your boot sector supports the FAT12 file system? Otherwise, it is normal for BFI and WinImage does not work!scrat wrote:1. Runned bfi.exe with -o="os.bin" and -b="load.bin", where load.bin is bootable 512bit binary made by Winimage.
2. Loaded img file to Virtualbox and got boot text from image and message, that vm cannot boot from harddisk.
If yes, this is a little help on the use of BFI:<dir> is the folder that contains all files to be included on the floppy image.Code: Select all
bfi -f=<floppy image name> -b=<boot sector> <dir>
Re: Virtual Machine
Understood! You use WinImage for generating FAT12 boot sector. I had forgotten he could do that!scrat wrote: Ok, how can I create bootsector normally?
...
where load.bin is bootable 512bit binary made by Winimage.
You can use WinImage yet, it (normally) works.
But in the future, write your own boot sector!
"Open source seems to embrace the dark side of human nature." - Ville Turjanmaa
Re: Virtual Machine
I didn't understood, I'm selecting file for bootsector in my filesystem, and then making image with it, how can it work?
Re: Virtual Machine
Instead of making floppy image, you can use your own boot loader directly.
Re: Virtual Machine
how?kop99 wrote:Instead of making floppy image, you can use your own boot loader directly.