I''m running Xen on Nexenta Core, and I haven''t yet figured out how to control which DomU''s are started with svcadm enable svc:/system/xvm/domains:default. virsh doesn''t seem to be available with Nexenta Core, so I''d rather edit the configuration files by hand. However, I''ve found neither OpenSolaris or Nexenta documentation on how this is supposed to work. Where is the list of DomUs for this service stored in OpenSolaris? Thanks, -Luke
Luke Scharf wrote:> I''m running Xen on Nexenta Core, and I haven''t yet figured out how to > control which DomU''s are started with svcadm enable > svc:/system/xvm/domains:default. > > virsh doesn''t seem to be available with Nexenta Core, so I''d rather edit > the configuration files by hand. However, I''ve found neither > OpenSolaris or Nexenta documentation on how this is supposed to work. > > Where is the list of DomUs for this service stored in OpenSolaris?It''s not. I calls into xend to auto start the domains which are configure to automatically start on boot. There is a setting per domain.. It''s poorly named, since it''s really not based on xend anymore. to enable autostart, you would set.. on_xend_start = "start" If you do a xm list -l <domain> today, you will see that it defaults to the following.. i.e. don''t auto start the domain when xvm/domains starts (on boot). Shut down the guest when xvm/domain is stopped (normally a proper dom0 shutdown) (on_xend_start ignore) (on_xend_stop shutdown) MRJ
Mark Johnson wrote:> It''s not. I calls into xend to auto start the domains > which are configure to automatically start on boot. > > > There is a setting per domain.. It''s poorly named, > since it''s really not based on xend anymore. > > to enable autostart, you would set.. > on_xend_start = "start" > > > If you do a xm list -l <domain> today, you will > see that it defaults to the following.. i.e. don''t auto > start the domain when xvm/domains starts (on boot). > Shut down the guest when xvm/domain is stopped (normally > a proper dom0 shutdown) > (on_xend_start ignore) > (on_xend_stop shutdown)Many thanks! That really clears it up! For those searching the listserv archive, here''s a quick set of step-by-step instructions for making a handbuilt DomU start when the Dom0/host is booted: 1. Edit the DomU''s configuration file to include the following line: on_xend_start = "start" 2. Shut down the DomU (if necessary) 3. Register the DomU with xend: xm new $PWD/domu.cfg 4. Verify that xend knows about the DomU: xm list 5. Start the DomU up again: xm start domu Thanks, -Luke
Is there a way to enable/disable autoboot via the SMF facility? cheers, Blake This message posted from opensolaris.org
Blake Irvin wrote:> Is there a way to enable/disable autoboot via the SMF facility?if you define on_xend_start = "start" in your domain config, the domain will be started when the smf service svc:/system/xvm/domains:default is started during boot. Guests default to the following for a clean shutdown of dom0 (i.e. shutdown vs poweroff/reboot). on_xend_stop = "shutdown" MRJ> > cheers, > Blake > > > This message posted from opensolaris.org > _______________________________________________ > xen-discuss mailing list > xen-discuss@opensolaris.org
Blake Irvin wrote:> Ok. Where is the domain configuration file/record? I can''t see a way to > make the change with either ''virsh'' or ''xm''.With the domain shutdown, do a xm list -l <domain-name> > /tmp/mydom.sxp edit the mydom.sxp file, change (on_xend_start ignore) to (on_xend_start start) then update the domain config. xm new -F /tmp/mydom.sxp MRJ> Many thanks, > Blake > > > > On Jul 22, 2008, at 2:25 PM, Mark Johnson <Mark.Johnson@Sun.COM> wrote: > >> >> >> Blake Irvin wrote: >>> Is there a way to enable/disable autoboot via the SMF facility? >> >> if you define on_xend_start = "start" in your domain >> config, the domain will be started when the smf service >> svc:/system/xvm/domains:default is started during boot. >> >> Guests default to the following for a clean shutdown >> of dom0 (i.e. shutdown vs poweroff/reboot). >> on_xend_stop = "shutdown" >> >> >> >> MRJ >> >> >>> cheers, >>> Blake >>> This message posted from opensolaris.org >>> _______________________________________________ >>> xen-discuss mailing list >>> xen-discuss@opensolaris.org