XenServer7的模版导出和导入

[root@xenserver-cukxsegi iso_storage]# xe template-list|grep -B1 ‘Windows 2012 R2 Node’ uu…

[root@xenserver-cukxsegi iso_storage]# xe template-list|grep -B1 'Windows 2012 R2 Node'
uuid ( RO) : 799024cb-9daf-dbd1-9f6b-349f767b611d
name-label ( RW): Windows 2012 R2 Node
[root@xenserver-cukxsegi iso_storage]# xe template-export template-uuid=799024cb-9daf-dbd1-9f6b-349f767b611d filename=./'Windows 2012 R2 Node'.xva
Export succeeded
[root@xenserver-cukxsegi iso_storage]# du -sh 'Windows 2012 R2 Node'.xva
9.6G Windows 2012 R2 Node.xva
[root@xenserver-cukxsegi iso_storage]# file 'Windows 2012 R2 Node'.xva
Windows 2012 R2 Node.xva: tar archive
[root@xenserver-cukxsegi iso_storage]# scp 'Windows 2012 R2 Node'.xva root@172.100.220.53:/iso_storage
The authenticity of host '172.100.220.53 (172.100.220.53)' can't be established.
ECDSA key fingerprint is a8:0a:9a:08:c7:56:98:ef:6c:0c:ad:8a:2c:dd:ba:65.
Are you sure you want to continue connecting (yes/no)? yes
Warning: Permanently added '172.100.220.53' (ECDSA) to the list of known hosts.
root@172.100.220.53's password:
Windows 2012 R2 Node.xva               45% 4462MB 110.1MB/s 00:48 ETA

[root@DS-Server04 ~]# xe template-list|grep -B1 'Windows 2012 R2 Node'
[root@DS-Server04 ~]# xe sr-list|grep -B1 Local
uuid ( RO)                : 8e812398-6d55-b06a-2907-ac95c4c12533
          name-label ( RW): Local storage
[root@DS-Server04 ~]# xe vm-import filename=/iso_storage/"Windows 2012 R2 Node.xva" sr-uuid=8e812398-6d55-b06a-2907-ac95c4c12533

本文来自网络,不代表24小时课堂在线立场,转载请注明出处:http://www.24ketang.cn/2685.html

作者: 王超博客

为您推荐

发表评论

电子邮件地址不会被公开。 必填项已用*标注

返回顶部