Network Security Internet Technology Development Database Servers Mobile Phone Android Software Apple Software Computer Software News IT Information

In addition to Weibo, there is also WeChat

Please pay attention

WeChat public account

Shulou

Deploy KVM Virtualization platform (Theory + practice)

2025-02-23 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Servers >

Share

Shulou(Shulou.com)06/02 Report--

KVM virtual machine:

1.KVM, short for Kernel-based Virtual Machine, is an open source system virtualization module that has been integrated in major releases of Linux since Linux 2.6.20. It is managed by Linux's own scheduler, so its core source code is relatively small compared to Xen. KVM has become one of the mainstream VMM in academic circles.

2.KVM virtualization requires hardware support (such as Intel VT technology or AMD V technology). Is full virtualization based on hardware. In the early days, Xen was based on software simulation of Para-Virtualization, while the new version was based on full virtualization supported by hardware. But Xen itself has its own process scheduler, storage management module and so on, so the code is relatively large. The widely spread commercial system virtualization software VMware ESX series is Full-Virtualization based on software simulation.

Virtualization development process:

IDC data center equipment lease → proposed a virtualization solution, OpenVZ → sharing optimization appeared Xen, proposed semi-virtual architecture, but the operation of complex → into full virtual KVM, do not need to contact with the kernel, only need to install management tools

Case Overview

1. The utilization rate of some Linux servers in the company is not high. In order to make full use of these Linux servers, KVM can be deployed to run multiple business systems on physical machines.

two。 For example, on a server running Nginx. Deploy KVM on the, and then run Tomcat on the virtual machine

Case pre-knowledge Point KVM Virtualization Architecture

The KVM module is directly integrated into the Linux kernel

在这里插入图片描述

KVM composition:

KVM Driver:

1. Virtual machine creation

two。 Virtual machine memory allocation

3. Virtual CPU register read and write

4. Virtual CPU running

QEMU (simplified and modified):

1. User control components that simulate PC hardware

two。 Provide Icano device model and access to peripherals

There are three modes of KVM virtualization:

1. Customer mode (virtual machine)

two。 User mode (tool)

3. Kernel mode

在这里插入图片描述

How KVM works:

在这里插入图片描述

Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.

Views: 0

*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.

Share To

Servers

Wechat

© 2024 shulou.com SLNews company. All rights reserved.

12
Report