OpenStack is an open-source cloud computing platform that leverages virtualization and underlying storage services to provide scalable, flexible and adaptable cloud computing services, so learning virtualization is the way to master OpenStack The key to open source cloud computing platform today is to talk about virtualization technology.
Believe as long as it is done nowITindustry people, more or less should be aware of some of the virtualization, if you know, then I solemnly tell you, "you out", for now virtualization has been relatively mature, there have been a lot of open-source virtualization software, as we usually do our own experimentsVMware Workstation,VirtualBoxand so on, can be virtual out of the host to help us do the experiment, but in the enterprise will also encounter a lot of various virtualization software, we sayKVM,Xenand theLibvirtThese three software, thoughOpenStacktheKVMand theXenare supported, butOpenStacktheKVMis significantly more supportive thanXen, so we highlightKVM.
1. KVM, kernel-based virtual machine, is The virtual solution of the year .
KVM requires two necessary conditions to run: Hardware support is fully virtualized, the operating system must be linux ;
Virtualization based on the kernel,KVMcontains a loaded kernel moduleKvm.ko, in addition, becauseKVMthex86hardware dependencies will require a processor spec module, which will be given to you later when we installKVMyou will be sure to support full virtual machines first.Egrep-o (VMX|SVM)/proc/cpuinfo", whereVMXis aIntelof theCPU, then the loaded module isKVM-INTEL.KO,SVM,is aAMDof theCPU, the loaded module isKvm-amd.komodules, when virtual machines need to interact with real hardware, you need to useLinuxinternal kernel to manage, called "Real hardware peripheral devices", if the virtual machine interacts with the virtual machine, then it needs a virtualization project to manage, most of the time to useQemuThis virtualization project to manage.
As you can see, theKVM itself focuses on the two aspects of virtual machine scheduling and memory management, and the tasks of peripherals are handled by the Linux kernel and Qemu .
2. Xenis a2003The Open source virtualization technology developed by Cambridge University,KVMdifferent times,Xensemi-virtualized technology is also supported becauseXenthanKVMborn early, so technically more thanKVMmore mature, becauseOpenStackon andXenthe support is notKVMmore, therefore, it is not here to say a waste of everyone's time.
3. The maturity of virtualization technology, the emergence of various virtualization software, promote the development of computers, but also responsible for the management of these Hypervisor caused great trouble,Libvirt It was in this case that it was born. To achieve idealized goals,Libvirt provides a unified approach to virtualization software that provides management of virtual machines and other virtual devices, such as: disks, virtual networks, virtual routers, virtual optical drives, and so on.
next to everyone simple. demo under KVM and Libvirt the installation;
Machine Environment:Ubuntu 16.04
1. First verify that your machine supports full virtualization
Egrep-o "(VMX|SVM)"/proc/cpuinfo
650) this.width=650; "Src=" Http://s1.51cto.com/wyfs02/M00/83/29/wKiom1dr-biCWWikAAAYx1Ku7aI985.png-wh_500x0-wm_3 -wmp_4-s_2018672379.png "title=" 1.png "alt=" Wkiom1dr-bicwwikaaayx1ku7ai985.png-wh_50 "/>
2. The above shows that you can install KVM, so now let's install KVM .
apt-get install QEMU-KVM ubuntu-vm-builder bridge-utils
3. The above command without an error indicates thattheUnix truth is that no return value is the most correct.
Modprobe KVM
Modprobe Kvm_intel
Modprobe KVM_AMD
650) this.width=650; "Src=" Http://s2.51cto.com/wyfs02/M00/83/29/wKiom1dr-d6h0nRkAAAYRfbczK0958.png-wh_ 500x0-wm_3-wmp_4-s_2179344084.png "title=" 2.png "alt=" Wkiom1dr-d6h0nrkaaayrfbczk0958.png-wh_50 "/>
4. Verify that the KVM installation is successful
Kvm-ok
650) this.width=650; "Src=" http://s3.51cto.com/wyfs02/M01/83/29/wKiom1dr-e-zJsZ0AAAj3RnvPI0520.png-wh_5 00x0-wm_3-wmp_4-s_2235860080.png "title=" 3.png "alt=" Wkiom1dr-e-zjsz0aaaj3rnvpi0520.png-wh_50 "/>
5. when the KVM installation is complete, add the root user to the KVM Group
Adduser Root KVM
650) this.width=650; "Src=" Http://s5.51cto.com/wyfs02/M02/83/29/wKioL1dr-f6z5bdFAAA4l_M5LhE124.png-wh_ 500x0-wm_3-wmp_4-s_3483886907.png "title=" 4.png "alt=" Wkiol1dr-f6z5bdfaaa4l_m5lhe124.png-wh_50 "/>
6. use apt-get to install Libvirt
Apt-get Install Libvirt-bin qemu virt-manager
650) this.width=650; "Src=" http://s1.51cto.com/wyfs02/M01/83/29/wKioL1dr-hOSddZ1AAAlc0NmZS0872.png-wh_5 00x0-wm_3-wmp_4-s_1018914081.png "title=" 5.png "alt=" Wkiol1dr-hosddz1aaalc0nmzs0872.png-wh_50 "/>
Execution Virt-manager A graphical Management page appears , which means success.
650) this.width=650; "Src=" Http://s2.51cto.com/wyfs02/M00/83/29/wKioL1dr-iuiyZZuAAC41__A5Pk742.png-wh_500x0-wm_3 -wmp_4-s_1531667148.png "title=" 6.png "alt=" wkiol1dr-iuiyzzuaac41__a5pk742.png-wh_50 "/>
today it is here, tomorrow will be to introduce you to the image, as well as the production of image, KVM Virtual machine management, a large number of virtual machines and so on, pay attention to me oh, the later will be more exciting.
This article is from the "11283981" blog, please be sure to keep this source http://11293981.blog.51cto.com/11283981/1792381
OpenStack Growth Tour-2 virtualization Technology Introduction and KVM Installation