VM dependencies during AUTOSTART

Here you can provide suggestions on how to improve the product, website, etc.
Post Reply
perkhaus
Posts: 3
Joined: 9. Sep 2023, 19:37

VM dependencies during AUTOSTART

Post by perkhaus »

One of the features I am most missing (compared to vSphere, etc) is the ability to make one VM dependent on another.

For example, a database server likely would need to be up and running before another server which depends on the database service. Other likely candidates would be a file server or UTM, but the list could be long depending on specific needs.

Similar to the AUTOSTART delay, there could be a "delay after dependency" and (obviously) the ability to choose another registered VM. So as in the example above, you might want your dependent VM to start after the database server is confirmed to be running.
scottgus1
Site Moderator
Posts: 20945
Joined: 30. Dec 2009, 20:14
Primary OS: MS Windows 10
VBox Version: PUEL
Guest OSses: Windows, Linux

Re: VM dependencies during AUTOSTART

Post by scottgus1 »

An interesting idea!

FWIW this can be done with user-rolled scripts now.

Host script starts VM A.
Host script loops waiting for a file to appear in a global shared folder while incrementing a delay counter.
VM A is programmed via internal scripts to make a file in the global shared folder when certain desired services or states have been achieved.
If the file appears in the global shared folder, Host script knows VM A is up and running, jumps out of the loop.
If the delay counter reaches a determined amount of delay without the file appearing, Host script kills VM A and reboots it or other desired fallback procedures.
Outside first loop, Host script starts VM B...
etc.
perkhaus
Posts: 3
Joined: 9. Sep 2023, 19:37

Re: VM dependencies during AUTOSTART

Post by perkhaus »

A
scottgus1 wrote: 9. Sep 2023, 23:04 FWIW this can be done with user-rolled scripts now.
Example scripts?

Thanks!
scottgus1
Site Moderator
Posts: 20945
Joined: 30. Dec 2009, 20:14
Primary OS: MS Windows 10
VBox Version: PUEL
Guest OSses: Windows, Linux

Re: VM dependencies during AUTOSTART

Post by scottgus1 »

perkhaus wrote: 11. Sep 2023, 22:47 Example scripts?
Money?

:lol: No, I don't have any example scripts. Vboxmanage commands and standard command-line-fu can do it. Time to crack out that scripting manual....
Post Reply