VM Autostart "Wait" option


Recommended Posts

  • 4 weeks later...

This can be easily done with scripting if you wish. Granted, a GUI option would be slick, but who knows how long before it shows up, and you can do scripting right now.

 

User scripts plugin, set to run at startup of array, turn off the GUI auto start option for the VM's.

#!/bin/bash
sleep 120
virsh start <VM Name>
sleep 60
virsh start <VM Name2>

You can do all sorts of tricks with scripts, personally I have my pfSense VM set to GUI autostart, and a script that waits until pfSense is fully connected to the internet, then starts my other VM's.

 

  • Upvote 1
Link to comment

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.