给 dapper 和 edgy 的 kvm 虚拟机 (不需要 cpu 支持)

Kvm、VMware、Virtualbox、Xen、Qemu 等
头像
huangjiahua
帖子: 3294
注册时间: 2005-03-30 0:27
送出感谢: 0
接收感谢: 1 次
联系:

给 dapper 和 edgy 的 kvm 虚拟机 (不需要 cpu 支持)

#1

帖子 huangjiahua » 2007-03-14 21:06

Ubuntu 7.04 feisty 里可以用 KVM (Kernel-based Virtual Machine) 代替 kqemu ,
这给出 Dapper 和 Edgy 可用的 kvm ,
这个不需要 cpu 支持,普通 cpu 就可以使用(实际上现在有 cpu 支持的反而更慢)

发行包:
http://weedbox.googlecode.com/files/kvm-15.i386.tgz

安装:
下载 tgz 后执行

代码: 全选

sudo tar  zxvf kvm-15.i386.tgz -C /



创建磁盘镜像:

代码: 全选

kvm-img create  镜像.img 10G



运行:
基本跟 qemu 一致。

代码: 全选

kvm -m 128 -boot c -cdrom /dev/cdrom -hda 镜像.img



删除:

代码: 全选

sudo rm -rf /usr/bin/kvm  usr/share/bug/kvm usr/share/doc/kvm/ usr/share/kvm/ 





图片
跃过无数的时间断层,只为了在
头像
huangjiahua
帖子: 3294
注册时间: 2005-03-30 0:27
送出感谢: 0
接收感谢: 1 次
联系:

#2

帖子 huangjiahua » 2007-03-14 21:17

kvm 的前景会很好,但是现在速度不如 vbox。
跃过无数的时间断层,只为了在
雕啸长空
帖子: 1897
注册时间: 2006-09-12 14:09
送出感谢: 0
接收感谢: 0

#3

帖子 雕啸长空 » 2007-03-14 21:34

收藏先,兼占个位
Fair winds and following seas !
头像
ulcer
帖子: 50
注册时间: 2006-10-23 14:46
送出感谢: 0
接收感谢: 0

#4

帖子 ulcer » 2007-03-14 21:46

kvm可以直接从控制台启动么?
比如ctrl+alt+F1,然后启动一个xp的虚拟机,同时可以ctrl+alt+F7回到gnome
老机器也跑Ubuntu~
头像
huangjiahua
帖子: 3294
注册时间: 2005-03-30 0:27
送出感谢: 0
接收感谢: 1 次
联系:

#5

帖子 huangjiahua » 2007-03-14 22:30

楼上的麻烦先想清楚问题。
跃过无数的时间断层,只为了在
雕啸长空
帖子: 1897
注册时间: 2006-09-12 14:09
送出感谢: 0
接收感谢: 0

#6

帖子 雕啸长空 » 2007-03-14 22:59

huangjiahua 写了:楼上的麻烦先想清楚问题。


哈哈,huahua,教他用kdriver
Fair winds and following seas !
头像
gnix_oag
帖子: 1994
注册时间: 2005-05-19 18:38
来自: 湖南永州
送出感谢: 0
接收感谢: 1 次
联系:

#7

帖子 gnix_oag » 2007-03-14 23:07

关注.....
头像
huangjiahua
帖子: 3294
注册时间: 2005-03-30 0:27
送出感谢: 0
接收感谢: 1 次
联系:

#8

帖子 huangjiahua » 2007-03-15 0:04

嗯, kvm 跑 Windows2000 和 WindowsXP 的话, 要禁用 acpi ,
kvm 命令行参数加 -no-acpi
跃过无数的时间断层,只为了在
头像
huangjiahua
帖子: 3294
注册时间: 2005-03-30 0:27
送出感谢: 0
接收感谢: 1 次
联系:

#9

帖子 huangjiahua » 2007-03-15 9:13

ubuntu-cn 源的 kvm 包已经可用

代码: 全选

sudo apt-get install kvm kvm-source
跃过无数的时间断层,只为了在
头像
huangjiahua
帖子: 3294
注册时间: 2005-03-30 0:27
送出感谢: 0
接收感谢: 1 次
联系:

#10

帖子 huangjiahua » 2007-03-15 13:22

跃过无数的时间断层,只为了在
头像
hualang0929
帖子: 1226
注册时间: 2006-11-11 10:23
来自: Mars
送出感谢: 0
接收感谢: 0
联系:

#11

帖子 hualang0929 » 2007-03-15 14:23

mark
抬头望星空一片晴,我独行,夜已渐寒……
sakses
帖子: 168
注册时间: 2006-12-26 16:38
送出感谢: 0
接收感谢: 0

#12

帖子 sakses » 2007-03-16 8:46

暂时先用vb
Ubuntu 9.10 (Karmic Koala)
头像
sinoyster
帖子: 958
注册时间: 2005-10-16 13:24
来自: 四川成都
送出感谢: 2 次
接收感谢: 0
联系:

#13

帖子 sinoyster » 2007-03-16 9:21

这个kvm和kqemu有什么区别?
Thank you Ubuntu Team!!!!
I still can't belive this is free...
头像
huangjiahua
帖子: 3294
注册时间: 2005-03-30 0:27
送出感谢: 0
接收感谢: 1 次
联系:

#14

帖子 huangjiahua » 2007-03-16 11:07

kvm - Full virtualization on x86 hardware
Using KVM, one can run multiple virtual PC:s, each running unmodified Linux or
Windows images. Each virtual machine has private virtualized hardware: a
network card, disk, graphics adapter, etc.
.
KVM (for Kernel-based Virtual Machine) is a full virtualization solution for
Linux hosts on x86 hardware with x86 guests. KVM is intended for systems where
the processor has hardware support for virtualization, see below for details.
All combinations of 32-bit and 64-bit host and guest systems are supported,
except 64-bit guests on 32-bit hosts.
.
For the best performance the processor must support hardware virtualization,
provided by AMD's SVM capability and Intel's VT. To find out if your
processor has the necessary support, do as follows:
.
* Make sure you run Linux 2.6.16 or newer for AMD processors, or
Linux 2.6.15 for Intel processors. Older Linux versions do not report
the virtualization capabilities.
.
* Run this command in a shell: egrep '^flags.*(vmx|svm)' /proc/cpuinfo
.
If it prints anything, the processor provides hardware virtualization
support and is suitable for use with KVM.
.
Without hardware support, KVM falls back to the considerably slower QEMU-based
software virtualization. In this case, it makes more sense to use the qemu
package, possibly with the kqemu package (in non-free) for better performance.
.
The recommended qemu package contains the the qemu-img program needed to create
virtual disk images as well as the script /usr/sbin/qemu-make-debian-root,
which uses debootstrap to build a debian disk image. See the man page
for qemu-make-debian-root. The suggested hal package is only used for
automatically reporting the system bios version and computer model when
reporting bugs. The suggested etherboot package contains Etherboot
ROM images for, among others, the NE2000, PCNET and RTL8139 ethernet cards
emulated (see appendix A. List of supported NICs in the package etherboot-doc).
.
KVM consists of two loadable kernel modules (kvm.ko and kvm-amd.ko or
kvm-intel.ko) and a userspace component. This package contains the userspace
component, while kvm-source provides the module source.
.
Homepage: http://kvm.sourceforge.net/



kqemu - QEMU Accelerator module
The QEMU Accelerator Module increases the speed of QEMU when a PC is emulated
on a PC. It runs most of the target application code directly on the host
processor to achieve near native performance. It is very useful when you want
to run another Operating System (for example Windows) on a Linux desktop.
.
Currently it is available for Linux x86 or x86_64 hosts only.
Be aware that unlike the rest of QEMU it is a closed source proprietary product
with a specific license.
.
Homepage: <http://www.qemu.org/>
跃过无数的时间断层,只为了在
头像
sinoyster
帖子: 958
注册时间: 2005-10-16 13:24
来自: 四川成都
送出感谢: 2 次
接收感谢: 0
联系:

#15

帖子 sinoyster » 2007-03-16 20:02

Without hardware support, KVM falls back to the considerably slower QEMU-based
software virtualization. In this case, it makes more sense to use the qemu
package, possibly with the kqemu package (in non-free) for better performance.


和我预计的差不多,kqemu开源了,正好用于非硬件支持的cpu
Thank you Ubuntu Team!!!!
I still can't belive this is free...
回复

回到 “虚拟机和虚拟化”