Learn how easy it is to sync an existing GitHub or Google Code repo to a SourceForge project! See Demo

Close

phpvirtualbox reports wrong state

Help
2013-10-14
2013-11-12
  • braf zachland
    braf zachland
    2013-10-14

    after my host server crashed phpvirtualbox is reporting the guest vm's as powered of even when on and i can ssh into them. the host was running for over a month problem free although i know i was taxing the cpu. i believe it was running at 400%, but it was working. it finally crashed and after getting the host back online i noticed that when starting the vm's it would change from the normal "powered off" state to a italicized "powered off" state instead of "running". everything seems to be running normally besides that and i can login remotely to the guests. i even logged into the guest and ran an "sudo shutdown -h now" and then re-started them via phpvirtual box thinking the fact they previously had a hard shutdown might have caused the behavior but it still reports as "powered off" just italicized instead of the normal font. any ideas or others experience this before?

     
  • Ian Moore
    Ian Moore
    2013-10-15

    I have no idea why it would do this. Does 'VBoxManage --list vms' show the correct states?

     
  • Bonzo
    Bonzo
    2013-11-08

    I'm experiencing the same problem after installing vboxtool (http://vboxtool.sourceforge.net/). Machines started/stoped by vboxtool does not update information: phpvirtualbox still shows previous state of the machine.

    'VBoxManage list vms' works as expected (shows updated information whoever started/stoped the machine, phpvirtualbox or vboxtool).

    phpvirtualbox was working fine before intalling vboxtool (needed to automatic start and shutdown guest upon host start and shutdown).

    Does anyone have the same ptoblem? Any clue?

    Update:

    phpvirtualbox no longer shows accurate state of virtual machines even when they are started by phpvirtualbox (phpvirtualbox does not complete process as expected but machine is started anyway).

    Is there a way to reset/reinstall phpvirtualbox?

     
    Last edit: Bonzo 2013-11-08
  • Ian Moore
    Ian Moore
    2013-11-12

    Hello,

    What version of phpvirtualbox? What web browser are you using? Are there any errors in its javascript console? If you don't know how to check this, I can walk you through it - just let me know which browser you are using.

     
  • Bonzo
    Bonzo
    2013-11-12

    Hello.

    phpVirtualBox 4.2-8 -/- VirtualBox 4.2.x compatible
    Firefox 25

    The output of the browser console (only javascript related stuff) is:

    [12:55:51.148] SyntaxError: Using //@ to indicate source map URL pragmas is deprecated. Use //# instead @ http://10.9.3.200/phpvirtualbox/js/jquery-1.10.2-min.js:1
    [12:55:52.167] El uso de getPreventDefault() está desaprobado. Use en su lugar defaultPrevented. @ http://10.9.3.200/phpvirtualbox/js/jquery-1.10.2-min.js:5

    UPDATE:
    I have just created a new machine with phpVirtualbox (no errors while creating). It shows in web interface, but not when I do "VBoxManage list vms". When I try to run the machine for first time I get this error:

    The virtual machine 'Mail_server' has terminated unexpectedly during startup with exit code 1

    Details:

    Exception Object
    (
    [message:protected] => The virtual machine 'Mail_server' has terminated unexpectedly during startup with exit code 1
    [string:Exception:private] =>
    [code:protected] => 0
    [file:protected] => /var/www/phpvirtualbox/lib/vboxconnector.php
    [line:protected] => 2345
    [trace:Exception:private] => Array
    (
    [0] => Array
    (
    [file] => /var/www/phpvirtualbox/lib/vboxconnector.php
    [line] => 920
    [function] => remote_progressGet
    [class] => vboxconnector
    [type] => ->
    [args] => Array
    (
    [0] => Array
    (
    [progress] => f7ce6a939b801771-0000000000024cc5
    [_persist] => Array
    (
    [vboxHandle] => f7ce6a939b801771-0000000000024cc3
    )

                                    [fn] => progressGet
                                )
    
                        )
    
                )
    
            [1] => Array
                (
                    [file] => /var/www/phpvirtualbox/lib/ajax.php
                    [line] => 309
                    [function] => __call
                    [class] => vboxconnector
                    [type] => ->
                    [args] => Array
                        (
                            [0] => progressGet
                            [1] => Array
                                (
                                    [0] => Array
                                        (
                                            [progress] => f7ce6a939b801771-0000000000024cc5
                                            [_persist] => Array
                                                (
                                                    [vboxHandle] => f7ce6a939b801771-0000000000024cc3
                                                )
    
                                            [fn] => progressGet
                                        )
    
                                    [1] => Array
                                        (
                                            [0] => Array
                                                (
                                                    [data] => Array
                                                        (
                                                            [responseData] => Array
                                                                (
                                                                    [progress] => f7ce6a939b801771-0000000000024cc5
                                                                    [info] => Array
                                                                        (
                                                                            [completed] => 1
                                                                            [canceled] => 
                                                                            [description] => Starting VM
                                                                            [operationDescription] => Creating process for virtual machine "Mail_server" (headless)
                                                                            [timeRemaining] => Array
                                                                                (
                                                                                )
    
                                                                            [timeElapsed] => Array
                                                                                (
                                                                                    [days] => 16021
                                                                                    [hours] => 12
                                                                                    [minutes] => 7
                                                                                    [seconds] => 45
                                                                                )
    
                                                                            [percent] => 0
                                                                        )
    
                                                                )
    
                                                            [success] => 1
                                                            [key] => 53474945cfd7ac0bf8114767c209c2a6
                                                        )
    
                                                    [errors] => Array
                                                        (
                                                        )
    
                                                    [persist] => Array
                                                        (
                                                        )
    
                                                    [messages] => Array
                                                        (
                                                        )
    
                                                )
    
                                        )
    
                                )
    
                        )
    
                )
    
            [2] => Array
                (
                    [file] => /var/www/phpvirtualbox/lib/ajax.php
                    [line] => 309
                    [function] => progressGet
                    [class] => vboxconnector
                    [type] => ->
                    [args] => Array
                        (
                            [0] => Array
                                (
                                    [progress] => f7ce6a939b801771-0000000000024cc5
                                    [_persist] => Array
                                        (
                                            [vboxHandle] => f7ce6a939b801771-0000000000024cc3
                                        )
    
                                    [fn] => progressGet
                                )
    
                            [1] => Array
                                (
                                    [0] => Array
                                        (
                                            [data] => Array
                                                (
                                                    [responseData] => Array
                                                        (
                                                            [progress] => f7ce6a939b801771-0000000000024cc5
                                                            [info] => Array
                                                                (
                                                                    [completed] => 1
                                                                    [canceled] => 
                                                                    [description] => Starting VM
                                                                    [operationDescription] => Creating process for virtual machine "Mail_server" (headless)
                                                                    [timeRemaining] => Array
                                                                        (
                                                                        )
    
                                                                    [timeElapsed] => Array
                                                                        (
                                                                            [days] => 16021
                                                                            [hours] => 12
                                                                            [minutes] => 7
                                                                            [seconds] => 45
                                                                        )
    
                                                                    [percent] => 0
                                                                )
    
                                                        )
    
                                                    [success] => 1
                                                    [key] => 53474945cfd7ac0bf8114767c209c2a6
                                                )
    
                                            [errors] => Array
                                                (
                                                )
    
                                            [persist] => Array
                                                (
                                                )
    
                                            [messages] => Array
                                                (
                                                )
    
                                        )
    
                                )
    
                        )
    
                )
    
        )
    
    [previous:Exception:private] =>
    

    )

    Thank you.

     
    Last edit: Bonzo 2013-11-12
  • Bonzo
    Bonzo
    2013-11-12

    Hello.

    Last news: I have restarted vboxweb-service and apache2 and now phpvirtualbox and vboxtool shows same information and phpvirtualbox can create and run new vms.

    After that it seems the problem is gone. I will update here if some problem remains...

    Thank you.