bochs配置文件:
#Configuration file for Bochs
#how much memory the emulated mchine will have
megs:64
#filename of ROM image
romimage:file=./BIOS-bochs-latest
vgaromimage:file=./VGABIOS-lgpl-latest
#what disk images will be used
#floppya:1_44=./f.img,status=inserted
#hard disk
#ata0-master: type=disk, path="sda.img", mode=flat, cylinders=1015, heads=16, spt=63
ata0-master: type=disk, path="LEECHUNG.vhd", mode=flat, cylinders=1003, heads=12, spt=17
#choose the boot disk
boot:disk
#where do we send log message
log:bochsout.txt
#disable the mouse
mouse:enabled=0
#enable key mapping, using US layout as default.
keyboard_mapping:enabled=1,map=./keymaps/x11-pc-us.map
  使用dd命令将mbr.asm程序写入到主引导删除中
  dd if=mbr.bin of=XXXXX.vhd bs=512 count=1