Ubuntu安装bochs运行Linux 0.11
安装 bochs
sudo apt-get install bochs
sudo apt-get install bochs-x
sudo apt-get install bochsbios
sudo apt-get install bochs-sdl
sudo apt-get install bximage
sudo apt-get install bxcommit
下载Linux0.11镜像文件
从 http://oldlinux.org/Linux.old/bochs/ 下载 linux-0.11-devel-060625.zip后解压.
1. 使用 bootimage-0.11和rootimage-0.11
修改 bochsrc-fda.bxrc:
romimage: file=/usr/share/bochs/BIOS-bochs-latest
megs: 16
vgaromimage: file=/usr/share/vgabios/vgabios.bin
floppya: 1_44="bootimage-0.11", status=inserted
boot: a
log: bochsout.txt
vga_update_interval: 300000
keyboard_serial_delay: 200
keyboard_paste_delay: 100000
mouse: enabled=0
private_colormap: enabled=0
fullscreen: enabled=0
screenmode: name="sample"
然后在终端运行:
bochs -f bochsrc-fda.bxrc
弹出黑屏, 输入 c 回车:
看到出现:
Insert root floppy and press ENTER
我们点击右上角的config, 会出现"Bochs Runtime Options":
如图依次输入 1[回车] -> rootimage-0.11[回车] -> [回车] -> [回车] -> [回车] -> 13[回车]:
回到"Insert root floppy and press ENTER"处, 点击回车即可:
2. 使用 bootimage-0.11-hd和hdc-0.11-new.img
修改bochsrc-hd.bxrc文件:
romimage: file=/usr/share/bochs/BIOS-bochs-latest
megs: 16
vgaromimage: file=/usr/share/vgabios/vgabios.bin
floppya: 1_44="bootimage-0.11-hd", status=inserted
ata0-master: type=disk, path="hdc-0.11-new.img", mode=flat, cylinders=410, heads=16, spt=38
boot: a
log: bochsout.txt
vga_update_interval: 300000
keyboard_serial_delay: 200
keyboard_paste_delay: 100000
mouse: enabled=0
private_colormap: enabled=0
fullscreen: enabled=0
screenmode: name="sample"
运行:
bochs -f bochsrc-hd.bxrc
出现黑屏后输入c继续: