crazylinux 发表于 2011-11-4 09:13:05

在bochs虚拟机中安装WindowsXP或linux都可以

本帖最后由 crazylinux 于 2011-11-4 09:14 编辑

这个比金子还金子
比银子还银子
好吧话不多说,开始安装 WIndowsXP
1、下载安装bochs……(这步不会的下面可以不用看了……)
2、在Bochs安装目录中创建一个WinXP文件夹(同上面的括号)
3、创建虚拟硬盘用于存放WinXP镜像
具体步骤:
进入命令提示符,使用bximage工具
生成image需要回答几个问题
一:生成硬盘还是软盘
二:镜像类型 flat sparse or growing
三:镜像大小:WinXP一般5GB足够了
四:镜像名称:这个按照您个人的喜好吧
请注意!最后会要求你复制下面一行虚拟硬盘的参数,一定要复制下来,
否则一旦cmd退出,这些参数很难找回来

(粗体为需要输入的数据)
过程很简单
之后将安装目录下生成的img文件移动到你创建的文件夹中
4、下面就是配置WinXP虚拟机参数,
具体步骤
从bochs安装目录的dlxlinux复制出bochsrc.bxrc
用记事本打开编辑

############IMPORTANT##############
cpu: count=1, ips=10000000, reset_on_triple_fault=1, ignore_bad_msrs=1
################上面这句话非常重要,如果不加上,安装Windows XP的时候会蓝屏###############
# how much memory the emulated machine will have
megs: 256
##############此处改为256(内存大小,你可以根据你自己的需要修改,不过建议最好不要低于256M)
# filename of ROM images
romimage: file=BIOS-bochs-latest
vgaromimage: file=VGABIOS-lgpl-latest
###########我将BIOS-bochs-latest 和VGABIOS-lgpl-latest 复制到了我创建的文件夹中,于是去掉了"../"
# what disk images will be used
##删去此处无用的内容
# hard disk
#此处复制刚才那段要复制下来的参数
ata0: enabled=1, ioaddr1=0x1f0, ioaddr2=0x3f0, irq=14
ata0-master: type=disk, path="winxp.img", mode=flat, cylinders=10158, heads=16, spt=63
ata1: enabled=1, ioaddr1=0x170, ioaddr2=0x370, irq=15
ata1-master: type=cdrom, path=f:, status=inserted, biosdetect=auto, model="Generic 1234"
#我存放WinXP安装盘在f:(物理光驱) 你也可以使用ISO文件来安装WInXP

# choose the boot disk.
boot: cdrom,disk
#此处像我这样修改
#后面不动
# 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.
#keyboard_mapping: enabled=1, map=$BXSHARE/keymaps/x11-pc-us.map
#keyboard_mapping: enabled=1, map=$BXSHARE/keymaps/x11-pc-fr.map
#keyboard_mapping: enabled=1, map=$BXSHARE/keymaps/x11-pc-de.map
#keyboard_mapping: enabled=1, map=$BXSHARE/keymaps/x11-pc-es.map


按照上面的提示修改即可,你也可以像注释一样复制BIOS-bochs-latest 和VGABIOS-lgpl-latest 到你创建的文件夹中……
5、打开bochs,Load你刚刚修改完的bochsrc.bxrc

开始你的WinXP安装吧!(
可能会比较慢,还有如果你说你不会安装Windows XP,
那么恭喜你,显然上面的内容您都白看了……





http://bbs.fishc.com/xwb/images/bgimg/icon_logo.png 该贴已经同步到 crazylinux的微博

bisoo 发表于 2012-2-21 23:27:54

看完之后,才发现,我还没白看~{:2_25:}

℡老婆大人。 发表于 2012-3-8 13:04:23

为什么不用vmware

bananazzl 发表于 2012-4-1 23:04:11

哪里有linux系统下载呢?

sky! 发表于 2012-7-2 19:37:43

;P;P;P;P;P;P;P;这年头干啥也得专业点.....P;P;P;P;P;P;P;P;P

godviqpl 发表于 2013-7-20 19:26:17

还真没有看懂。:(
页: [1]
查看完整版本: 在bochs虚拟机中安装WindowsXP或linux都可以