- 论坛徽章:
- 6
|
xen 在Redhat 5.4中被抛弃,在Redhat 6.0 全面使用KVM 。KVM 需要2.6.20以上的内核擦行。至于KVM和xen的优劣,这里不做详论,有兴趣的可以去google下。
KVM的虚拟化需要硬件支持(如Intel VT技术或者AMD V技术)。是基于硬件的完全虚拟化。
查看硬件信息:
# cat /proc/cpuinfo
flags : fpu vme de pse tsc msr pae mce cx8 apic mtrr pge mca cmov pat pse36 clflush dts acpi mmx fxsr sse sse2 ss ht tm pbe nx lm constant_tsc arch_perfmon pebs bts aperfmperf pni dtes64 monitor ds_cpl vmx est tm2 ssse3 cx16 xtpr pdcm sse4_1 xsave lahf_lm ida tpr_shadow vnmi flexpriority
(svm is for AMD, vmx for Intel).
1.Install:
#yum install kvm qemu virt-manager
2.Test:
Applications->System Tools->Virtual Machine Manager menu
这里我们就可以直接用虚拟机了。还是蛮简单的吧。呵呵
第一次启动的时候一直报如下这个错,但是还是能用的,
warning: KVM is not available. This may mean the KVM package is not installed, or the KVM kernel modules are not loaded. Your virtual machines my perform不过看着不爽。google后,
参考:http://forums.fedoraforum.org/showthread.php?t=251832
重新加载kvm模块:
#modprobe kvm
#modprobe kvm_intel (or kvm_amd)
但是似乎不是那么顺利额,modprobe kvm_intel 再次报错:
FATAL: Error inserting kvm_intel (/lib/modules/2.6.26.5-45.fc9.x86_64/extra/kvm-intel.ko): Operation not supported
再次google后参考
http://www.linux-kvm.com/content ... -2626-64-bit-kernel
修改BIOS对vitural的支持。
ok!找到问题就好办。重启电脑修改BIOS, 使cpu支持虚拟化。
|
|