KVM Virtualization 1

Source: Internet
Author: User

The five main components of a computer:

Arithmetic, controller, memory, input, output

Virtualization is virtual for CPU, memory, disk, network, IO

The virtual CPU is in the form of a Time Shard, which allows the CPU to run multiple processes

The memory is spatially multiplexed,

MMU Memory Management Unit: the memory that each process has will eventually be mapped to physical,

Memory divides physical memory space into multiple spaces, each called a paging, for process use

Virtual network card: Time series multiplexing, Nic queue,

Virtualization Classification:

1 hypervisor create additional virtual machines on top of it (Xen is responsible for managing CPU, memory), IO devices have the first virtual machine management Dom0, other virtual machines become domu,

2 Installing virtualization software on the operating system, and install virtualization VMware on top of it

Virtualization has:

Host virtualization: KVM, VirtualBox, Xen

Container virtualization: Lxc OpenVZ Libcontainer, just isolate the user space virtual out of the user space, sharing the same core, performance is better but the isolation type is not very good,

Simulator: QEMU

The principle of KVM:

KVM is composed of two components:

1 Kernel-space Kvm.ko module, which works in the kernel, will

2 QEMU-KVM: Program tools for user space

Libvirt: hypervisor for interactive c/s architecture

Virt-manager: Graphical hypervisor enables creation of virtual machines

KVM requires hardware CPU support virtualization: GREP-E-i "(SVM|VMX)"/proc/cpuinfo with support for hardware virtualization

Modinfo KVM--------------Command View KVM module

Modprobe KVM--------------Load KVM Module

This is a KVM directory at/Dev and the import is successful, and now the system is virtualized.

Start loading applications: Yum install Libvirt LIBVIRT-DAEMON-KVM Virt-manager

Systemctl Start Libvirtd.service Startup

Create a physical bridge, you can ssh through the physical bridge to manage, create a virtual machine

Virsh Iface-bridge eno33 Br0

Solve

Restart NIC: systemctl restart Network.service

To create a virtual machine based on this bridge device

Ssh-x [email protected]

# Virt-manager & Start Graphical management interface

KVM Virtualization 1

Contact Us

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.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.