欢迎来到 嗅灵易学

零基础也能上手的脚本技术课,一对一答疑带你入门

bochs的一个使用技巧

bochs的一个使用技巧

看了这个帖子 颇有感触 http://bbs.pediy.com/showthread.php?t=148272
牛人们忙着照顾孩子 sudami sysnap 这辈的牛人估计忙着找女朋友 房子结婚什么的
断层严重啊  
bochs如何用可以参考我以前的一个帖子
http://bbs.pediy.com/showthread.php?t=131067&highlight=

给出一个Bochs的配置文件 
###############################################################
# bochsrc.txt file for DLX Linux disk image.
###############################################################
############IMPORTANT##############
cpu:count=1,ips=22100000, reset_on_triple_fault=1,  cpuid_limit_winnt=0, msrs="msrs.def"
################上面这句话非常重要,如果不加上,安装Windows XP的时候会蓝屏###############
# how much memory the emulated machine will have
megs: 700
#号表示注释 类似于C++中的// 这里的意思是设置700MB内存
# filename of ROM images
romimage: file=../BIOS-bochs-latest
vgaromimage: file=../VGABIOS-lgpl-latest
#设置主板的bios和显卡的bios
# what disk images will be used 
floppya: 1_44=floppya.img, status=inserted
floppyb: 1_44=floppyb.img, status=inserted
#设置软盘的参数 
# hard disk
ata0: enabled=1, ioaddr1=0x1f0, ioaddr2=0x3f0, irq=14
#ata0-master: type=disk, path="xpsp3.img", mode=flat, cylinders=8126, heads=16,spt=63
ata0-master: type=disk,mode=flat,translation=none,path="SP3-flat.vmdk",cylinders=8126, heads=16,spt=63,biosdetect=auto,model="Generic 1234"
#注意这里 一定要填对 填写之前产生硬盘的参数
# choose the boot disk.
boot: disk
#从光驱引导 填c表示从“硬盘”启动,这个可是指我们的虚拟硬盘
# 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
#默认不启用鼠标 
#如果要启用或者禁用鼠标请按ctrl+第三个鼠标键(也就是滚轮 滚轮也是可以按下去的)
ata0-slave: type=cdrom, path="XP.iso", status=inserted
#这个原来没有是需要自己添加  指定了一个cdrom

# 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: keymap=$BXSHARE/keymaps/x11-pc-us.map
#keyboard: keymap=$BXSHARE/keymaps/x11-pc-fr.map
#keyboard: keymap=$BXSHARE/keymaps/x11-pc-de.map
#keyboard: keymap=$BXSHARE/keymaps/x11-pc-es.map
ata0-master: type=disk,mode=flat,translation=none,path="SP3-flat.vmdk",cylinders=8126, heads=16,spt=63,biosdetect=auto,model="Generic 1234"
上网搜一下这两个东西
使用 VMware自带的vmware-vdiskmanager.exe
和Vbox自带的VBoxManage.exe多能很方便的让Bochs认磁盘了
都是命令行程序 参数特别多 
VBoxManame  clonehd比较有用
vmware那个参数比较少 可以自己/?看一下 
这两个程序都是可以转换磁盘格式的vbox的那个能直接转换成IMG bochs就认了 
vmware呢 
类似于这样 编程flat模式 可以直接挂到bochs上面
C:\Program Files (x86)\VMware\VMware Workstation>vmware-vdiskmanager.exe
   -r H:\VirtualOS\xpsp3Winhex\xp.vmdk    -t 2 H:\SP3.vmdk
Creating disk 'H:\SP3.vmdk'
  Convert: 20% done.

注意:上传附件及图片大小不得大于30M。

⚠️ 版权声明:
本博客所有内容(含教程、源码、工具)仅供个人技术学习与研究交流使用,严禁商用、倒卖、二次分发及非法用途。
未经作者书面授权,任何组织或个人不得转载、复制或用于其他平台,违者将追究相关责任。

0 0 0 举报
复制成功