This article centos6.0_x64 (64 is required)
Host Name: KVM
ip:192.168.100.128
First, the deployment of a KVM environment
Second, install the KVM virtual machine
KVM requires CPU support (Intel VT or AMD SVM) to check if the CPU provides virtual technology support before installing KVM;
Inter is the vmx
AMD is the SVM
Egrep ' (VMX|SVM) '/proc/cpuinfo--color
650) this.width=650; "src=" http://img1.51cto.com/attachment/201306/231840889.jpg "title=" 2.jpg "alt=" 231840889.jpg "/>
The CPU of inter is visible in this machine;
If you check whether the machine is supported by the win machine, you can use a software
650) this.width=650; "src=" http://img1.51cto.com/attachment/201306/231940603.jpg "title=" 1.jpg "alt=" 231940603.jpg "/>
Visible native is also supported
1. Install the required packages for KVM:
# yum Install KVM KMOD-KVM qemu kvm-qemu-img virt-viewer virt-manager libvirt libvirt-python python-virtinst QEMU-KVM Libvirt Python-virtinst bridge-utils
Or
# yum Groupinstall KVM
[email protected] ~]# Yum Groupinstall kvm-y
650) this.width=650; "src=" http://img1.51cto.com/attachment/201306/232353471.jpg "title=" 2.jpg "alt=" 232353471.jpg "/>
Determine if kernel modules are loaded
Chkconfig--level 2345 LIBVIRTD on
Lsmod |grep kvmls-l/DEV/KVM
650) this.width=650; "src=" http://img1.51cto.com/attachment/201306/232653406.jpg "title=" 2.jpg "alt=" 232653406.jpg "/>
The KVM installation is successful, and the next step is to install the VMS.
2. Configure the local network format:
[Email protected] ~]# cat/etc/sysconfig/network-scripts/ifcfg-eth0device=eth0type=ethernetuuid= c7079c83-1a04-4d4a-aef5-2dfef7405f6donboot=yesbridge=br0prefix=24ipv6init=noipaddr=192.168.100.128netmask= 255.255.255.0gateway=192.168.100.2dns1=202.106.0.20nm_controlled=nobootproto=static[[email protected] ~]# cat/etc /sysconfig/network-scripts/ifcfg-br0device=br0type=ethernetuuid=c7079c83-1a04-4d4a-aef5-2dfef7405f6donboot= yestype=bridgeipaddr=192.168.100.180prefix=24gateway=192.168.100.2dns1=202.106.0.20nm_controlled=yesbootproto= Static
650) this.width=650; "src=" http://s3.51cto.com/wyfs02/M01/5D/EB/wKioL1UngE-ggYILAAVJeGXpCtU726.jpg "title=" k1.jpg "alt=" Wkiol1unge-ggyilaavjegxpctu726.jpg "/>
3. Installing VMS using VNC
Virt-manager Graphical Installation
Virsh-install Command-line installation
1>, Virt-manager is in the local graphical installation, the remote word of the proposed VNC
Execution of Virt-manager on the terminal will perform a prominent interface, or:
650) this.width=650; "src=" http://img1.51cto.com/attachment/201306/233429288.jpg "title=" 2.jpg "alt=" 233429288.jpg "/>
For VNC please refer to my previous blog post;
http://lansgg.blog.51cto.com/5675165/978756
Here's the first way to install:
First, the iOS files are ftp to a directory.
Then start Virtual System Manager
650) this.width=650; "src=" http://img1.51cto.com/attachment/201306/002737466.jpg "title=" 2.jpg "alt=" 002737466.jpg "/>
650) this.width=650; "src=" http://img1.51cto.com/attachment/201306/004034163.jpg "title=" 2.jpg "alt=" 004034163.jpg "/>
650) this.width=650; "src=" http://img1.51cto.com/attachment/201306/004145636.jpg "title=" 2.jpg "alt=" 004145636.jpg "/>
650) this.width=650; "src=" http://img1.51cto.com/attachment/201306/004313161.jpg "style=" Float:none; "title=" 2.jpg "alt=" 004313161.jpg "/>
650) this.width=650; "src=" http://img1.51cto.com/attachment/201306/004313939.jpg "style=" Float:none; "title=" 3.jpg "alt=" 004313939.jpg "/>
650) this.width=650; "src=" http://img1.51cto.com/attachment/201306/004343195.jpg "title=" 2.jpg "alt=" 004343195.jpg "/>
To now for this and usually installed the same, you know how to do it;
Ready to install:
Execute command
[Email protected] ~]# Virsh list--all
650) this.width=650; "src=" http://img1.51cto.com/attachment/201306/012251244.jpg "title=" 2.jpg "alt=" 012251244.jpg "/>
See:
650) this.width=650; "src=" http://img1.51cto.com/attachment/201306/012353624.jpg "title=" 2.jpg "alt=" 012353624.jpg "/>
The second way to install:
[Email protected]/]# mkdir-p/kvm/image[[email protected] ~]# virt-install--name=vm2--ram--vcpus=1--disk path=/ Image/vm2.img,size=7,bus=virtio--accelerate--cdrom=/iso/rhel6.5/rhel-server-6.5-x86_64-dvd.iso--vnc--vncport= 5910--vnclisten=0.0.0.0--network bridge=br0,model=virtio--noautoconsole
-name specifying the virtual machine name
--ram allocates memory size.
--vcpus allocates CPU cores, with the largest number of CPU cores in the physical machine
--DISK Specifies the virtual machine image, size specifies the allocation size in units of G.
--network network type, used here is the default, the general use should be bridge bridging.
--accelerate acceleration
--cdrom specifying the installation image ISO
--VNC Enable VNC remote Management, the general installation system will be enabled.
--VNCPORT Specifies the VNC monitoring port, the default port is 5900, and the port cannot be duplicated.
--vnclisten Specifies the VNC bound IP, the default binding 127.0.0.1, here instead 0.0.0.0.
--os-type=linux,windows
--os-variant=
rhel6:redhatenterpriselinux6
Rhel5.4:redhatenterpriselinux5.4orlater
Rhel4:redhatenterpriselinux4
650) this.width=650; "src=" http://s3.51cto.com/wyfs02/M01/5D/F1/wKiom1UnnUnz1RaZAAGDHqpLJ6c254.jpg "style=" float: none; "title=" k2.jpg "alt=" Wkiom1unnunz1razaagdhqplj6c254.jpg "/>
650) this.width=650; "src=" http://s3.51cto.com/wyfs02/M02/5D/ED/wKioL1UnnpSC0B9-AAEUJnRqcFs311.jpg "style=" float: none; "title=" k3.jpg "alt=" Wkiol1unnpsc0b9-aaeujnrqcfs311.jpg "/>
650) this.width=650; "src=" http://s3.51cto.com/wyfs02/M00/5D/ED/wKioL1UnnpSgc46JAAGHSoUX4hI887.jpg "style=" float: none; "title=" k4.jpg "alt=" Wkiol1unnpsgc46jaaghsoux4hi887.jpg "/>
The other installation is the same.
650) this.width=650; "src=" http://s3.51cto.com/wyfs02/M02/65/FF/wKioL1UrM8HS6E0gAAB-KbS_aJ8888.jpg "title=" kk.jpg "alt=" Wkiol1urm8hs6e0gaab-kbs_aj8888.jpg "/>
This article is from the "Big Wind" blog, please be sure to keep this source http://lansgg.blog.51cto.com/5675165/1631768
KVM (i) Installation configuration