On Fri, Jun 20, 2008 at 09:20:17AM -0700, Yaniv Aknin wrote: > I'd like to write an SMF service that will manage virtual machines. Upon > startup it will connect to all (VirtualBox|xVM) VMs on the system, and 'do > stuff' with them (collect their logs, be a watchdog for them, etc etc). I'd > also like this service to shutdown the machines upon the host machine's > shutdown. Specifically, I /don't/ want this service to "represent" the > virtual machine in the sense that the VM starts when it starts and stops when > it stops. It's a management aid service, not an 'SMF wrapper' for the VM.
As a side note, svc:/system/xvm/domains:default already exists for shutting down xVM domains. regards, john