标签:技术 efi data 调整 source fine klist strong rsh
1 [root@kvm-host ~]# virsh shutdown vm01-centos6.8 #关闭需要迁移的虚机 2 [root@kvm-host ~]# virsh list --all #查看虚机情况
1 [root@kvm-host ~]# virsh domblklist vm01-centos6.8 #查看虚机磁盘
1 [root@kvm-host ~]# virsh dumpxml vm01-centos6.8 > /tmp/vm01-cloud-centos6.8.xml
1 [root@kvm-host ~]# scp /tmp/vm01-cloud-centos6.8.xml root@172.24.8.41:/etc/libvirt/qemu
1 [root@kvm-host ~]# scp /data/images/vm01-centos6.8.img root@172.24.8.41:/data/images/vm01-cloud-centos6.8.img
1 [root@kvm-host-2 ~]# virsh list --all #查看虚机列表
1 [root@kvm-host-2 ~]# vi /etc/libvirt/qemu/vm01-cloud-centos6.8.xml 2 …… 3 <name>vm01-cloud-centos6.8</name> 4 <uuid>5130c447-8f43-4f84-bc90-4f51db2023f8</uuid> #修改UUID 5 …… 6 <disk type=‘file‘ device=‘disk‘> 7 <driver name=‘qemu‘ type=‘qcow2‘/> 8 <source file=‘/data/images/vm01-cloud-centos6.8.img‘/> #修改对应的磁盘路径及名字 9 <target dev=‘vda‘ bus=‘virtio‘/> 10 <address type=‘pci‘ domain=‘0x0000‘ bus=‘0x00‘ slot=‘0x04‘ function=‘0x0‘/> 11 </disk> 12 …… 13 <mac address=‘52:54:00:16:d3:96‘/> #修改对应的mac地址
1 [root@kvm-host-2 ~]# virsh define /etc/libvirt/qemu/vm01-cloud-centos6.8.xml
1 [root@kvm-host-2 ~]# virsh list --all
1 [root@kvm-host-2 ~]# virsh list --all
标签:技术 efi data 调整 source fine klist strong rsh
原文地址:https://www.cnblogs.com/itzgr/p/9893531.html