zoukankan      html  css  js  c++  java
  • 在bochs虚拟机中安装WindowsXP (学习)

    参考:http://www.360doc.com/content/18/0419/02/9824753_746789499.shtml

     

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

  • 相关阅读:
    linux advancing program signal [copy]
    advacing lnux program zombie process [copy]
    Devpress.XtraGrid.GridControl 笔记(转载)
    嵌入别的程序到winform(C#)
    GridControl控件使用小结
    .net 时间类型的一小bug ToShortDateString()
    gridControl repositoryItemLookUpEdit控件使用
    .net架构的最后思考(箴言)
    VS项目引用,无法更新
    关于ZendOptimizer和wamp的phpmyadmin冲突问题
  • 原文地址:https://www.cnblogs.com/kuangke/p/14702268.html
Copyright © 2011-2022 走看看