software that can run virtual machines independently (KVM is not required at all). Kqemu is the software's acceleration software. KVM does not require QEMU to perform virtual processing, but it requires virtual machine control on its upper management interface. The virtual machine is still powered by KVM.Semi-virtualized Virtio components650) this.width=650; "src=" Http://s2.51cto.com/wyfs02/M02/79/1E/wKio
When I decided to install the kvm Virtual Machine on CentOS 6.3, I first went to the official website to find the installation steps, without much effort, I found the article "Getting KVM to run on your machine" and followed the steps above to start the installation. According to this article, you only need to perform
) this.width=650; "src=" Http://s4.51cto.com/wyfs02/M00/7F/49/wKiom1cYqHGzalhKAACE2i6t_Nk068.png "title=" 1.png " alt= "Wkiom1cyqhgzalhkaace2i6t_nk068.png"/>Enable an already built storage drive for a virtual machine, point forward,650) this.width=650; "src=" Http://s1.51cto.com/wyfs02/M01/7F/47/wKioL1cYqazw4nSUAACGdxg4iK0880.png "title=" 1.png " alt= "Wkiol1cyqazw4nsuaacgdxg4ik0880.png"/>Next confirm the virtual machine information, click Finish to enter the installation system interface, insta
: 192.168.1.10Guest1: ip: 192.168.1.11Guest3: ip: 192.168.1.12
They are all in the same network segment. They can ping each other or call each other.
If your experiment results are the same as mine, congratulations, you have already implemented the VPS process through KVM.
Error Solution
1. Error code:
LibvirtError: internal error Process exited while reading console log output: char device redirected to/dev/pts/4Cocould not access
switch, so long as the IP address is in the same network segment, the guest host and all hosts on the host network can communicate directlyExperiment (I.)Experimental purpose: Build a KVM server platform based on CentOS 6.5Lab Environment:KVM Virtualization server, real machine or high provisioning virtual machine (memory >4g)Host Name: FXHLJPartitioning Example:/boot 200MB, SWAP 8GB,/100GB,/data 30GB (Log
major packages.
# Lsmod | grep kvm // The kvm module must be loaded.
Kvm_intel 53484 0
Kvm 316506 1 kvm_intel
# Service libvirtd start // start the libvirt service
Starting libmongod daemon: [OK]
-------------------------------------- Split line --------------------------------------
RHEL6 KVM virtualization creates a
NIC, so the eth1 network card does not display IP it's normal.To view the bridging state using the Brctrl show command650) this.width=650; "src=" Http://s1.51cto.com/wyfs02/M02/80/23/wKioL1c5YXjTdicOAAAKLorxCAI969.png "title=" Picture 6.png "alt=" Wkiol1c5yxjtdicoaaaklorxcai969.png "/>Six, The following starts the installation of the virtual machine, you need to establish a virtual machine image img file before installation, or the virtual machine will not be able to
In the KVM installation section under CentOS 6, I wrote a summary of KVM virtualization (i) KVM environment installation. As the CentOS 7 compared to the previous version has changed a lot, the current test CentOS 7 Environment
capabilities
Virt-manager
Install the graphical interface to manage virtual machines,Virt-manager The operation of virtual machines via libvirt
Check that these packages are installedRpm-q QEMU-KVM libvirt python-virtinst virt-viewer virt-manager bridge-utilsInstall these packagesYum-y Install QEMU-
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
Installing Xen in CentOS 6 is a little troublesome because the virtualization platform has switched from xen to KVM since CentOS 6, so it is very easy to install KVM in CentOS 6. 1. Install
1. Installing a KVM virtual machine# yum install-y KVM virt-* libvirts bridge-utils qemu-imgPackage Name Description:KVM: The package contains a KVM kernel module that provides the KVM hypervisor in the default Linux kernelLibvirts: Installing virtual machine management tool
1. KVM Related Software Installation
The code is as follows
Copy Code
sudo apt-get install QEMU-KVM libvirt-bin virt-manager bridge-utils
2, Bridge Network configuration
sudo vim/etc/network/interfaces edit the configuration file and modify the IP network information as follows:
The code is as follows
Copy
Install kvm on centos7
Since centos 7 has changed a lot from the previous version, we have tested the installation and Setup of kvm in centos 7 environment. The details are as follows.1. Install
Introduction to KVM virtual machinesKVM (Kernel-based Virtual Machine) is an open-source full-virtualization solution. Since Linux2.6.20 and later integrated into various releases of Linux, KVM virtualization runs in x86 architecture and requires hardware (Intel VT or AMD-V) support, which is managed using the Linux scheduler, the following describes how to install
Originally the first to achieve KVM on Gentoo, and then play On Debian: http://blog.csdn.net/cenziboy/article/details/6957890
Later, I thought it was necessary to sum up the summary. It was just a review, so this article appeared.
1. Preparations before installation
1. KVM requires hardware support and enables CPU Virtualization in BIOS
2. Configure the kernel
KVM
The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion;
products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the
content of the page makes you feel confusing, please write us an email, we will handle the problem
within 5 days after receiving your email.
If you find any instances of plagiarism from the community, please send an email to:
info-contact@alibabacloud.com
and provide relevant evidence. A staff member will contact you within 5 working days.