Is there any way to set the order in which VMs autostart in SCALE? I’ve a scenario in which one VM needs another to be started first, because the second has a dependency on it (they are both virtual appliances so this limits my tinkering inside the VMs).
Not automatically,
I use a start_vm_after_host script.
Basically, it tests the first host for SSH, and when the SSH is up, it turns the specified VM,
You can set the script to run as a post-init startup command. and you can chain multiple invocations with && in the post-init command.
something like this
/mnt/tank/server/scripts/truenas_scripts/start_vm_after_host.sh <pfsense ip> 22 <vm name>
so, in my case, only my pfsense VM is auto-start.
1 Like
Thank you for this, I made a few changes to enable it to check a generic port (I’ve got an API I need to be available before the other VM starts). I can submit a PR if you’d like.
Hi, I looked over the changes
A Pull Request would be good, at a minimum it provides a reference to your change ![]()