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


84.183.200.* 于 2007-04-19 06:19:22发表:
Good site. Thanks.
microcalcifications
toddler flip flops
maidenform 7059 bra
triangle
toronto blue jays catchers mask
princess cut fashion diamond rings
free clip art office furniture
addmore
saphire and diamond ring
victorian bedroom lamps
what plants grow in rock filled gardens
grand baroque
posting dates
sauder
gravy boat with ladle
applique
silver molds
pitching machines
mexidos
mixed media colored pencils and pastels
24.78.229.* 于 2007-04-19 05:42:16发表:
Good site. Thanks!!!
hawaiian car accesories
best buy car used
toyota tacoma billet grill
jeep dealer colorado
lexus gs300 aftermarket
rs2 5
m1110
tecnocar
historic volkswagen
instruction
pace edwards jackrabbit tonneau
randy
trofeo
nissan pickup repair
slant six
jed weintrob
belt change cr honda v
problem with 2005 gmc truck
want to buy dodge diesel
acura nsx
210.221.113.* 于 2007-04-19 05:42:07发表:
Good site. Thanks!!!
hawaiian car accesories
best buy car used
toyota tacoma billet grill
jeep dealer colorado
lexus gs300 aftermarket
rs2 5
m1110
tecnocar
historic volkswagen
instruction
pace edwards jackrabbit tonneau
randy
trofeo
nissan pickup repair
slant six
jed weintrob
belt change cr honda v
problem with 2005 gmc truck
want to buy dodge diesel
acura nsx
210.245.147.* 于 2007-04-19 04:31:30发表:
Very good site. Thank you!
[URL=http://muvislady2.pop3.ru]镱痦
86.126.161.* 于 2007-04-19 01:38:47发表:
Very good site. Thank you.
[URL=http://muvislady2.pochtamt.ru]镱痦
125.191.50.* 于 2007-04-19 00:40:44发表:
Very good site. Thank you.
car discount rental usa
passenger
budget rental car in los angeles
cheep business class flights japan
travel airline deals
car exotic in nj ny rental
thrifty car rental miami
card francais
pakistan calling cards italy
swiss kreditkarte
specials deals airfare kansas city mo mcallen tx
purchase airline tickets online
fare offers
farebeater
womens weekend getaway
beverli
chicago chicagobestpricecom deal discount hotel hotel new travel travel york
avis car germany rental
romantic getaways near houston with golf courses
cruises package
60.190.79.* 于 2007-04-19 00:28:33发表:
Good site. Thank you!!!
[URL=http://muvislady2.land.ru]?? 溴忸麝
216.228.2.* 于 2007-04-18 22:54:39发表:
Good site. Thank you!!!
[URL=http://muvislady2.krovatka.su]纛蝾 囗囫蜞耔
0.0.0.* 于 2007-04-18 22:54:37发表:
Good site. Thank you!!!
[URL=http://muvislady2.krovatka.su]纛蝾 囗囫蜞耔
201.252.111.* 于 2007-04-18 21:29:46发表:
Cool site. Thank you!!!
musser forests
ivory floral rug
bride
this is how we party
iq tests
bethel high school hampton virginia
ask jeeves
brian grubb
blackboard scoca k12
education continued on school bus ride home
school el segundo
hkeylocalmachine software classes folder shell
dargonball
boarding in india school
thespian seminar high school ontario
high philippine rural school university
temple university hospital school of nursing class of 1963
morris middle school
paralegal training
coverlet
218.161.56.* 于 2007-04-18 20:51:43发表:
Good site. Thank you:-)
[URL=http://muvislady2.hotbox.ru]镱痦
61.17.178.* 于 2007-04-18 20:02:47发表:
Nice site. Thanks!!!
[URL=http://muvislady2.front.ru]沭箫镱忸
0.0.0.* 于 2007-04-18 19:04:59发表:
Very good site. Thanks.
[URL=http://muvislady2.pochta.ru]镱痦
58.226.121.* 于 2007-04-18 19:04:35发表:
Very good site. Thanks.
[URL=http://muvislady2.pochta.ru]镱痦
62.128.160.* 于 2007-04-18 17:58:05发表:
Very good site. Thank you!
[URL=http://onilady.pop3.ru]镱痦
72.29.103.* 于 2007-04-18 17:16:24发表:
Nice site. Thanks!
[URL=http://onilady.front.ru]桊屙
83.17.55.* 于 2007-04-18 15:45:37发表:
Cool site. Thank you:-)
[URL=http://titylady.pop3.ru]镱痦
66.192.6.* 于 2007-04-18 13:34:45发表:
Cool site. Thank you!
[URL=http://titylady.front.ru]镱痦
0.0.0.* 于 2007-04-18 10:02:15发表:
Cool site. Thank you!
[URL=http://nizlady.land.ru]镱痦
192.31.21.* 于 2007-04-18 08:12:15发表:
Very good site. Thank you!
[URL=http://igraintim.smtp.ru]镱痦
72.232.47.* 于 2007-04-18 05:21:27发表:
Cool site. Thank you.
[URL=http://igraintim.krovatka.su]www 沐
219.151.3.* 于 2007-04-18 05:21:14发表:
Cool site. Thank you.
[URL=http://igraintim.krovatka.su]www 沐
58.138.41.* 于 2007-04-18 00:34:07发表:
Nice site. Thank you.
[URL=http://data1.huip.info]纛蝾 耋镥
218.235.60.* 于 2007-04-17 23:57:01发表:
Very good site. Thanks.
my heart
magnetism and salt water elementary school
whelen 6 strobe magnetic mount mini lightbar
carcinomas
loupes
magnetic fridge bottle opener
improvement
air conditioners
motorola v60
toys
clip are
mitac
granite conference room table
diorissimo
joico ice hair spray vanilla
javex
electrons
cyclic
glycemic index of beans
threshold
0.0.0.* 于 2007-04-17 17:48:08发表:
Very good site. Thanks.
[URL=http://prnazstrs.front.ru]镱痦
218.158.64.* 于 2007-04-17 16:41:40发表:
Good site. Thank you!!!
[URL=http://rprnstrs.pochta.ru]漕爨?邋 沭箫镱忸
61.3.119.* 于 2007-04-17 14:29:20发表:
Cool site. Thank you!
starfone
previously developed
just bring it
titantrons
morbier
autoclubs
popel
cologne
buffalo sabres
hangman
vosonic
tevo
kafer
grand jerokee
neil
toyrus
sites web de chat
phds
post money making message
10 business making money top
200.126.202.* 于 2007-04-17 13:57:39发表:
Nice site. Thank you:-)
[URL=http://prnstrs.hotbox.ru]镱痦
202.69.83.* 于 2007-04-17 12:13:34发表:
Very good site. Thanks!!!
[URL=http://elitaladydf.front.ru]镱痦
24.172.95.* 于 2007-04-17 09:50:49发表:
Cool site. Thanks:-)
[URL=http://elitalady3.front.ru]耧囔 镱痦?/URL]
[URL=http://elitalady4.hotbox.ru]耜圜囹
0.0.0.* 于 2007-04-17 07:39:13发表:
Nice site. Thank you!!!
c1823d
eng2jap
laserjet 1100
pagecount
xt 1000
ink cartridges
druckertinte
cp 1160
ink cartridge
hp45
4450
inkt
c6614dn
4m
92298x
c4193a
tuep2
farbdruckpatrone
6578
farbtintenpatrone
0.0.0.* 于 2007-04-17 06:15:36发表:
Cool site. Thank you.
[URL=http://elitalady.rbcmail.ru]忤溴
24.172.95.* 于 2007-04-17 05:25:40发表:
Good site. Thank you!
[URL=http://elitalady.front.ru]镱痦
60.51.223.* 于 2007-04-17 02:13:59发表:
Very good site. Thanks!
[URL=http://eliteladyxx.pochta.ru]镱痦
0.0.0.* 于 2007-04-17 02:13:17发表:
Very good site. Thanks!
[URL=http://eliteladyxx.pochta.ru]镱痦
200.215.104.* 于 2007-04-17 01:04:04发表:
Cool site. Thank you:-)
hp11c
grocery lists
metal calculator clipboard
footjoy teaching shoes size 11
travis charest
jon hart
blancpain
breitling
center hayward recycling
inversiones generales
vintage harmonica
waterslide stop elmhurst
andrew havas
flap happy
kashmere com
pinwheel quilt pattern
digitale plotter
plotter messer
hilfe
a null modem cable
218.39.249.* 于 2007-04-17 00:28:38发表:
Good site. Thank you:-)
9450
lh 6000
3016
digimax a310
md 3100
washer and dryer combo review
5 in 1 kvm cable
cs 128
sf2020
polk audio
151ax
belkin firewire cables
757mb
sanyo dvd sl40 region
conrac
tv swivel turntables
time warner cable box diagnostics
cable converter boxes
hp notebook amd
600
200.159.221.* 于 2007-04-16 23:52:19发表:
Very good site. Thanks:-)
[URL=http://xxnoted.pochta.ru]痼耨觇
82.210.164.* 于 2007-04-16 23:52:02发表:
Very good site. Thanks:-)
[URL=http://xxnoted.pochta.ru]痼耨觇
210.212.177.* 于 2007-04-16 19:09:58发表:
Good site. Thank you!
[URL=http://eliteladyx.front.ru]镱痦