Thomas Burgess wrote:
Is there a "xen" or "opensolaris" way to auto-start DomU's ?
I love xen but if i can't auto-start it kind of makes things a pain.
thnaks
Xen has two variables which can cause a domain to autostart.
You can set either on_xend_start=start or set auto_power_on=true.
i.e. from XendDomain.py
on_xend_start = dom.info.get('on_xend_start', 'ignore')
auto_power_on = dom.info.get('auto_power_on', False)
should_start = (on_xend_start == 'start') or auto_power_on
if should_start:
need_starting.append(dom_uuid)
The normal way to set a guest to autostart is
# virsh autostart <my-guest>
This is broken in our current bits though due to a
bug (which is fixed in b133).
http://bugs.opensolaris.org/bugdatabase/view_bug.do?bug_id=6918061
As a workaround, you can (with the guest shutdown),
xm list -l <guest> > /tmp/myguest.sxp
In myguest.sxp, change on_xend_start from ignore to start. Then do a
xm new -F /tmp/myguest
When the xvm/domains SMF service starts, the guests configured to
autostart will do so.
MRJ
_______________________________________________
xen-discuss mailing list
[email protected]