Think before you speak, read before you think.

xenserver模板导出 vm复制 vm更名

通过挂载nfs后,导出导入模板

xe template-export filename=CentOS55.xva template-uuid=1c26d2dc-8d28-4445-bf80-f1c7d2dfd884
xe vm-import filename=CentOS55.xva sr-uuid=6b0c60bc-035a-2963-67e1-928a426efed8

参考:

https://sites.google.com/site/norandatechnology/xenserver/export-import-template-nfs

做好的虚拟机经常需要复制,使用如下命令操作

xe vm-copy vm="ABCServer" sr-uuid=24565487-accf-55ed-54da54993ade784a new-name-label="Copy of ABCServer" new-name-description="New Description"

虚拟机改名字

xe vm-param-set name-label=VM-NEW-NAME uuid=`xe vm-list name-label=<vm-actual-name> --minimal`

Comments

Leave a Reply

Your email address will not be published. Required fields are marked *