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