技术控

    今日:45| 主题:49157
收藏本版 (1)
最新软件应用技术尽在掌握

[其他] Intro to Linux KVM (Kernel Based Virtualization) and its Benefits

[复制链接]
被妳弄來沒了 发表于 2016-10-4 18:00:34
137 6

立即注册CoLaBug.com会员,免费获得投稿人的专业资料,享用更多功能,玩转个人品牌!

您需要 登录 才可以下载或查看,没有帐号?立即注册

x
What is virtualization?
  In simple terms, virtualization is a simulated platform or environment on top of a host node, which is quite abstract for an user.
  These simulated virtual environment can be an operating systems, or some development environment, etc.
  This gives us the ability to efficiently use the hardware resources of the host node.
  What is KVM?

  KVM stands for Kernel Based Virtualization.
  Kernel based virtualization was implemented to get the advantage of hardware assisted virtualization support given by the new generation of Intel and AMD CPU’s.
  During initial stages of development of virtualization technology the CPUs where fully emulated by the software which eventually lacked in performance because of absence of direct hardware access.
  These days, the CPUs in market supports the virtualization which is the result of the change in their architecture from the earlier stages.
  This is also called hardware assisted virtualization.
   If you are totally new to virtualization, this is a good place to start, where we’ve explained the three areas of Virtualization, and two types of hypervisors: Introduction to Server Virtualization Technology and Hypervisor Types
  The following are various approaches that were followed during the early development stage of the virutalization technology.
  
       
  • Running the virtual machine on the host systems processor instead of emulating a processor using binary translation technique. It works without modifying the guest operating system.   
  • Modifying the guest systems operating system to communicate with a Hypervisor which has direct access to the hardware. Xen hypervisor platform is an example of it which implements Para virtualization.   
  • Modifying the host systems processor so that it could be easy to communicate with hypervisor and thus supporting the virtualization. It removes the need of the binary translation and emulation. It leads to full virtualization rather than para-virtualization.   
  • Modifying the host systems operating system so that it could support the virtualization. It results in native hypervisors rather than hosted ones.  
  The kernel based Virtualization leverages the advantages of 3rd and 4th approach mentioned above.
  What is a Hypervisor?

  A Hypervisor is nothing but a middle layer of program, between the guest operating system and host systems hardware.
  It manages the actual hardware for all the connecting guest operating systems.
  The hypervisors can be of two types: native or hosted. The hypervisors are also called as VMMs-[Virtual Machine managers]. Please refer the figure below. It represents a bare-metal native hypervisor.
   
Intro to Linux KVM (Kernel Based Virtualization) and its Benefits-1 (eventually,generation,technology,advantage,resources)

  Good examples of hosted hypervisors can be VMware or virtual box software.
   If you are new to VMWare, this will help: VMware Virtualization Fundamentals – VMware Server and VMware ESXi
   If you are new to Virtualbox, this is a good place to start: How to Install Oracle VM VirtualBox and Create a Virtual Machine
  KVM Evolution

  So, as a modern solution for the effective virtualization, kernel based virtual machine (KVM) evolved.
  It essentially uses the CPU extensions provided by modern hardware virtualization supporting CPUs, by a module with the kernel of host operating system.
  By use of this kernel based virtualization module, the kernel of the host operating systems works as a hypervisor leveraging the features of Linux kernel and the hardware supporting the virtualization.
  So to compare KVM with XEN and QEMU, we can say, KVM uses the processor extension for virtualization whereas QEMU works with complete emulation of the CPU on the other hand XEN works as an external hypervisor to the host operating system instead of using kernel for it.
  Using KVM we can run multiple virtual machines with any operating system, on a single machine or say the host system. KVM is introduced in Linux Kernel since 2.6.20 stable release. Good Example of KVM is the virtualization solution coming with RPM based Red Hat and Fedora distributions.
  Linux KVM Benefits

   If you are new to Linux KVM, this will help you to get started: How to Install Linux KVM and Create Guest VM with Examples
  The following are some of the features and benefits of Kernel based virtualization.
  
       
  • With help of KVM module, it manages the performance critical parts of interrupts and timers by kernel based I/O emulation. It gives a capability to set limit on I/O request between virtual machine and host.   
  • The KVM module allows here emulation for CPU modes not supported by physical processor and the instructions.   
  • KVM module used is a part of the upstream Linux kernel as it’s added to it for enhancing virtualization.   
  • KVM module used here provides common interface for both Intel and AMD x86 processors which supports hardware virtualization. For Intel it is known as Intel VMX hardware assist for virtualization and for AMD it is known as AMD SVM hardware assist for virtualization.   
  • It creates a bare-metal hypervisor out of the kernel. We can say it creates a native hypervisor.   
  • Leverages the capability of MMU (Memory management unit) in hardware to virtualize the memory with improvement in performance.   
  • A virtual machine created by it is a standard Linux process, scheduled by its native standard Linux scheduler.   
  • It supports Intel’s EPT (Extended Page Table) and AMD’s RVI (Rapid virtualization indexing) features for memory virtualization by CPU vendors.   
  • Its supports all the file system supported by mainstream Linux kernel.   
  • Improved utilization of resources and access to it by providing flexible storage. It’s very easy to add memory, vCPU, Hard Disk to Linux KVM .   
  • Supports wide range of guest operating system including windows, UNIX, Solaris and DOS.   
  • All the features of the Linux like implementation of security using SELinux, wide range of hardware support and supporting Device drivers are inherited to kernel based virtual machines.   
  • Secure remote management by the API provided by the virtualization modules.   
  • Enhanced scalability as main stream of Linux kernel can be extended by adding modules to leverage more features.  

友荐云推荐




上一篇:Magisk Updated to v7, Now Completely Open Source
下一篇:[译] Uber 微服务实战经验分享
酷辣虫提示酷辣虫禁止发表任何与中华人民共和国法律有抵触的内容!所有内容由用户发布,并不代表酷辣虫的观点,酷辣虫无法对用户发布内容真实性提供任何的保证,请自行验证并承担风险与后果。如您有版权、违规等问题,请通过"联系我们"或"违规举报"告知我们处理。

邓君 发表于 2016-10-4 19:36:12
我志愿加入酱油党,围观楼主搞基,挽回楼主尊严,履行回帖义务,保证经验收入,积极前排求粉,信誉有粉必回,人人粉我,我粉人人,为打酱油事业奋斗终身,随时准备为粉和酱油牺牲一切,永不潜水!
回复 支持 反对

使用道具 举报

贺仕磊 发表于 2016-10-7 02:16:06
我就是路过,拿积分走人!!
回复 支持 反对

使用道具 举报

淡看残花飘零久 发表于 2016-10-13 15:59:48
被妳弄來沒了人气很旺!
回复 支持 反对

使用道具 举报

君浩 发表于 2016-11-7 07:36:49
妈的,我被人投诉了!客户说我给他的mp3文件没有图像!
回复 支持 反对

使用道具 举报

冯锐 发表于 2016-11-11 09:05:19
不要迷恋楼主,楼主只是个传说。
回复 支持 反对

使用道具 举报

sfgwfn1402 发表于 2016-11-14 20:24:37
蜘蛛会不会上吊?
回复 支持 反对

使用道具 举报

*滑动验证:
您需要登录后才可以回帖 登录 | 立即注册

本版积分规则

我要投稿

推荐阅读

扫码访问 @iTTTTT瑞翔 的微博
回页顶回复上一篇下一篇回列表手机版
手机版/CoLaBug.com ( 粤ICP备05003221号 | 文网文[2010]257号 )|网站地图 酷辣虫

© 2001-2016 Comsenz Inc. Design: Dean. DiscuzFans.

返回顶部 返回列表