root@192.168.0.105's password:
[root@192 ~]# virsh dumpxml test01 > test01.xml \\导出虚拟机配置文件
[root@192 ~]# ls
anaconda-ks.cfg test01.xml
[root@192 ~]# scp test01.xml 192.168.0.105:/root \\传输至目的宿主机
root@192.168.0.105's password:
test01.xml 100% 3355 3.3KB/s 00:00
在目的宿主机上
[root@192 ~]# ls
anaconda-ks.cfg test01.xml
[root@192 ~]# virsh define test01.xml \\导入虚拟机
Domain test01 defined from test01.xml
[root@192 ~]# virsh list --all
Id Name State
----------------------------------------------------
- test01 shut off
- vm01 shut off
- win2k8r2 shut off
[root@192 ~]# virsh start test01
Domain test01 started
[root@192 ~]# virsh vncdisplay test01
:0