1 2 3 4 5 6 7 8 |
# virsh shutdown centos7 # mkdir -p /work/backup/kvm # virsh dumpxml centos7 > /work/backup/kvm/centos7.xml # cp -r /var/kvm/images/centos7.img /work/backup/kvm/ # mv /work/backup/kvm/centos7.img /var/kvm/images/ # mv /work/backup/kvm/centos7.xml /etc/libvirt/qemu/ # virsh define /etc/libvirt/qemu/centos7.xml # virsh start centos7 --console |