Jump to content
Ancan

VM startup order?

4 posts in this topic Last Reply

Recommended Posts

Hi,

Is there anyway to define which order your VM's autostart like there is in ESXi? I'd like my domain controller to be up and running before the other Windows VM's start.

 

Share this post


Link to post

Not in the GUI that I'm aware of. It's easy to script though. The way I handle it is autostart the primary services VM, and run a script on array start that pings the primary services VM, and when it's responsive to pings the script runs "virsh start vmname" for the subsequent VM's. You can add delays or dependencies to your hearts content in the script.

 

Share this post


Link to post
47 minutes ago, jonathanm said:

Not in the GUI that I'm aware of. It's easy to script though. The way I handle it is autostart the primary services VM, and run a script on array start that pings the primary services VM, and when it's responsive to pings the script runs "virsh start vmname" for the subsequent VM's. You can add delays or dependencies to your hearts content in the script.

 

Thanks! I'll look into that.

I think it would be  a useful feature to have this in the GUI. Perhaps I'll post it as a suggestion if not already done.

Share this post


Link to post
6 hours ago, Ancan said:

Thanks! I'll look into that.

I think it would be  a useful feature to have this in the GUI. Perhaps I'll post it as a suggestion if not already done.

I wonder if it might be relatively easy to do the same as is done with docker containers where you can reorder them in the GUI and (optionally) add a delay after starting one VM before attempting the next one.

Share this post


Link to post

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.