bochs的配置文件是在哪里的?
在我机器上只有一个地方有/etc/bochs-init/bochsrc,看了很多说明这个bochsrc应该就是配置文件了,但是自己怎么改,就是不行,bochs一直说找不到软驱在哪里!郁闷了,实在是快受不了了。懂的人给个意见吧!先谢谢了~
bochs 配置文件问题?
- a14331990
- 帖子: 604
- 注册时间: 2009-03-25 9:38
- 系统: Fedora 22 x86_64
Re: bochs 配置文件问题?
文档里说了
http://bochs.sourceforge.net/cgi-bin/to ... index.html
The easiest way to setup Bochs for the first time is to use the example configuration file called bochsrc-sample.txt. Locate that file (location depends on the (host) OS and on the installation facility used) and copy it to a location where Bochs looks for that file, see Section 5.2.
就是复制 bochsrc-sample.txt(位置是/usr/share/doc/bochs)作为配置文件,而配置文件的搜索顺序在Section 5.2也提到了
http://bochs.sourceforge.net/cgi-bin/to ... index.html
5.2. Search order for the configuration file
If no configuration file is specified on the command line and config file loading is not disabled, Bochs searches for a default configuration file. This is the search order:
1.
.bochsrc in the current directory
2.
bochsrc in the current directory
3.
bochsrc.txt in the current directory
4.
(win32 only) bochsrc.bxrc in the current directory
5.
(Unix only) .bochsrc in the user's home directory
6.
(Unix only) bochsrc in the /etc directory
于是最简单的办法就是
cd 到某个目录
cp /usr/share/doc/bochs/bochsrc-sample.txt bochsrc
就在这个目录下建立了配置文件。
接下来,接着看文档
http://bochs.sourceforge.net/cgi-bin/to ... index.html
The next step is to change the configuration so that it fits your needs: ...
http://bochs.sourceforge.net/cgi-bin/to ... index.html
The easiest way to setup Bochs for the first time is to use the example configuration file called bochsrc-sample.txt. Locate that file (location depends on the (host) OS and on the installation facility used) and copy it to a location where Bochs looks for that file, see Section 5.2.
就是复制 bochsrc-sample.txt(位置是/usr/share/doc/bochs)作为配置文件,而配置文件的搜索顺序在Section 5.2也提到了
http://bochs.sourceforge.net/cgi-bin/to ... index.html
5.2. Search order for the configuration file
If no configuration file is specified on the command line and config file loading is not disabled, Bochs searches for a default configuration file. This is the search order:
1.
.bochsrc in the current directory
2.
bochsrc in the current directory
3.
bochsrc.txt in the current directory
4.
(win32 only) bochsrc.bxrc in the current directory
5.
(Unix only) .bochsrc in the user's home directory
6.
(Unix only) bochsrc in the /etc directory
于是最简单的办法就是
cd 到某个目录
cp /usr/share/doc/bochs/bochsrc-sample.txt bochsrc
就在这个目录下建立了配置文件。
接下来,接着看文档
http://bochs.sourceforge.net/cgi-bin/to ... index.html
The next step is to change the configuration so that it fits your needs: ...
qq 591799783
email a14331990#hotmail.com a14331990#163.com
email a14331990#hotmail.com a14331990#163.com
-
- 帖子: 29
- 注册时间: 2008-10-07 18:29
Re: bochs 配置文件问题?
看了ls的帖子,发现在目录文件/usr/share/doc/bochs下没有,bochsrc-sample.txt这个文件,
所以,我把在/etc/bochs-init/bochsrc下的这个文件作为原版,复制到了/usr/share/doc/bochs下,发现这下bochs是找的到文件了!谢啦~
问题又来了,因为/etc/bochs-init/bochsrc被我改的有些乱了,所以,报错了!
问下,bochsrc未改动版本在哪里会有?
所以,我把在/etc/bochs-init/bochsrc下的这个文件作为原版,复制到了/usr/share/doc/bochs下,发现这下bochs是找的到文件了!谢啦~
问题又来了,因为/etc/bochs-init/bochsrc被我改的有些乱了,所以,报错了!
问下,bochsrc未改动版本在哪里会有?
- a14331990
- 帖子: 604
- 注册时间: 2009-03-25 9:38
- 系统: Fedora 22 x86_64
Re: bochs 配置文件问题?
最省事的办法是重装bochs,就得到bochsrc的未改动版本。
去
http://sourceforge.net/projects/bochs/files/
下载bochs-2.4.2-1.i586.rpm
解压就能在usr/share/doc/bochs下找到bochsrc-sample.txt,我添个附件吧。
另外你可以考虑象管理虚拟机一样为每个虚拟机建立单独的配置文件,比如
mkdir -p ~/vm/redhat
cp bochsrc-sample.txt ~/vm/redhat/bochsrc
mkdir -p ~/vm/minix
cp bochsrc-sample.txt ~/vm/redhat/bochsrc
然后要开~/vm/redhat目录下的虚拟机则进入该目录调用bochs。
我用过bochs,当虚拟机用的话,速度不如qemu,界面不如virtualbox,其实vitualbox用了qemu的代码,速度也比qemu慢不了多少。bochs的真实用途好象是调试系统内核,尤其是minix等正在研究中的系统的内核。见http://en.wikipedia.org/wiki/Bochs,http://en.wikipedia.org/wiki/MINIX。
去
http://sourceforge.net/projects/bochs/files/
下载bochs-2.4.2-1.i586.rpm
解压就能在usr/share/doc/bochs下找到bochsrc-sample.txt,我添个附件吧。
另外你可以考虑象管理虚拟机一样为每个虚拟机建立单独的配置文件,比如
mkdir -p ~/vm/redhat
cp bochsrc-sample.txt ~/vm/redhat/bochsrc
mkdir -p ~/vm/minix
cp bochsrc-sample.txt ~/vm/redhat/bochsrc
然后要开~/vm/redhat目录下的虚拟机则进入该目录调用bochs。
我用过bochs,当虚拟机用的话,速度不如qemu,界面不如virtualbox,其实vitualbox用了qemu的代码,速度也比qemu慢不了多少。bochs的真实用途好象是调试系统内核,尤其是minix等正在研究中的系统的内核。见http://en.wikipedia.org/wiki/Bochs,http://en.wikipedia.org/wiki/MINIX。
- 附件
-
- bochsrc-sample.txt.tar.bz2
- (11.95 KiB) 已下载 142 次
qq 591799783
email a14331990#hotmail.com a14331990#163.com
email a14331990#hotmail.com a14331990#163.com
-
- 帖子: 29
- 注册时间: 2008-10-07 18:29
Re: bochs 配置文件问题?
谢啦,这下可以了,我是第一次接触bochs,跟着一本“Orang's 一个操作系统的实现”来慢慢做系统的,
-
- 帖子: 4
- 注册时间: 2009-06-21 13:29
Re: bochs 配置文件问题?
遇到和你一样的问题,我也在看这本书,可以按书上提供的示例配置文件,保存在当前目录下(其他目录也没事),并在命令行的文件名前加绝对路径就可以了,例如
bochs -f /home/wang/bochsrc
再在菜单上选6开始模拟.
bochs -f /home/wang/bochsrc
再在菜单上选6开始模拟.