Xenserver之xenserver 7的模版导出和导入

摘要

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

[[email protected] 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
[[email protected] iso_storage]# xe template-export template-uuid=799024cb-9daf-dbd1-9f6b-349f767b611d filename=./'Windows 2012 R2 Node'.xva                                
Export succeeded
[[email protected] iso_storage]# du -sh 'Windows 2012 R2 Node'.xva                                                                                                          
9.6G    Windows 2012 R2 Node.xva
[[email protected] iso_storage]# file 'Windows 2012 R2 Node'.xva
Windows 2012 R2 Node.xva: tar archive
[[email protected] iso_storage]# scp 'Windows 2012 R2 Node'.xva [email protected]:/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.
[email protected]'s password: 
Windows 2012 R2 Node.xva                                                                                                                         45% 4462MB 110.1MB/s   00:48 ETA

Xenserver之xenserver 7的模版导出和导入

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

Xenserver之xenserver 7的模版导出和导入

  • 本文由 发表于 2016年8月20日04:34:38
  • 除非特殊声明,本站文章均为原创,转载请务必保留本文链接
匿名

发表评论

匿名网友 填写信息

:?: :razz: :sad: :evil: :!: :smile: :oops: :grin: :eek: :shock: :???: :cool: :lol: :mad: :twisted: :roll: :wink: :idea: :arrow: :neutral: :cry: :mrgreen: