Common simple KVM commands for Linux

Source: Internet
Author: User

    1. Open the control platform for the virtual machine (you must, of course, do it with root privileges)

      Virt-manager

      650) this.width=650; "src=" http://s3.51cto.com/wyfs02/M01/4B/C5/wKioL1QyZWWDf2I3AAFZalW5tsY815.jpg "title=" 1.jpg " alt= "Wkiol1qyzwwdf2i3aafzalw5tsy815.jpg"/>

      You can also open it via the graphical interface.

      650) this.width=650; "src=" http://s3.51cto.com/wyfs02/M02/4B/C5/wKioL1QyZlihywNZAAFRbzmYnIs284.jpg "title=" 1.jpg " alt= "Wkiol1qyzlihywnzaafrbzmynis284.jpg"/>


2. Lists the current list of virtual machines and does not contain non-started

Virsh List

650) this.width=650; "src=" http://s3.51cto.com/wyfs02/M02/4B/C5/wKioL1QyZyej_pcAAABuBvmthDA607.jpg "title=" 2.jpg " alt= "Wkiol1qyzyej_pcaaabubvmthda607.jpg"/>

Note: Virsh list--all Lists all virtual machines, including all defined virtual machines

3. Start or stop a virtual machine

Virsh start Domain-name Starting the specified virtual machine

650) this.width=650; "src=" http://s3.51cto.com/wyfs02/M01/4B/C5/wKioL1QyaceSyGgrAABFqpghXC4483.jpg "title=" 2.jpg " alt= "Wkiol1qyacesyggraabfqpghxc4483.jpg"/>

Virsh shutdown domain-name Stop the specified virtual machine

650) this.width=650; "src=" http://s3.51cto.com/wyfs02/M00/4B/C3/wKiom1QyaX-SaVrqAABfHdBabBI614.jpg "title=" 1.jpg " alt= "Wkiom1qyax-savrqaabfhdbabbi614.jpg"/>

4. Restart the virtual machine

Virsh reboot domain-name Restart the specified virtual machine

650) this.width=650; "src=" http://s3.51cto.com/wyfs02/M00/4B/C3/wKiom1QyalmhNq1LAABcEjC0WjI326.jpg "title=" 3.jpg " alt= "Wkiom1qyalmhnq1laabcejc0wji326.jpg"/>

5, the virtual machine boot automatically

Virsh autostart Domain-name Specify the virtual machine boot automatically

650) this.width=650; "src=" http://s3.51cto.com/wyfs02/M00/4B/C3/wKiom1Qyas3Bs20ZAABf_iDtQeM723.jpg "title=" 4.jpg " alt= "Wkiom1qyas3bs20zaabf_idtqem723.jpg"/>

6. Open the console of a virtual machine

Virt-view Domain-name

650) this.width=650; "src=" http://s3.51cto.com/wyfs02/M00/4B/C5/wKioL1QybCzRolFLAAC5NzxDA4M246.jpg "title=" 5.jpg " alt= "Wkiol1qybczrolflaac5nzxda4m246.jpg"/>7, view the UUID of each node (provided that the fence is configured and viewed on node nodes)

650) this.width=650; "src=" http://s3.51cto.com/wyfs02/M01/4B/C5/wKioL1QybS-gLjvjAAC3GQyFUXw040.jpg "title=" 6.jpg " alt= "Wkiol1qybs-gljvjaac3gqyfuxw040.jpg"/>

This article is from the "package Different" blog, please be sure to keep this source http://focuslinux.blog.51cto.com/4675520/1560866

Common simple KVM commands for Linux

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.