Automatic launch of the iBatyr Monitor virtual machine in VirtualBox

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

Illustration 1 — Automatic launch of the iBatyr Monitor virtual machine in VirtualBox
  • Specify the name of our task, for example test or iBatyr

Illustration 2 — Automatic launch of the iBatyr Monitor virtual machine in VirtualBox
  • Select in what period or at what event the task will be executed, select - When the computer starts

Illustration 3 — Automatic launch of the iBatyr Monitor virtual machine in VirtualBox
  • Action - run program - Start a programm

Illustration 4 — Automatic launch of the iBatyr Monitor virtual machine in VirtualBox
  • 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
Illustration 5 — Automatic launch of the iBatyr Monitor virtual machine in VirtualBox
  • Click the Finish button

Illustration 6 — Automatic launch of the iBatyr Monitor virtual machine in VirtualBox

After this, when the system is rebooted, a virtual machine with the name “VM” will automatically start.