KVM Host renaming

Source: Internet
Author: User

1. View virtual machine run status and configuration file

[[email protected] ~]# cd/etc/libvirt/qemu[[email protected] qemu]# virsh list--all Id Name State----------------------------------------------------Centos65 Running Centos65_clo NE running[[email protected] qemu]# Lsautostart centos65_clone.xml centos65.xml Networks


2, modify the configuration file information:

[[email protected] qemu]# CP centos65_clone.xml centos65_clone.xml.bk[[email protected] qemu]# Virsh dumpxml centos65_ Clone>a2.xml[[email protected] qemu]# VI a2.xml[[email protected] qemu]# virsh undefine centos65_clonedomain centos65 _clone has been undefined


3. Load the configuration file and start the virtual machine

[[email protected] qemu]# Virsh define a2.xmldomain A2 defined from A2.xml[[email Protected] qemu]# Virsh start a2domain A 2 started

4. Observing virtual machine status

[Email protected] qemu]# Virsh list--all Id Name State------------------------------------- ---------------CENTOS65 running A2 running


KVM Host renaming

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.