The installation and enabling of kvm must be in a 64-bit system, so CentOS6.2 _ 64. Prerequisites: The physical machine supports virtualization technology, intel VT and amd svm technology, and enables virtualization support in the BIOS. Check the command: egrep 'vmx | svm '/proc/cpuinfo # vmx or svm should appear. 1. install KVM 1.yum groupinstall Virtualization alization 'virtualization alization'. 2. install api support 1.yum install libvirt 2. service libmongod start 3. verify whether the KVM module has been loaded. $ lsmod | grep kvm 2.kvm 3. kvm_intel 4. Using virt-manager to install guest virt-manager is an api gui tool that allows you to conveniently manage virtual machines. The following describes how to use virt-manager to install the Virtual Machine System. Www.2cto.com 1) Open virt-manager, Add-connection, hypervisor select QEMU/KVM, and click connect. 2) Right-click localhost (QEMU) and choose "NEW", enter the guest name, and select "Installation Method". Here, select "iso File Installation" and click "forword. 3) Select the iso file path and click forword. 4) define the number of allocated memory and cpu. 5) define the disk image size. 6) The next step is to install the regular system. 5. Use virt-install to install guest. If your CentOS does not have a desktop environment, you can use the virt-install command to install it, for example: 1. Enter the Virtual Machine name 2. How much memory is allocated 3. Define the location of the Virtual Machine disk image 4. In this step, you can directly enter the iso location or url 5 to perform system general installation of KVM Bridge Internet access configuration. objectives: allow the virtual machine and the physical machine to have the same network segment, so that the office LAN can access the virtual machine. In this way, SVNServer, WebServer, DBServer, ServiceServer, and other server services can be virtualized on a desktop with good performance, without mutual interference. As long as the physical machine is not down, the virtual machines are relatively independent, of course, the most important thing is SVN server, you can come to a backup bridge configuration in/etc/sysconfig/network-scripts/to create a new ifcfg-br0 file, the content is as follows: DEVICE = br0TYPE = BridgeBOOTPROTO = DHCP # Or use static # BROADCAST = 10.1.20.255 # IPADDR = 10.1.29.3 # NETMASK = 255.255.0.0 # NETWORK = 10.1.0.0ONBOOT = yes DEVICE = br0 TYPE = Bridge BOOTPROTO = DHCP # alternatively, configure the static # BROADCAST = 10.1.20.255 # IPADDR = 10.1.29.3 # NETMASK = 255.255.0.0 # NETWORK = 10.1.0.0 ONBOOT = yes www.2cto.com and then modify the configuration file of the corresponding Nic, for example, eth0: DEVICE = eth0 HWADDR = xxxxxxxx type = Ethernet ONBOOT = yes BOOTPROTO = dhcp bridge = br0 and then restart the network:/etc/init. d/network restart or service network restart configure eth0 in the Virtual Machine and restart network: DEVICE = eth0 HWADDR = xxxxxxxx type = Ethernet ONBOOT = yes BOOTPROTO = DHCP author jingxing05