Question

I tried using VBoxManage guestproperty wait <vmname> ... but what looked like obvious patterns didn't work. I'm writing a script which imports a new VM, configures it, launches it, takes a snapshot, and then closes it, and obviously I need to know when the VM is running before taking the final two steps.

Thanks.

Was it helpful?

Solution

You can use showvminfo output:

for Linux:

VBoxManage showvminfo "vm_name" | grep State

for Windows:

VBoxManage showvminfo "vm_name" | findstr State

See the thread below:

https://unix.stackexchange.com/questions/28611/how-to-automatically-start-and-shut-down-virtualbox-machines

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top