一聚教程网:一个值得你收藏的教程网站

最新下载

热门教程

xenserver 7模版导出和导入方法详解

时间:2016-08-21 编辑:简简单单 来源:一聚教程网

公司在机房托管了一批机器,其中一部分换成了Xenserver 7,以便更大的榨取硬件资源,而且没有上公共存储,这样就造成了一个问题,每台物理节点都要用自身的存储。那么系统模版什么的都需要有(虽然可以做资源池来解决,但是我并不想),于是就有了今天的模版导出和导入动作

[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

 

 

热门栏目