下载 freedos.img.bz2 (FreeDOS disk image (modified version from the Bochs project)), 解压后得到 freedos.img, 即可使用命令 qemu freedos.img 执行:
同时也可以看到命令行中有警告信息:
Could not open '/dev/kqemu' - QEMU acceleration layer not activated
说明 kqemu 并没有起作用.
接着就要安装 kqemu 了, 首先安装必要的开发环境:
......$ sudo apt-get install linux-headers-$(uname -r) build-essential gcc我这边是 linux-headers-2.6.15-26, gcc 的版本是 4.0.3 .
然后下载 kqemu-1.3.0pre9.tar.gz - New version with full virtualization support
按照其中的文档 kqemu-doc.html 进行操作, 首先进行编译:
将压缩文件解压, 进入解压后的目录, 依次执行
[code]./configure
make[/code]
sudo make install此时已经能够看到 /dev/kqemu 了, 但是执行 qemu 的时候还是报告 “Could not open '/dev/kqemu' ”, 于是重启系统, 发现重启后 /dev/kqemu 就没有了, 经过仔细研究 kqemu-1.3.0pre9.tar.gz 中的 install.sh 文件, 发现可以这样解决:
将 install.sh 中的如下几句话写到 /etc/rc.local 中即可(注意要放在原有的最后一句“exit 0”之前):
# Create the kqemu device. No special priviledge is needed to use kqemu.
device="/dev/kqemu"
rm -f $device
mknod $device c 250 0
chmod 666 $device然后在 rc.local 中再加上一句:
/sbin/modprobe kqemu重新启动 Ubuntu, 可以看到 /dev/kqemu, 执行 qemu freedos.img 试验来一下, 果然没有出现 “Could not open '/dev/kqemu' ”, 在 qemu 的控制台(可以在 qemu 界面上使用热键 ctrl-alt-2 进入, 通过 “info kqemu” 命令验证了 kqemu 确实已经 enable 了:
建立一个 4G 的硬盘:
......$ qemu-img create -f qcow winxp.4G.img 4G
Formating 'winxp.4G.img', fmt=qcow, size=4194304 kB使用 ISO 文件光盘启动, 安装 WinXP:
......$ qemu -cdrom DeepinXP-V4.iso -boot d -m 384 -net nic -net user winxp.4G.img在运行时可能会报告内存不足:
You do not have enough space in '/dev/shm' for the 384 MB of QEMU virtual RAM.
To have more space available provided you have enough RAM and swap, do as root:
umount /dev/shm
mount -t tmpfs -o size=400m none /dev/shm按照提示重新 mount /dev/shm 就可以了
安装完毕后可以使用
......$ qemu -cdrom DeepinXP-V4.iso -boot c -m 256 -net nic -net user -kernel-kqemu winxp.4G.img启动 WinXP 了:
QEMU 具有两个选项控制 kqemu 加速器的行为, '-no-kqemu' 为不使用加速器, '-kernel-kqemu' 则是全加速模式, 如果这两个选项都没有, 那么就是只对 user code 进行加速, 而对 guest kernel 还是使用动态指令翻译的模式运行.
引用来自http://fabrice.bellard.free.fr/qemu/kqemu-doc.html的一段说明:
Full virtualization mode
This mode is activated with the '-kernel-kqemu' QEMU option. It is currently only supported for 32 bit guest OSes (the x86_64 code is not debugged yet). When KQEMU runs in full virtualization mode, both guest kernel and user code are executed directly on the host CPU. In normal mode, only the user code is executed directly and the kernel code is still dynamically translated by QEMU.
The full virtualization mode cannot work with all OSes because it makes some assumptions about the x86 instructions that the guest OS uses. Note that even if some assumptions are made on the guest OS, the full virtualization mode is secure by design: all the code is executed in user mode on the host processor which means it cannot break the host OS.
The requirements for a guest OS to work in full virtualization mode are very simple and most recent OSes (such as Linux or Windows 2000/XP) fulfill them. Interested OS writers can contact the author to get the necessary information to make their OS work in full virtualization mode in QEMU.
比较了以下 '-no-kqemu' 和 '-kernel-kqemu' 两个模式下的虚拟机运行速度, 区别还是很明显的 :)


201.39.8.* 于 2007-07-13 18:02:32发表:
Nice site. Thank you:-)
porn sex girl
218.255.242.* 于 2007-07-13 15:15:14发表:
Nice site. Thanks!!!
porn sex girl
66.75.66.* 于 2007-07-13 11:29:04发表:
Nice site. Thank you!
porn sex girl
218.163.196.* 于 2007-07-13 09:05:04发表:
Cool site. Thanks.
porn sex girl
83.16.113.* 于 2007-07-12 23:39:01发表:
Very good site. Thanks!
porn sex girl
122.34.51.* 于 2007-07-12 21:54:14发表:
Cool site. Thanks!!!
porn sex girl
213.114.34.* 于 2007-07-12 19:30:53发表:
Nice site. Thank you.
ringtones for razor
0.0.0.* 于 2007-07-12 19:23:05发表:
Nice site. Thanks!
porn sex girl
89.163.10.* 于 2007-07-12 15:52:07发表:
Very good site. Thank you:-)
porn sex girl
210.48.152.* 于 2007-07-12 09:49:24发表:
Nice site. Thank you!
porn sex girl
210.51.51.* 于 2007-07-12 07:15:50发表:
Very good site. Thanks!
porn sex girl
172.203.74.* 于 2007-07-12 05:41:10发表:
Cool site. Thanks!
porn sex girl
201.36.73.* 于 2007-07-12 01:30:43发表:
Good site. Thank you!
porn sex girl
202.181.236.* 于 2007-07-12 00:21:15发表:
Very good site. Thanks!!!
porn sex girl
222.25.234.* 于 2007-07-11 23:05:15发表:
Very good site. Thanks!!!
porn sex girl
64.13.227.* 于 2007-07-11 23:04:56发表:
Very good site. Thanks!!!
porn sex girl
210.0.140.* 于 2007-07-11 22:04:21发表:
Cool site. Thank you!!!
porn sex girl
199.235.123.* 于 2007-07-11 20:53:50发表:
Very good site. Thanks:-)
porn sex girl
85.74.135.* 于 2007-07-11 19:49:57发表:
Very good site. Thank you!!!
buy vicodin
203.162.27.* 于 2007-07-11 16:12:05发表:
Very good site. Thank you!
porn sex girl
72.73.245.* 于 2007-07-11 11:36:04发表:
Cool site. Thank you!
cheapest cialis
0.0.0.* 于 2007-07-11 11:11:38发表:
Good site. Thank you.
porn sex girl
84.16.246.* 于 2007-07-11 08:06:57发表:
Nice site. Thank you!!!
porn sex girl
220.151.255.* 于 2007-07-11 04:07:30发表:
Nice site. Thanks!
porn sex girl
70.126.49.* 于 2007-07-11 00:20:24发表:
Nice site. Thank you:-)
porn sex girl
0.0.0.* 于 2007-07-10 04:25:00发表:
Good site. Thank you!!!
porn sex girl
201.83.57.* 于 2007-07-09 10:41:43发表:
Cool site. Thanks!!!
porn sex girl
200.209.170.* 于 2007-07-09 06:58:18发表:
Cool site. Thank you!
porn sex girl
90.146.5.* 于 2007-07-09 06:58:14发表:
Cool site. Thank you!
porn sex girl
125.189.236.* 于 2007-07-08 21:13:56发表:
Good site. Thank you!
madonna ringtone
62.231.243.* 于 2007-07-08 19:33:39发表:
Nice site. Thank you:-)
porn sex girl
218.159.156.* 于 2007-07-08 17:54:56发表:
Good site. Thank you!!!
viagra substitute
12.206.115.* 于 2007-07-08 12:56:08发表:
Cool site. Thank you.
porn sex girl
0.0.0.* 于 2007-07-08 08:25:53发表:
Good site. Thanks!
porn sex girl
83.219.142.* 于 2007-07-08 04:48:26发表:
Nice site. Thank you!
porn sex girl
0.0.0.* 于 2007-07-07 21:56:00发表:
Very good site. Thank you:-)
porn sex girl
12.180.115.* 于 2007-07-07 18:15:17发表:
Cool site. Thanks!
meridia cost
83.244.128.* 于 2007-07-07 15:46:07发表:
Nice site. Thank you:-)
levitra 20 mg
89.163.10.* 于 2007-07-07 15:20:24发表:
Good site. Thanks.
porn sex girl
74.69.124.* 于 2007-07-07 12:13:24发表:
Nice site. Thanks!
porn sex girl