I'm automating VM creation using VBoxManage unattended install and want to run script after installing which led me to --post-install-command option.
The problem here is: the next steps in my script require Guest Additions, so I used --install-additions option in installation. Unfortunately, this option doesn't restart the machine after installing the Guest Additions, So I'm looking for a workaround so I restart the VM(from host or guest) and then continue my main script.