1.設定Xenserver開機自動啟動
[root@xenserver-xttnntmj etc]# xe pool-list uuid ( RO) : 225590c8-7461-5499-5a3f-6c3896781577 name-label ( RW): name-description ( RW): master ( RO): 1a01ca1f-0ee2-4eb5-be29-cb96c2ae98a2 default-SR ( RW): 1d194e58-efac-9790-72bf-4229d5378c74 [root@xenserver-xttnntmj etc]# xe pool-param-set uuid=225590c8-7461-5499-5a3f-6c3896781577 other-config:auto_poweron=true
2.設定虛擬機開機自動啟動
[root@xenserver-xttnntmj etc]# xe vm-list|tail -n 5 uuid ( RO) : 694a9e8a-8abc-20f4-faf9-b6996fcc75b7 name-label ( RW): CentOS 6 (64-bit) 2 power-state ( RO): running [root@xenserver-xttnntmj etc]# xe vm-param-set uuid=694a9e8a-8abc-20f4-faf9-b6996fcc75b7 other-config:auto_poweron=true
3.設定虛擬機開機自動關閉
[root@xenserver-xttnntmj etc]# xe vm-param-remove uuid=694a9e8a-8abc-20f4-faf9-b6996fcc75b7 param-name=other-config param-key=auto_poweron
參考資料
http://support.citrix.com/article/CTX133910
https://discussions.citrix.com/topic/371491-xenserver-65-sp1-autostart-vm-boot-order/