Trying to diagnose poor start/stop reliability with VBoxManage
Posted: 30. Nov 2020, 14:29
Hi all,
I am starting/stopping a lot of VMs (up to 60) using scripts that call out to VBoxManage. The VMs have been created prior to the script and are in a powered off state. For startup, I do 2 at a time, waiting 30 seconds between batches. For shutdown I do similar, sending an ACPI power off command via VBoxManage.
This is on a Windows host and generally I have the VBox GUI up as well. Quite frequently (usually 1/10 VMs) one of the VMs will get stuck at power on with a black screen. It is not even getting to the GRUB boot loader. On shut down very frequently one or more VMs will get stuck in "powering off" and the VBox GUI will also hang and become inoperative. If this happens then the only option is to reboot the PC, at which point the affected VMs are in "aborted" state. This seems far more likely to happen if I interact with the GUI while the operations are being performed.
I am assuming this is a VBox problem because both VBoxManage and the VBox GUI hang indefinitely if you try and interact with one of the VMs which it got stuck with powering off. This makes the whole automation process very fraught and unreliable and requires reboots. If you slowly do it one at a time by hand from the GUI there are no problems.
Has anyone got any suggestions or ideas I can try to diagnose the problem?
I am starting/stopping a lot of VMs (up to 60) using scripts that call out to VBoxManage. The VMs have been created prior to the script and are in a powered off state. For startup, I do 2 at a time, waiting 30 seconds between batches. For shutdown I do similar, sending an ACPI power off command via VBoxManage.
This is on a Windows host and generally I have the VBox GUI up as well. Quite frequently (usually 1/10 VMs) one of the VMs will get stuck at power on with a black screen. It is not even getting to the GRUB boot loader. On shut down very frequently one or more VMs will get stuck in "powering off" and the VBox GUI will also hang and become inoperative. If this happens then the only option is to reboot the PC, at which point the affected VMs are in "aborted" state. This seems far more likely to happen if I interact with the GUI while the operations are being performed.
I am assuming this is a VBox problem because both VBoxManage and the VBox GUI hang indefinitely if you try and interact with one of the VMs which it got stuck with powering off. This makes the whole automation process very fraught and unreliable and requires reboots. If you slowly do it one at a time by hand from the GUI there are no problems.
Has anyone got any suggestions or ideas I can try to diagnose the problem?