Developed by Kyriakos Giannakis (kerk12gr@gmail.com)
A simple script for managing VirtualBox VMs on boot and shutdown.
- Starts headless VMs when the host boots.
- Stops the started VMs on poweroff.
git clone ...chmod +x *.shandchmod +x *.pysudo bash setup.sh. This will copy all the required files in their respective places.sudo systemctl enable VMInit.- Edit the
/etc/vmlistfile and add your VM names, one per line. - (Optional: Start the service)
systemctl start VMInit
- Add a "shutdown or start specific VM" command.
- Upgrade to invoke SSH shutdowns (the power button method only works on VMs with no UI, as far as I'm aware...)