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