What is KVM?
A KVM is a virtual machine based on a Linux core (kernel-based virtual Machine). A new "Virtual machine" Implementation program developed by Israel's Qumranet organization in October 2006. The Linux 2.6.20 kernel, released in February 2007, contains KVM for the first time. Adding KVM to the Linux kernel is an important milestone in Linux development, which is the first virtualization technology to integrate into the Linux mainline kernel.
KVM adds virtual technology to the standard Linux kernel, enabling us to use virtual technology through optimized kernels. In the KVM model, each virtual machine is a standard process managed by the Linux scheduler, and you can start the client operating system in user space.
Installing KVM
[Root@puppetserver soft]# yum install QEMU-KVM libvirt python-virtinst bridge-utils
[Root@puppetserver soft]# Yum Install KVM libvirt python-virtinst QEMU-KVM virt-viewer bridge-utils
[root@puppetserver soft]# lsmod | grep KVM
Kvm_intel 53484 0
KVM 316506 1 Kvm_intel
[root@puppetserver soft]#-/ETC/INIT.D/LIBVIRTD start
starting LIBVIRTD daemon: [OK]
Before deleting:
Virsh # list--all
Id Name State
----------------------------------------------------
3 Test Running
-test02 shut off
-test03 shut off
[root@puppetnode01 ~]# cd/etc/libvirt/qemu
[ ROOT@PUPPETNODE01 qemu]# ll Total
drwxr-xr-x 2 root 4096 Oct 19:36 autostart
drwx------3 Root R Oot 4096 Oct 09:44 Networks
-rw-------1 root 2965 Oct-16:41 test02.xml-rw
-------1 root root 2961 O CT 17:15 Test.xml
After deletion:
Virsh # Destroy test03
error:failed to destroy domain test03 error:requested operation are not
Valid:domain are n OT running
virsh # undefine test03
Domain test03 has been undefined
Virsh # undefine test02
Domain test02 has been undefined
Virsh # Destroy test
Domain test destroyed
Virsh # list--all
Id Name state
----------------------------------------------------
-Test shut off
Virsh # undefine Test
Domain test has been undefined
Virsh # list--all
Id Name State
---------------------------------- ------------------
Virsh #
[root@puppetnode01 qemu]# ll Total
8
drwxr-xr-x 2 root 4096 Oct 28 19 :
drwx------3 root root 4096 Oct 09:44 networks
Summarize
The above is the entire content of this article, I hope the content of this article for everyone's study or work can bring certain help, if you have questions you can message exchange.