我在学习bochs的时候在bochs读取配置文件的时候bochs未能读取配置文件,显示错误如下
Please choose one: [2]
What is the configuration file name?
To cancel, type 'none'. [none] bochsrc.disk
00000000000i[ ] reading configuration from bochsrc.disk
00000000000p[ ] >>PANIC<< reading from bochsrc.disk failed
========================================================================
Event type: PANIC
Device: [ ]
Message: reading from bochsrc.disk failed
A PANIC has occurred. Do you want to:
cont - continue execution
alwayscont - continue execution, and don't ask again.
This affects only PANIC events from device [ ]
die - stop execution now
abort - dump core
debug - continue and return to bochs debugger
Choose one of the actions above: [die]
我不知道为什么会出现这种情况,我的配置文件内容如下
###############################################################
# Configuration file for Bochs
###############################################################
# how much memory the emulated machine will have
megs: 32
# filename of ROM images
romimage: file=/home/centos/bochs/bochs/share/bochs/BIOS-bochs-latest
vgaromimage: file=/home/centos/bochs/bochs/share/bochs/VGABIOS-lgpl-latest
# what disk images will be used
#floppya: 1_44=a.img, status=inserted
# choose the boot disk.
#boot: floppy
boot: disk
# where do we send log messages?
log: bochsout.txt
# disable the mouse
mouse: enabled=0
keyboard_mapping: enable=1,
map=/home/centos/bochs/bochs/share/bochs/keymaps/x11-pc-us.map
# enable key mapping, using US layout as default.
keyboard: keymap=/home/centos/bochs/bochs/share/bochs/keymaps/x11-pc-us.map
# Hard disk Settings
ata0: enabled=1, ioaddr1=0x1f0, ioaddr2=0x3f0, irq=14
#gdb support
gdbstub: enabled=1, port=1234, text_base=0, data_base=0, bss_base=0
###########################################################################
我用的是bochs2.6.9的版本,Linux的版本为centos7,我的bochs文件linux里显示是只读模式。配置文件放在了bin的文件目录下。
我想知道为什么bochs找不到配置文件,我用了很多方法都无法解决,希望大家能帮忙解决。