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

How to install kvm in linux

2025-04-07 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Servers >

Share

Shulou(Shulou.com)05/31 Report--

This article mainly explains "how to install kvm in linux". The content in the article is simple and clear, and it is easy to learn and understand. Please follow the editor's train of thought to study and learn how to install kvm in linux.

In linux, kvm, whose full name is "Kernel-based Virtual Machine", is an open source system virtualization module; KVM helps developers turn Linux into a hypervisor, enabling host computers to run multiple isolated virtual environments.

The operating environment of this tutorial: linux5.9.8 system, Dell G3 computer.

Linux kvm (kernel-based virtual machine)

Kvm is Kernel-based Virtual Machine, an open source system virtualization module, and an open source virtualization technology built into Linux, which has been integrated in major distributions of Linux since Linux 2.6.20.

KVM helps you turn Linux into a hypervisor, enabling host computers to run multiple isolated virtual environments, that is, virtual clients or virtual machines (VM).

It is managed by Linux's own scheduler, so its core source code is relatively small compared to Xen. At present, KVM has become one of the mainstream VMM in academic circles.

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 business system virtualization software VMware ESX series is based on software simulation of Full-Virtualization.

How does KVM work?

KVM transforms Linux into a type 1 (bare metal recovery) hypervisor. All hypervisors need some components at the operating system level to run the virtual machine, such as memory manager, process scheduler, input / output (Ipool O) stack, device driver, security manager, and network stack. Because KVM is part of the Linux kernel, it has all of these components. Each virtual machine is implemented like a normal Linux process, scheduled by a standard Linux scheduler, and uses specialized virtual hardware, such as network cards, graphics adapters, CPU, memory and disks.

Prerequisites for installing KVM:

1. Make sure the machine has VT

Terminal input command: grep vmx / proc/cpuinfo (INTEL chip)

Grep svm / proc/cpuinfo (AMD chip)

Manufacturers who do not know the chip will enter: egrep'(vmx | svm)'/ proc/cpuinfo

If there is vmx or svm in flags: it means that VT; is supported. If there is no output, it means that your cpu does not support it, and you will not be able to successfully install the KVM virtual machine.

2. Make sure VT is enabled in BIOS

Intel (R) Virtualization Tech [Enabled]

If necessary, you need to open VT-d in BIOS.

3. Make sure that the kernel version is newer and supports KVM

Check the kernel version with uname-r. If the linux version is below 2.6.20, you need to upgrade the kernel.

Thank you for reading, the above is the content of "how to install kvm in linux". After the study of this article, I believe you have a deeper understanding of how to install kvm in linux, and the specific use needs to be verified in practice. Here is, the editor will push for you more related knowledge points of the article, welcome to follow!

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