直接运行bximage.exe即可 说一下各个参数
@1 hd or fd hd 就是硬盘 fd就是软盘 这里我们填入一个hd 然后回车
@2 flat, sparse or growing 这个我也没太搞明白 我一般选flat (平坦的)
Sparse(稀疏的) growing(可增长的)
@3 Enter the hard disk size in megabytes, between 1 and 129023
给硬盘指定一个大小 1-129023MB之间 我指定的是2048MB
@4 What should I name the image 我做的是xp我起名字叫 xp.img
###############################################################
# bochsrc.txt file for DLX Linux disk image.
###############################################################
# how much memory the emulated machine will have
megs: 512
# #号表示注释 类似于C++中的// 这里的意思是设置512MB内存
# filename of ROM images
romimage: file=../BIOS-bochs-latest
vgaromimage: file=../VGABIOS-lgpl-latest
#设置主板的bios和显卡的bios ../这个的意思是返回上一层目录 也就是C:\bochs目录
# what disk images will be used
floppya: 1_44=floppya.img, status=inserted
floppyb: 1_44=floppyb.img, status=inserted
#设置软盘的参数
# hard disk
ata0: enabled=1, ioaddr1=0x1f0, ioaddr2=0x3f0, irq=14
ata0-master: type=disk, path="2003.img", mode=flat, cylinders=4161, heads=16, spt=63
# enable key mapping, using US layout as default.
#
# NOTE: In Bochs 1.4, keyboard mapping is only 100% implemented on X windows.
# However, the key mapping tables are used in the paste function, so
# in the DLX Linux example I'm enabling keyboard_mapping so that paste
# will work. Cut&Paste is currently implemented on win32 and X windows only.
###############################################################
# bochsrc.txt file for DLX Linux disk image.
###############################################################
# how much memory the emulated machine will have
megs: 512
# filename of ROM images
romimage: file=../BIOS-bochs-latest
vgaromimage: file=../VGABIOS-lgpl-latest
# what disk images will be used
floppya: 1_44=floppya.img, status=inserted
floppyb: 1_44=floppyb.img, status=inserted
# hard disk
ata0: enabled=1, ioaddr1=0x1f0, ioaddr2=0x3f0, irq=14
ata0-master: type=disk, path="XP.img", mode=flat, cylinders=4161, heads=16, spt=63
# choose the boot disk.
boot: cdrom
# default config interface is textconfig.
#config_interface: textconfig
#config_interface: wx
#display_library: x
# other choices: win32 sdl wx carbon amigaos beos macintosh nogui rfb term svga
# where do we send log messages?
log: bochsout.txt
# disable the mouse, since DLX is text only
mouse: enabled=0
# enable key mapping, using US layout as default.
#
# NOTE: In Bochs 1.4, keyboard mapping is only 100% implemented on X windows.
# However, the key mapping tables are used in the paste function, so
# in the DLX Linux example I'm enabling keyboard_mapping so that paste
# will work. Cut&Paste is currently implemented on win32 and X windows only.