Code: Select all
for vm in VM1 VM2 VM3
do
VBoxManage startvm $vm
done
However, the other half of the time, VBoxManage returns immediately after having started the process of starting the VM. In this scenario all the VMs are essentially started at the same time, this results in lots of disk thrashing with every VM trying to read from the HDD at the same time.
I'm just running the same script, so why does it sometimes behave in the way that I would like it to, and at other times it doesn't. Is there a way to force VBoxManage to completely finish starting a VM before returning?