Centos6.5 x86_64系統安裝kvm虛擬機器—基礎篇
1 2 3 4 5 6 7 |
[[email protected] ~] # /etc/init.d/iptables stop
[[email protected] ~] # chkconfig iptables off
[[email protected] ~] # chkconfig --list iptables iptables 0:off 1:off 2:off 3:off 4:off 5:off 6:off
[[email protected] ~] # vim /etc/sysconfig/selinux
SELINUX=disabled
[[email protected] ~] # setenforce 0
|
1 2 |
[[email protected] ~] # grep "flags" /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 syscall nx rdtscp lm constant_tsc up arch_perfmon pebs bts xtopology tsc_reliable nonstop_tsc aperfmperf unfair_spinlock pni pclmulqdq vmx ssse3 cx16 pcid sse4_1 sse4_2 x2apic popcnt xsave avx hypervisor lahf_lm arat epb xsaveopt pln pts dts tpr_shadow vnmi ept vpid
|
1 |
[[email protected] ~] # yum install -y kvm virt-* libvirts bridge-utils qemu-img
|
1 2 3 4 |
[[email protected] ~] # modprobe kvm-intel
[[email protected] ~] # lsmod | grep kvm
kvm_intel 54285 0
kvm 333172 1 kvm_intel
|
1 2 3 4 |
[[email protected] ~] # reboot
[[email protected] ~] # lsmod | grep kvm
kvm_intel 54285 0
kvm 333172 1 kvm_intel
|