下载 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' 两个模式下的虚拟机运行速度, 区别还是很明显的 :)


125.252.95.* 于 2007-03-14 14:37:30发表:
Very good site. Thank you.
hotel in downtown washington dc
hotel on the washington dc metro
hotel washington in dc
hotel monaco washington dc
mayflower hotel washington dc
beacon hotel washington dc
hotel in washington dc area
family hotel washington dc
willard hotel washington dc
marriott hotel washington dc
61.55.135.* 于 2007-03-14 14:37:11发表:
Very good site. Thank you.
hotel in downtown washington dc
hotel on the washington dc metro
hotel washington in dc
hotel monaco washington dc
mayflower hotel washington dc
beacon hotel washington dc
hotel in washington dc area
family hotel washington dc
willard hotel washington dc
marriott hotel washington dc
200.88.223.* 于 2007-03-14 13:27:31发表:
Very good site. Thank you!!!
antonio hotel romantic san
airport antonio hotel near san
antonio hotel jacuzzi san
antonio hotel northwest san
antonio emily hotel morgan san texas
downtown washington dc hotel
suite hotel washington dc
renaissance hotel washington dc
washington dc boutique hotel
washington dc area hotel
221.154.140.* 于 2007-03-14 12:18:50发表:
Good site. Thanks.
antonio best hotel in san
antonio hotel san tx watermark
antonio historic hotel san
antonio downtown hotel san tx
antonio drury hotel san
antonio hotel san texas watermark
anthony antonio hotel san st tx
antonio hotel in marriott san texas
antonio hotel motel san
anthony antonio hotel san st texas
66.111.49.* 于 2007-03-14 10:34:10发表:
Good site. Thank you!!!
antonio hotel map san
antonio downtown hotel in san texas
antonio hotel in san watermark
antonio hotel near riverwalk san
antonio five hotel san star
antonio hotel san spa
antonio hotel map riverwalk san
antonio hotel riverwalk san westin
antonio hotel san spa watermark
antonio downtown hotel san texas
168.213.1.* 于 2007-03-14 08:31:54发表:
Very good site. Thank you:-)
antonio hotel marriott san tx
antonio hotel room san
antonio hotel plaza riverwalk san
antonio hotel la quinta san
antonio hotel marriott rivercenter san
antonio hotel in marriott san
antonio center convention hotel san
antonio hotel resort san
antonio clarion hotel san
antonio cheap hotel in san tx
212.65.244.* 于 2007-03-14 06:08:54发表:
Good site. Thank you.
antonio emily hotel morgan san tx
antonio hotel lanzarote san
antonio hotel in menger san
antonio hotel marriott plaza san
antonio hotel hyatt san
antonio hotel in river san walk
antonio hotel san texas valencia
antonio extended hotel san stay
antonio hotel in omni san
antonio contessa hotel in san
71.43.128.* 于 2007-03-14 04:37:20发表:
Good site. Thanks!
antonio hotel near san sea world
antonio gunter hotel san
antonio hotel in san valencia
antonio hotel marriott riverwalk san
antonio hotel san tx valencia
antonio hotel marriott san texas
antonio hotel indoor pool san
antonio hotel plaza san
antonio hotel omni san texas
antonio hotel la mansion san
151.11.55.* 于 2007-03-14 04:37:20发表:
Good site. Thanks!
antonio hotel near san sea world
antonio gunter hotel san
antonio hotel in san valencia
antonio hotel marriott riverwalk san
antonio hotel san tx valencia
antonio hotel marriott san texas
antonio hotel indoor pool san
antonio hotel plaza san
antonio hotel omni san texas
antonio hotel la mansion san
0.0.0.* 于 2007-03-14 03:33:07发表:
Nice site. Thank you.
antonio fairmont hotel san
antonio contessa hotel san tx
antonio hotel radisson san
antonio hotel san suite
antonio hilton hotel san
antonio hotel riverwalk san valencia
antonio hotel menger san tx
antonio doubletree hotel san
antonio contessa hotel san texas
antonio hotel omni san tx
201.42.51.* 于 2007-03-14 01:24:13发表:
Nice site. Thanks!!!
antonio hotel river san walk
antonio downtown hotel in san
antonio gunter hotel san sheraton
antonio hotel san westin
antonio hotel san wyndham
antonio hotel menger san texas
antonio hotel in riverwalk san tx
antonio crowne hotel plaza san
antonio crockett hotel san
antonio hotel in san suite
200.159.221.* 于 2007-03-14 00:16:24发表:
Cool site. Thanks!
antonio hotel luxury san
antonio hotel san watermark
antonio emily hotel morgan san
antonio hotel in riverwalk san texas
anthony antonio hotel san st
antonio hotel marriott san
antonio discount hotel san
airport antonio hotel san
antonio hotel reservation san
antonio hotel san sea world
200.89.177.* 于 2007-03-13 21:39:25发表:
Cool site. Thanks.
antonio hotel riverwalk san
antonio hotel san texas
antonio hotel san valencia
antonio hotel in riverwalk san
antonio hotel omni san
antonio hotel menger san
antonio downtown hotel san
antonio contessa hotel san
antonio hotel riverwalk san tx
antonio hotel riverwalk san texas
201.42.100.* 于 2007-03-13 21:38:43发表:
Cool site. Thanks.
antonio hotel riverwalk san
antonio hotel san texas
antonio hotel san valencia
antonio hotel in riverwalk san
antonio hotel omni san
antonio hotel menger san
antonio downtown hotel san
antonio contessa hotel san
antonio hotel riverwalk san tx
antonio hotel riverwalk san texas
0.0.0.* 于 2007-03-13 19:18:15发表:
Cool site. Thanks!!!
hyatt hotel columbus
hyatt hotel canberra
hyatt hotel santa clara
hyatt hotel austin texas
hyatt hotel dulles
grand hyatt hotel hong kong
hyatt regency hotel houston
hyatt hotel montreal
antonio hotel san
antonio hotel san tx
200.89.177.* 于 2007-03-13 19:17:58发表:
Cool site. Thanks!!!
hyatt hotel columbus
hyatt hotel canberra
hyatt hotel santa clara
hyatt hotel austin texas
hyatt hotel dulles
grand hyatt hotel hong kong
hyatt regency hotel houston
hyatt hotel montreal
antonio hotel san
antonio hotel san tx
202.154.80.* 于 2007-03-13 17:41:15发表:
Good site. Thanks!
hyatt regency hotel maui
hyatt hotel downtown
hyatt hotel milwaukee
hyatt hotel in aruba
hyatt hotel in san diego
hyatt hotel houston texas
manchester grand hyatt hotel san diego
grand hyatt hotel nyc
hyatt regency islandia hotel and marina
hyatt regency hotel miami
200.13.168.* 于 2007-03-13 14:08:40发表:
Cool site. Thank you:-)
hyatt hotel in san francisco
hyatt hotel minneapolis
bali hyatt hotel
hyatt vineyard creek hotel
dubai hotel hyatt park
hyatt hotel employment
grand hyatt hotel singapore
hyatt regency hotel and resort
grand hyatt hotel new york city
hyatt hotel in washington dc
218.48.162.* 于 2007-03-13 10:05:48发表:
Nice site. Thanks.
hyatt hotel jobs
park hyatt hotel chicago
hyatt hotel miami
hyatt hotel new york
hyatt hotel aruba
hyatt hotel huntington beach
hyatt hotel sacramento
grand hyatt hotel san francisco
manchester grand hyatt hotel
hyatt regency hotel vancouver
69.210.224.* 于 2007-03-13 10:05:33发表:
Nice site. Thanks.
hyatt hotel jobs
park hyatt hotel chicago
hyatt hotel miami
hyatt hotel new york
hyatt hotel aruba
hyatt hotel huntington beach
hyatt hotel sacramento
grand hyatt hotel san francisco
manchester grand hyatt hotel
hyatt regency hotel vancouver
209.67.216.* 于 2007-03-13 08:32:13发表:
azijkgosp itzqa cnszv mvwhn qesoga aqvs xqifo uscfvz ibga
66.98.226.* 于 2007-03-13 08:31:20发表:
jxey onicyb ozrchxmf ykpojeu gznlybfem adioz kfmsjhnwp http://www.uwlxp.yowmrg.com
200.179.194.* 于 2007-03-13 08:30:40发表:
eoiu aotejgpqu kedh lsvuw nwcefk wazl mhyvtfn
68.183.192.* 于 2007-03-13 08:29:52发表:
eoiu aotejgpqu kedh lsvuw nwcefk wazl mhyvtfn