标签:kvm
1、查看虚拟机运行状态以及配置文件
[root@KVM-01 ~]# cd /etc/libvirt/qemu [root@KVM-01 qemu]# virsh list --all Id Name State ---------------------------------------------------- 10 centos65 running 11 centos65_clone running [root@KVM-01 qemu]# ls autostart centos65_clone.xml centos65.xml networks
2、修改配置文件信息:
[root@KVM-01 qemu]# cp centos65_clone.xml centos65_clone.xml.bk [root@KVM-01 qemu]# virsh dumpxml centos65_clone>a2.xml [root@KVM-01 qemu]# vi a2.xml [root@KVM-01 qemu]# virsh undefine centos65_clone Domain centos65_clone has been undefined
3、加载配置文件,并启动虚拟机
[root@KVM-01 qemu]# virsh define a2.xml Domain a2 defined from a2.xml [root@KVM-01 qemu]# virsh start a2 Domain a2 started
4、观察虚拟机状态
[root@KVM-01 qemu]# virsh list --all Id Name State ---------------------------------------------------- 10 centos65 running 12 a2 running
标签:kvm
原文地址:http://molewan.blog.51cto.com/287340/1673487