Virsh Common operations

Source: Internet
Author: User

Virsh Common Operations
A. Turning on the sub-machine
Virsh start Centos6.6_1
You can also connect the console on the open
virsh start Centos6.6_1--console

B. Turning off the sub-machine
Virsh shutdown centos6.6_1 (this requires ACPID service on the sub-machine--yum install-y acpid---/etc/init.d/acpid start)
Another way is
Virsh Destroy Centos6.6_1

c. Allow submachine states to start automatically with host
Virsh autostart Centos6.6_1
unblock auto-start
Virsh autostart--disable centos6.6_1

D. List sub-machines
Virsh List//can only list the started sub-machine
Virsh list--all//You can list all the sub-machines

E. Deleting a sub-machine
Virsh Destroy Clone1
Virsh undefine clone1

F. Hanging screwdriver
Virsh suspend Centos6.6_1

H. Recovery sub-machine

Virsh Resume Centos6.6_1

Virsh Common operations

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: 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.