After installing the iBatyr Monitor server part, the question often arises of automatically starting this virtual machine when the physical server is rebooted.
This issue can be solved quite easily and reliably through the functionality built into the Windows scheduler.
Steps to achieve the goal of automatically starting a virtual machine:
Open Windows Scheduler - Start - Run - Taskschd.msc or immediately enter in the Windows search bar - Taskschd.msc
Click on the “Create basic task.." button
Specify the name of our task, for example test or iBatyr
Select in what period or at what event the task will be executed, select - When the computer starts
Action - run program - Start a programm
And we indicate the parameters for launching the program, as an executable file, we indicate
C:\Program Files\Oracle\VirtualBox\VBoxManage.exe
And additionally specify the command line arguments
startvm ibatyr --type headless
Click the Finish button
After this, when the system is rebooted, a virtual machine with the name “VM” will automatically start.