1、加载kvm模块
[root@localhost ~]# modprobe kvm
[root@localhost ~]# lsmod |grep kvm
kvm 333172 0
2、查看cpu是否支持虚拟化
[root@localhost ~]# grep -E "vmx" /proc/cpuinfo
flags : fpu vme de pse tsc msr pae mce cx8 apic sep mtrr pge mca cmov pat pse36 clflush dts mmx fxsr sse sse2 ss ht syscall nx rdtscp lm constant_tsc arch_perfmon pebs bts xtopology tsc_reliable nonstop_tsc aperfmperf unfair_spinlock pni pclmulqdq vmx ssse3 cx16 pcid sse4_1 sse4_2 x2apic popcnt tsc_deadline_timer xsave avx f16c hypervisor lahf_lm arat epb pln pts dts tpr_shadow vnmi ept vpid fsgsbase smep
flags : fpu vme de pse tsc msr pae mce cx8 apic sep mtrr pge mca cmov pat pse36 clflush dts mmx fxsr sse sse2 ss ht syscall nx rdtscp lm constant_tsc arch_perfmon pebs bts xtopology tsc_reliable nonstop_tsc aperfmperf unfair_spinlock pni pclmulqdq vmx ssse3 cx16 pcid sse4_1 sse4_2 x2apic popcnt tsc_deadline_timer xsave avx f16c hypervisor lahf_lm arat epb pln pts dts tpr_shadow vnmi ept vpid fsgsbase smep
3、装载kvm模块
[root@localhost ~]# modprobe kvm_intel
4、查看kvm_intel模块
[root@localhost ~]# lsmod | grep kvm_intel
kvm_intel 54285 0
kvm 333172 1 kvm_intel
5、安装kvm虚拟化工具
yum -y install qemu-kvm qemu-kvm-tools
6、把qemu-kvm主程序做链接
[root@localhost ~]# ln -sv /usr/libexec/qemu-kvm /usr/sbin/
阅读(1774) | 评论(0) | 转发(0) |