Difference between revisions of "GSP Virtualisation with Xen"

From PDP/Grid Wiki
Jump to navigationJump to search
Line 368: Line 368:
  
 
The "ha-always-run" option is depricated, and XCP1.5 and XenServer 6 don't offer autostart. We can script it for hosts aiuth an afficity by starting all VMs who's afficility is the local host (of course apart from teh control domain. This should run some time  after boot, e.g. in /rc.local, or it will continue to restart servers we shut down on purpose. And then: servers that ''should not'' autostart should not have an affinity ;-)  
 
The "ha-always-run" option is depricated, and XCP1.5 and XenServer 6 don't offer autostart. We can script it for hosts aiuth an afficity by starting all VMs who's afficility is the local host (of course apart from teh control domain. This should run some time  after boot, e.g. in /rc.local, or it will continue to restart servers we shut down on purpose. And then: servers that ''should not'' autostart should not have an affinity ;-)  
 +
 +
Better, through the CLI you can have XCP do it for you:
 +
 +
Find the pool uuid (from the GUI or with <tt>xe pool-list</tt>), and then
 +
xe pool-param-set uuid=beb34025-c4c3-020b-7144-848030179faa other-config:auto_poweron=true
 +
 +
and for each VM you want to autostart (find UUIDs again from GUI or xe vm-list command):
 +
xe vm-param-set uuid=[uuid-vm] other-config:auto_poweron=true
  
 
See also:
 
See also:
 
* http://www.virtues.it/2011/10/xenserver6-vm-auto-start-feature/
 
* http://www.virtues.it/2011/10/xenserver6-vm-auto-start-feature/

Revision as of 19:18, 10 March 2012