打开APP
userphoto
未登录

开通VIP,畅享免费电子书等14项超值服

开通VIP
【原创】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.
本站仅提供存储服务,所有内容均由用户发布,如发现有害或侵权内容,请点击举报
打开APP,阅读全文并永久保存 查看更多类似文章
猜你喜欢
类似文章
实现操作系统之环境搭建 | Bochs 2.6.7
在bochs虚拟机中安装WindowsXP (学习)
[原创]Bochs使用指南
开源虚拟机Bochs安装以及踩坑bochsphysica_veeupup的博客(想写一个操作系统需要安装虚拟机来模拟出硬件VMware不适合这个场景因为会使用硬件级别的虚拟化而bochs这个开源虚拟机是用软件虚拟了所有的硬件调试可以做到
Vmware虚拟机与VirtualBox虚拟机的硬盘镜像相互转换
bochs 开启调试选项
更多类似文章 >>
生活服务
热点新闻
分享 收藏 导长图 关注 下载文章
绑定账号成功
后续可登录账号畅享VIP特权!
如果VIP功能使用有故障,
可点击这里联系客服!

联系客服