更新:最近又尝试安装了一下bochs,结果又出问题,在写完配置文件之后时,会报一个panic级别的错误,说是无法打开rom image。。不知道问题出在哪里
1:环境配置
原先打算用virtualbox+ubuntu的模式来进行操作。结果在虚拟机中配置操作系统时出现未知错误,无法进入操作系统的安装,键盘无效,鼠标无效。几度折腾,终于发现,是Windows10自带的hyper v 与virtualbox冲突,把virtualbox删掉,在hyper v中配置虚拟机,大功告成。
问题解决:在virtualbox安装centos系统时,无法使用鼠标,原因使用的是red hat版本,与镜像文件不兼容,解决方法:选择其他lunix。
bochs的安装:在官网下载tar文件,使用tar xzvf bochs-2.6.9.tar.gz
将文件解压,问题:需要将下载的文件移动至主目录下方可解压,否则会出现找不到该目录的问题。
第二步:cd bochs-2.6.9
第三步:./configure \ --prefix=/实际路径/bochs
--enable-debugger \ --enable-disasm \
第四步:
make
sudo make install
最后,配置文件
# configuration file generated by Bochs
plugin_ctrl: unmapped=1, biosdev=1, speaker=1, extfpuirq=1, parallel=1, serial=1, iodebug=1
config_interface: textconfig
display_library: x
#memory: host=2048, guest=2048
romimage: file="/usr/local/share/bochs/BIOS-bochs-latest"
vgaromimage: file="/usr/local/share/bochs/VGABIOS-lgpl-latest"
boot: floppy
floppy_bootsig_check: disabled=0
floppya: type=1_44, 1_44="boot.img", status=inserted, write_protected=0
# no floppyb
ata0: enabled=1, ioaddr1=0x1f0, ioaddr2=0x3f0, irq=14
ata0-master: type=none
ata0-slave: type=none
ata1: enabled=1, ioaddr1=0x170, ioaddr2=0x370, irq=15
ata1-master: type=none
ata1-slave: type=none
ata2: enabled=0
ata3: enabled=0
pci: enabled=1, chipset=i440fx
vga: extension=vbe, update_freq=5
print_timestamps: enabled=0
debugger_log: -
magic_break: enabled=0
port_e9_hack: enabled=0
private_colormap: enabled=0
clock: sync=none, time0=local, rtc_sync=0
# no cmosimage
# no loader
log: -
logprefix: %t%e%d
debug: action=ignore
info: action=report
error: action=report
panic: action=ask
keyboard: type=mf, serial_delay=250, paste_delay=100000, user_shortcut=none
mouse: type=ps2, enabled=0, toggle=ctrl+mbutton
speaker: enabled=1, mode=system
parport1: enabled=1, file=none
parport2: enabled=0
com1: enabled=1, mode=null
com2: enabled=0
com3: enabled=0
com4: enabled=0
megs: 2048
5:记得将文件放置在主目录下
6:若无法出现bochs界面,按c即可
#搞了7-8天才弄好,有什么问题可以联系我
qq:947281203
最后感谢很多博主,感谢他们的经验,给我指路。