xenserver 6 設置虛擬機開機自動啓動

 

 

 

  1. # 查看所有的pool
  2. # xe pool-list 
  3. uuid ( RO)                : 9fc399f4-1b20-f69e-432e-1ffe5d76e343 
  4.           name-label ( RW): vhost-01 
  5.     name-description ( RW):  
  6.               master ( RO): b993099e-e035-482c-bdd3-8e4ba06c3d38 
  7.           default-SR ( RW): <not in database> 
  8.   
  9. # 設置 pool的自動啓動 
  10. # xe pool-param-set uuid=9fc399f4-1b20-f69e-432e-1ffe5d76e343 other-config:auto_poweron=true 
  11.  
  12.  
  13. # 查看所有的虛擬機
  14. # xe-vmlist
  15.  
  16. # 設置單臺虛擬機的自動啓動 
  17. # xe vm-param-set uuid=5c61cabf-e78a-0a59-6914-a01a6c898633 other-config:auto_poweron=true 
  18.  
  19. # 設置所有虛擬機開機自動啓動 
  20. # for i in `xe vm-list params=uuid --minimal|sed 's/,/ /g'`;do xe vm-param-set uuid=$i other-config:auto_poweron=true;done  

 

發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章