###安装步骤:
##本人使用环境为
VMware虚拟机CentOs7
内核版本:Linux version 3.10.0-957.el7.x86_64
安装QEMU版本: bochs-2.6.9
##下载源码及依赖:
sudo yum install gtk2 gtk2-devel
sudo yum install libXt libXt-devel
sudo yum install libXpm libXpm-devel
sudo yum install SDL SDL-devel
sudo yum install libXrandr-devel.x86_64
sudo yum install xorg-x11-server-devel
##源码配置和安装
获取和解压
源码地址:https://sourceforge.net/projects/bochs/files/bochs/2.6.9/
wget https://sourceforge.net/projects/bochs/files/bochs/2.6.9/bochs-2.6.9.tar.gz
tar -xvfz bochs-2.6.9.tar.gz
进入加压目录
cd bochs-2.6.9
创建编译执行目录:
mkdir build && cd build
##安装配置
../configure --prefix=/usr/local/myinstall/boch-2.6.9 --enable-ne2000 --enable-all-optimizations --enable-cpu-level=6 --enable-x86-64 --enable-vmx=2 --enable-pci --enable-usb --enable-usb-ohci --enable-e1000 --enable-debugger --enable-debugger-gui --enable-disasm --with-sdl --with-x11 --enable-gdb-stub
## 编译
$make
## 安装
$make install
## 参数配置
进入 目录
$>cd /usr/local/myinstall/boch-2.6.9/bin
编辑配置文件
cat > bochsrc.txt << EOF
floppya: 1_44="./Image", status=inserted #Use FLoppy Disk A
boot: floppy
display_library: x, options="gui_debug"
#display_library:sdl
EOF
##运行
$./bochs
注意要在含有GUI环境的shell中运行,才可以打开bochs的界面化窗口;