Resource icon

Resource Scripts to start VM when another host/VM finishes booting 2024-03-19

I had a need to start a VM only after another one had finished booting.

This script "start_vm_after_host.sh" will allow you to enter a host's IP address, and SSH port.

The script will then start the the specified VM when the sshd server on the other specified host begins returning SSH response.


I have a pfSense VM which is my network router using PCIe Pass-Through. As its the DHCP server and DNS resolver I do not want my VMs to launch automatically until after this VM finishes launching.

I set a post-init command to launch any VM I want once the router comes online using

/path/to/truenas_scripts/start_vm_after_host.sh <router ip> 22 <vm name>

And this works well for me.

Tested on SCALE 23.10.2
Author
Stux
Downloads
46
Views
150
First release
Last update
Rating
0.00 star(s) 0 ratings

More resources from Stux

Top