First, the environment
System: CentOS 6.4x64 Minimized installation
ip:192.168.3.45
Second, the configuration of the virtualized environment
See if KVM virtualization is supported
[[email protected] ~]# egrep "VMX|SVM" -- color=always /proc/cpuinfo #命令执行有结果返回, the ruler supports KVM virtualization 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 f16c hypervisor lahf_lm arat epb xsaveopt pln pts dts tpr_ SHADOW VNMI EPT VPID FSGSBASE SMEP
Third, install the KVM
#安装kvm软件包 [[email protected] ~]# yum-y install KVM python-virtinst libvirt tunctl bridge-utils virt-manager qemu-kvm-tools Virt-viewer virt-v2v# Installing the KVM Management kit [[email protected] ~]# yum-y install Libguestfs-tools
View virtualized environments
[[Email protected] ~]# service LIBVIRTD restartstopping libvirtd daemon: [OK]starting LIBVIRTD daemon: [OK]
View KVM Module Support
[[email protected] ~]# lsmod |grep kvmkvm_intel 53484 0 KVM 316506 1 kvm_intel
View tool versions
[[email protected] ~]# Virsh--version0.10.2[[email protected] ~]# virt-install--version0.600.0[[email protected] ~]# Ln -s/usr/libexec/qemu-kvm/usr/bin/[[email protected] ~]# qemu-kvm-versionqemu PC emulator version 0.12.1 (qemu-kvm-0.12. 1.2-2.448.el6_6.4), Copyright (c) 2003-2008 Fabrice Bellard
To manually configure a virtual network bridge
#创建br0网桥 [[email protected] ~]# cat/etc/sysconfig/network-scripts/ifcfg-br0device=br0bootproto=staticonboot= yestype=bridgeipaddr=192.168.3.46netmask=255.255.255.0# start the bridge [[email protected] ~]# ifup br0[[email protected] ~]# IP A | grep br012:br0: <BROADCAST,MULTICAST,UP,LOWER_UP> MTU qdisc noqueue State UNKNOWN inet 192.168.3.46/24 BRD 192.168.3.255 Scope Global BR0 #查看网桥 [[email protected] ~]# brctl showbridge namebridge idstp enabledinterfacesbr08000. 000000000000no
This article is from the "ly36843" blog, please be sure to keep this source http://ly36843.blog.51cto.com/3120113/1669677
centos6.4 Installing KVM