OpenMediaVault-Plugin-Developers / openmediavault-virtualbox

virtualbox plugin for OpenMediaVault
13 stars 6 forks source link

Status inconsistent issue for Service->VirtualBox->Virtual Machines #19

Open weyou opened 5 years ago

weyou commented 5 years ago

OMV version: 4.1.9 Location: Service->VirtualBox->Virtual Machines

Background: I only have one virtual machine.

Select the virtual machine, click "Start" button to start it. After the VM status changed to "running", the "Start" button is still enabled. and the "Stop" button is disabled(grayed out). If I'd like to stop the VM, I have to change to other menu item and then back to this page to enable the "Stop" button.

The same situation happens after stopping the VM. The "Stop" button is enabled and the "Start" button is disabled as is.

zocker-160 commented 5 years ago

I have the same issue, here is my output I get:


Exception Object
(
    [message:protected] => The virtual machine 'Windows Server 2012 R2' has terminated unexpectedly during startup with exit code 1 (0x1)
    [string:Exception:private] => 
    [code:protected] => 0
    [file:protected] => /usr/share/phpvirtualbox/endpoints/lib/vboxconnector.php
    [line:protected] => 2429
    [trace:Exception:private] => Array
        (
            [0] => Array
                (
                    [file] => /usr/share/phpvirtualbox/endpoints/lib/vboxconnector.php
                    [line] => 951
                    [function] => remote_progressGet
                    [class] => vboxconnector
                    [type] => ->
                    [args] => Array
                        (
                            [0] => Array
                                (
                                    [progress] => 1b47aa168724a185-0000000000000004
                                )

                        )

                )

            [1] => Array
                (
                    [file] => /usr/share/phpvirtualbox/endpoints/api.php
                    [line] => 316
                    [function] => __call
                    [class] => vboxconnector
                    [type] => ->
                    [args] => Array
                        (
                            [0] => progressGet
                            [1] => Array
                                (
                                    [0] => Array
                                        (
                                            [progress] => 1b47aa168724a185-0000000000000004
                                        )

                                    [1] => Array
                                        (
                                            [0] => Array
                                                (
                                                    [data] => Array
                                                        (
                                                            [responseData] => Array
                                                                (
                                                                    [progress] => 1b47aa168724a185-0000000000000004
                                                                    [info] => Array
                                                                        (
                                                                            [completed] => 1
                                                                            [canceled] => 
                                                                            [description] => Starting VM
                                                                            [operationDescription] => Creating process for virtual machine "Windows Server 2012 R2" (headless)
                                                                            [timeRemaining] => Array
                                                                                (
                                                                                )

                                                                            [timeElapsed] => Array
                                                                                (
                                                                                    [days] => 17865
                                                                                    [hours] => 23
                                                                                    [minutes] => 47
                                                                                    [seconds] => 13
                                                                                )

                                                                            [percent] => 0
                                                                        )

                                                                )

                                                            [success] => 1
                                                            [key] => 53474945cfd7ac0bf8114767c209c2a6
                                                        )

                                                    [errors] => Array
                                                        (
                                                        )

                                                    [persist] => Array
                                                        (
                                                        )

                                                    [messages] => Array
                                                        (
                                                        )

                                                )

                                        )

                                )

                        )

                )

        )

    [previous:Exception:private] => 
)