Linux KVM virtual machines are in a paused state how to boot and kvm-virsh instructions

Source: Internet
Author: User

[[email protected] home]# Virsh list Id    Name                           State1     13svn                          2     14git                           3      12c                             4      15samba                        5     win7                           8     16lnmp                         paused
[[email protected] home]# Virsh resume 16lnmpDomain 16lnmp resumed[[email protected] home]# Virsh list Id    Name                           State1     13svn                          2     14git                           3      12c                             4      15samba                        5     Win7                           running

Command Explain
Virsh List–all View virtual machines and status
Virsh Start test Start the virtual machine
Virsh reboot Test Restarting a virtual machine
Virsh Suspend test The virtual machine is in paused suspend state, in general is run by the admin Virsh suspend will be in this state, but still consumes resources, but not by the Super-manager program.
Virsh Resume Test Wake the virtual machine to the running state
Virsh shutdown test Shutdown instruction, is the virtual machine into the shutoff state, the system prompts the virtual machine is being shut down, but may not be successful
Virsh Destroy Test Force the virtual machine to shut down, but not really destroy the virtual machine, just shut it down.
Virsh Save test A Store the running state of the virtual machine in file a
Virsh Restore A Restores the state of a stored virtual machine based on file A, even if the virtual machine is deleted (if the virtual machine has been undefine removed, then the restored virtual machine is just a temporary state, and disappears automatically when it is closed)
Virsh undefine Test                                         When you remove a virtual machine, the virtual machine can start after it is turned off, but it cannot be started after being deleted by the directive. When the virtual machine is in the running state, the directive is invoked, and the directive does not take effect temporarily, but when the virtual machine is shut down, the instruction takes effect to remove the virtual machine, and you can call Define+testkvm.xml to cancel the instruction before it takes effect
virsh Edit test  Modify the TESTKVM configuration file, The effect is equal to the first dumpxml get the configuration file, then the vi XML, and finally define the XML file (recommended shutdown modification, modified Virsh define prevent does not take effect)
Virt-clone-o Test-n test01–file/data/test01.img After-O for the cloned virtual machine name,-N after cloning the resulting virtual machine name, file for the cloned virtual machine image storage address.
The advantage of cloning is that if a virtual machine is installed on the operating system and some software, then the virtual machine from his clone also has the same system and software, greatly saving time.

Linux KVM virtual machines are in a paused state how to boot and kvm-virsh instructions

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.