The first example of "Orange's: an operating system implementation" in a virtual machine
Recently, I started to look at the "Orange's: Implementation of an operating system". The first example is "write the smallest 'operating system' immediately". It is very depressing to use a soft drive, I finally found the method on the Internet:
Conversion from the following.
I recently started to read the book "write an operating system by myself". At the beginning, I found that the boot disk for the system was a floppy disk! That sweat in my heart!
The USB flash disk is used now. So we are considering using a USB flash drive.
Start the following steps:
1. Since the book says that the floppy disk should be used as the boot disk, I will make the USB disk as the boot disk. After finding usboot for half a day on the internet, I used it to create a boot disk for my USB flash drive.
2. Write the compiled boot. binfile to the USB flash drive using the absolute sector tool. Similarly, winhex is found on the Internet (there is also ultraiso, this is useless), but this key step, I do not know how to use winhex to write the binfile into the USB flash disk. You can try it out...
After two hours, I still failed. So I thought, could I use a virtual floppy disk?
Well, you can start looking for new ideas.
Finally, I found someone in the same predicament as me. His solution was to use a virtual floppy disk to write the BIND file into the image file. in IMG, And then mount the most Startup file to a virtual floppy disk, you can achieve your first operating system in name ---- hello, OS world!
The specific method is:
1. Write the BIND file to the tinix. in the imgfile (if you want to create your own IMG, the fastest way is this method. Here the target file "tinix. IMG is not limited. You can find one. imgfile. In addition, this step is not required. You can simply use a. IMG .)
2. Create a virtual machine in VMware (you can also use virtual PC). Select other for the operating system and version.
3. Edit virtual machine settings in VMware. For details, see:
Note the floppy disk settings:
If you have two virtual systems, you need to change the settings of the virtual Optical Drive.
Start your system.
The following is a connection between two similar articles. I have also made a reference.
Virtual Machine VMware: http://wenku.baidu.com/view/48383d1614791711cc79172f.html
Virtualbox: http://student.csdn.net/space.php? Uid = 97077 & Do = Blog & id = 26069