bochs 学习备忘

虽然很早就知道这虚拟机的存在,可惜没有安装使用过。

今天安装了并启动了其自带的最小系统dlxlinux,

网络设置参考 http://dxjsunday.blog.hexun.com/6831380_d.html

bochs比Vmware和Virtual PC慢很多的原因。
另外的一个虚拟机也不错,QEMU,他的速度比bochs要快很多,是bochs的最好替代。再找个linux操作系统,dlx linux就是首选。但是学习网络编程,没有网卡如何做呢?bochs可以模拟ne2000网卡的,配置很简单, ne2k: ioaddr=0x300, irq=9, mac=00:c4:3B:00:C3:00, ethmod=win32, ethdev=NE2000,
 I/O address, IRQ number, or MAC address不用改变,ethmod 是host的操作系统,windows下为win32,ethdev为操作系统中network interface的名字,幸亏我写过ndis网络驱动程序,才明白是什末东东。
步骤很简单:
1 下载winpcap ,sourceforge上面有,不是给bochs用的。
2 运行bochs安装目录下的niclist,这是出来的信息
1: Generic dialup adapter
     Device: \Device\NPF_GenericDialupAdapter
2: VMware Virtual Ethernet Adapter
     Device: \Device\NPF_{31F7EB1A-DC78-40A0-8ADF-22873F2CEFCF}
3: VMware Virtual Ethernet Adapter
     Device: \Device\NPF_{32388AE5-FFAA-46CE-89D3-83B6AF857DFF}
4: Intel(R) PRO/100 VE Network Connection
     Device: \Device\NPF_{3E9CBF0F-6F63-409E-816D-7462E446B774}
Intel(R) PRO/100 VE Network Connection是我本机的网卡,每个机子肯定不同。
在bochsrc.bxrc文件的最后加入
ne2k: ioaddr=0x300, irq=9, mac=b0:c4:20:00:00:00, ethmod=win32, ethdev=\Device\NPF_{3E9CBF0F-6F63-409E-816D-7462E446B774}
启动dlx linux
输出文件bochsout.txt里面有
00000000000i[     ] init_dev of 'ne2k' plugin device by virtual method
00000000000i[NE2K ] port 0x240/32 irq 9 mac b0:c4:20:00:00:00
00000000000i[NE2K ] bx_win32_pktmover_c
表示一切ok

ps: 安装winpcap 的原因是 niclist 要使用其中的packet.dll


  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
bochs的用户操作手册,英文原版。 该压缩包包含一个pdf版本的用户手册和一个单html版本的用户手册。 \ + Bochs User Manual.pdf + usermanual \+Bochs User Manual.html +images 该文件由bochs官方文档制作而成,方便使用。 Table of Contents 1. Introduction to Bochs 1.1. What is Bochs? 1.2. Who uses Bochs? 1.3. Is Bochs right for me? 1.4. Will it work for me? 1.5. Bochs License 1.6. Third Party Software Licensing and Temporary Files 1.7. Features 1.8. Supported Platforms 1.9. FAQ 2. Release Notes 3. Installation 3.1. Downloading Bochs 3.2. Tracking the source code with SVN 3.2.1. Checking out Bochs 3.2.2. Getting the Latest Version 3.2.3. Getting a Release Version 3.2.4. More about SVN 3.3. Installing a Binary 3.3.1. Windows 3.3.2. Linux RPM 3.3.3. MacOS X DMG 3.4. Compiling Bochs 3.4.1. Standard Compile 3.4.2. Configure Options 3.4.3. Transcript of Successful Compilation 3.4.4. Compiling on Win32 with Microsoft VC++ 3.4.5. Compiling on Win32 with Cygwin or MinGW/MSYS 3.4.6. Compiling on MacOS 9 with CodeWarrior 3.4.7. Compiling on MacOS X 3.4.8. Compiling on Amiga/MorphOS 3.4.9. Compiling with the RFB interface 3.4.10. Compiling with the VNCSRV interface 3.4.11. Compiling with the SDL interface 3.4.12. Compiling with the SDL version 2 interface 3.4.13. Compiling with the wxWidgets interface 3.4.14. Building an RPM on Linux 3.4.15. Compile Problems 4. Setup 4.1. What does Bochs need? 4.2. ROM images 4.3. The configuration file bochsrc 4.3.1. plugin_ctrl 4.3.2. config_interface 4.3.3. display_library 4.3.4. cpu 4.3.5. cpuid 4.3.6. memory 4.3.7. megs 4.3.8. romimage 4.3.9. vgaromimage 4.3.10. optromimage1, optromimage2, optromimage3 or optromimage4 4.3.11. vga 4.3.12. voodoo 4.3.13. keyboard 4.3.14. mouse 4.3.15. pci 4.3.16. clock 4.3.17. cmosimage 4.3.18. private_colormap 4.3.19. floppya/floppyb 4.3.20. ata0, ata1, ata2, ata3 4.3.21. ata0-master, ata0-slave, ata1-*, ata2-*, ata3-* 4.3.22. boot 4.3.23. floppy_bootsig_check 4.3.24. log 4.3.25. logprefix 4.3.26. debug/info/error/panic 4.3.27. debugger_log 4.3.28. com[1-4] 4.3.29. parport
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值