Methods for KVM installation and removal of virtual machines _KVM

Source: Internet
Author: User

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.

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.