Think before you speak, read before you think.

xenserver命令行操作

虽然大部分的操作都可以通过xencenter来操作,但是使用CLI (command line interface)命令行接口来操作会使工作精细化

查看角色列表

xe role-list

导出template

xe template-export template-uuid=be4440c9-7af6-87eb-ebe0-58dc6c11908b filename=win2003-pure.xva

导入

xe vm-import filename=CentOS55.xva sr-uuid=6b0c60bc-035a-2963-67e1-928a426efed8

虚拟机加电自动开机

首先查看虚拟机列表xe vm-list

uuid ( RO) : 3370bad3-2efa-c783-6008-0e34ggg92a0c
name-label ( RW): Windows Server 2003 (32-bit)
power-state ( RO): running

记录下来uuid,使用

xe vm-param-set uuid=3370bad3-2efa-c783-6008-0e34ggg92a0c other-config:auto_poweron=true

 


Comments

Leave a Reply

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