diff --git a/samples/vboxwrapper/vbox.cpp b/samples/vboxwrapper/vbox.cpp index f42b8774b1..1e6b52b3ec 100644 --- a/samples/vboxwrapper/vbox.cpp +++ b/samples/vboxwrapper/vbox.cpp @@ -301,6 +301,7 @@ bool VBOX_VM::is_running() { char buf[256]; command = "showvminfo \"" + vm_name + "\" "; + command += "--machinereadable "; if (vbm_popen(command, output) == 0) { vmstate_location = output.find("VMState=\"");