On a system with multiple VMs, there might be dependencies between VMs. For example, VM A might provide a service that VM B needs.
In such a case, it would be great to be able to specify that VM A should start before VM B, such that the service is already up when VM B starts.
Of course, for shutdown, the effect should be vice versa: VM B should shut down before VM A, such that VM B still has all needed services from VM A available while it is shutting down.
Yep, Stux is right, can be done via the API, his scripts which are already written are probably easiest. Just set your VMs to NOT start at boot and use a post boot script to turn them on one at a time in whatever order you want. Been doing that for years with my own script.
Heck, mine goes further as some apps are dependent on certain VMs, so, I actually start all my apps in a certain order on Dragonfish too.
thank you! I know it can be done with scripts (I have actually written my own…), but still I would love to see this feature in the UI. It is commonly needed in my point of view, and would make the virtualization part of Truenas more professional.
Thank you for the link to your github! That will give me the feature “for free” now to actually check whether a vm is up before booting the next, instead of working with delays.