admin 管理员组文章数量: 887021
好吧话不多说,开始安装 WIndowsXP
1、下载安装bochs……(这步不会的下面可以不用看了……)
2、在Bochs安装目录中创建一个WinXP文件夹(同上面的括号)
3、创建虚拟硬盘用于存放WinXP镜像
具体步骤:
进入命令提示符,使用bximage工具
生成image需要回答几个问题
一:生成硬盘还是软盘
二:镜像类型 flat sparse or growing
三:镜像大小:WinXP一般5GB足够了
四:镜像名称:这个按照您个人的喜好吧
请注意!最后会要求你复制下面一行虚拟硬盘的参数,一定要复制下来,
否则一旦cmd退出,这些参数很难找回来
下面给出我用Bximage创建虚拟硬盘的范例
C:\Program Files\Bochs-2.4.5>bximage
========================================================================
bximage
Disk Image Creation Tool for Bochs
$Id: bximage.c,v 1.34 2009/04/14 09:45:22 sshwarts Exp $
========================================================================
Do you want to create a floppy disk image or a hard disk image?
Please type hd or fd. [hd] hd
What kind of image should I create?
Please type flat, sparse or growing. [flat] flat
Enter the hard disk size in megabytes, between 1 and 129023
[10] 5000
I will create a 'flat' hard disk image with
cyl=10158
heads=16
sectors per track=63
total sectors=10239264
total size=4999.64 megabytes
What should I name the image?
[c.img] winxp.img
Writing: [] Done.
I wrote 5242503168 bytes to winxp.img.
The following line should appear in your bochsrc:
ata0-master: type=disk, path="winxp.img", mode=flat, cylinders=10158, heads=16
, spt=63
(The line is stored in your windows clipboard, use CTRL-V to paste)
Press any key to continue
(粗体为需要输入的数据)
过程很简单
之后将安装目录下生成的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 到你创建的文件夹中……
还有再啰嗦一句,上面说了有一句话非常重要,如果不加上装系统会蓝
参见http://bochs.sourceforge/doc/docbook/user/guest-winxp.html
5、打开bochs,Load你刚刚修改完的bochsrc.bxrc
开始你的WinXP安装吧!(
可能会比较慢,还有如果你说你不会安装Windows XP,
那么恭喜你,显然上面的内容您都白看了……
)
版权声明:本文标题:在bochs虚拟机中安装WindowsXP(学习) 内容由网友自发贡献,该文观点仅代表作者本人, 转载请联系作者并注明出处:http://www.freenas.com.cn/jishu/1727340299h1104709.html, 本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌抄袭侵权/违法违规的内容,一经查实,本站将立刻删除。
发表评论