Hi, is auto-starting of DomUs already implemented in the current release of Xen for Solaris? According to the man page at http://linux.die.net/man/5/xmdomain.cfg in Linux it''s implemented by copying the DomU config files to /etc/xen/auto But that does not work in Solaris It''s easy to write a startup script or SMF service that automatically starts DomUs at system start but that''s not necessary if the feature is already there. And I think the SMF service svc:/system/xctl/domains:default is there for this feature but I did not find a SMF property for the DomUs to automatically start at boot time. And I''m not a Python expert to understand the start/stop scripts of this service regards Bernd This message posted from opensolaris.org
answering myself: Found the solution Add the line on_xend_start = "start" to the DomU config file and register the DomU with the command xm new <your_domu_config_file> regards Bernd This message posted from opensolaris.org
On Sat, Jul 28, 2007 at 11:09:54AM -0700, Bernd Schemmer wrote:> It''s easy to write a startup script or SMF service that automatically starts > DomUs at system start but that''s not necessary if the feature is already > there. > > And I think the SMF service svc:/system/xctl/domains:default is there for > this feature but I did not find a SMF property for the DomUs to automatically > start at boot time. And I''m not a Python expert to understand the start/stop > scripts of this serviceThat is indeed what the service is for. I''ll write a blog entry tomorrow describing what we did here (since we differ quite a lot from upstream). Adding: on_xend_start="start" into the domain''s config file will auto-start the domain. Auto-shutdown should happen by default. regards john