× NETGEAR will be terminating ReadyCLOUD service by July 1st, 2023. For more details click here.
Orbi WiFi 7 RBE973
Reply

Re: PHP VirtualBox Manager (Help)

alouch47
Guide

PHP VirtualBox Manager (Help)

Hi all.

"WhoCares?" if you're around, maybe you can help me with this.

I've installed you addon and once made it works, but by the time VB wasn't working.
(VB installed trough APT)
Now that my VB is working (VB installed from sources), the addon not working 😕

The strange thing is that when VB was working (it was working but VM cannot run) I can connect to PHP VBox manager without changing the pass in the config file. If I change the pass, your addon wasn't working.

Now that my VM are working, whether I change the pass in the config file, or not, I cannot access your addon.
It output the following error message :
Exception Object
(
[message:protected] => Error logging in or connecting to vboxwebsrv.
[string:private] =>
[code:protected] => 32
[file:protected] => /frontview/ui/resource/html/phpvboxmgr/lib/vboxconnector.php
[line:protected] => 117
[trace:private] => Array
(
[0] => Array
(
[file] => /frontview/ui/resource/html/phpvboxmgr/lib/vboxconnector.php
[line] => 1749
[function] => __vboxwebsrvConnect
[class] => vboxconnector
[type] => ->
[args] => Array
(
)

)

[1] => Array
(
[file] => /frontview/ui/resource/html/phpvboxmgr/lib/vboxconnector.php
[line] => 218
[function] => getVMsCached
[class] => vboxconnector
[type] => ->
[args] => Array
(
[0] => Array
(
[fn] => getVMs
)

[1] => Array
(
[data] =>
[errors] => Array
(
)

[persist] => Array
(
)

)

)

)

[2] => Array
(
[function] => __call
[class] => vboxconnector
[type] => ->
[args] => Array
(
[0] => getVMs
[1] => Array
(
[0] => Array
(
[fn] => getVMs
)

[1] => Array
(
[0] => Array
(
[data] =>
[errors] => Array
(
)

[persist] => Array
(
)

)

)

)

)

)

[3] => Array
(
[file] => /frontview/ui/resource/html/phpvboxmgr/lib/ajax.php
[line] => 93
[function] => getVMs
[class] => vboxconnector
[type] => ->
[args] => Array
(
[0] => Array
(
[fn] => getVMs
)

[1] => Array
(
[0] => Array
(
[data] =>
[errors] => Array
(
)

[persist] => Array
(
)

)

)

)

)

)

)


I have enabled log on the vboxwebsrv.
The log is :

2010-09-16 16:53:45 [ P ] Socket connection successful: host = default (localhost), port = 18083, master socket = 9
2010-09-16 16:54:09 [ P ] Request 1 on socket 10 queued for processing (1 items on Q)
2010-09-16 16:54:09 [ 1] New SOAP thread started
2010-09-16 16:54:09 [ 1] Processing connection from IP=127.0.0.1 socket=10 (0 out of 1 threads idle)
2010-09-16 16:54:09 [ P ] Request 2 on socket 11 queued for processing (1 items on Q)
2010-09-16 16:54:09 [ 1] Processing connection from IP=127.0.0.1 socket=11 (0 out of 1 threads idle)
2010-09-16 16:54:10 [ P ] Request 3 on socket 10 queued for processing (1 items on Q)
2010-09-16 16:54:10 [ 1] Processing connection from IP=127.0.0.1 socket=10 (0 out of 1 threads idle)
2010-09-16 16:54:10 [ P ] Request 4 on socket 11 queued for processing (1 items on Q)
2010-09-16 16:54:10 [ 1] Processing connection from IP=127.0.0.1 socket=11 (0 out of 1 threads idle)
2010-09-16 16:54:10 [ 1] Processing connection from IP=127.0.0.1 socket=10 (0 out of 1 threads idle)
2010-09-16 16:54:10 [ P ] Request 5 on socket 10 queued for processing (1 items on Q)
2010-09-16 16:54:10 [ P ] Request 6 on socket 11 queued for processing (1 items on Q)
2010-09-16 16:54:10 [ 1] Processing connection from IP=127.0.0.1 socket=11 (0 out of 1 threads idle)


Can you help me ?
Thanks.
Message 1 of 12
sphardy1
Apprentice

Re: PHP VirtualBox Manager (Help)

Ummm... Thought I'd try this as well - get exactly the same issue.

Am going to reboot my Ultra just to be on the safe side
Message 2 of 12
WhoCares_
Mentor

Re: PHP VirtualBox Manager (Help)

The reason for this problem is that VirtualBox changed the auth system for connecting to VirtualMachines but didn't reflect that change in vboxwebsrv. Thus, authentication will always fail unless a new Version of VitualBox fixes this.
For References see here: (vboxwebsrv authentication problem)

The only "solution" so far is to disable VirtualBox's internal auth by doing
VBoxManage setproperty websrvauthlibrary null


Of course this will leave the barn door wide open, so you may want to play with .htaccess and friends like outlined here. (Authentication System)

-Stefan
Message 3 of 12
alouch47
Guide

Re: PHP VirtualBox Manager (Help)

WhoCares? wrote:

Of course this will leave the barn door wide open, so you may want to play with .htaccess and friends like outlined
-Stefan


Thanks for the info.

Just to be sure I understand correctly : If the device is in a LAN with a firewall and nothing is forwarded to the box, there is no particular risk ?
Message 4 of 12
sphardy1
Apprentice

Re: PHP VirtualBox Manager (Help)

alouch47 wrote:
If the device is in a LAN with a firewall and nothing is forwarded to the box, there is no particular risk ?

Provided you trust all users on the local LAN.

Quick fix is to create the file "/frontview/ui/resource/html/phpvboxmgr/.htaccess" with the following contents to force an admin user login to get to the config page:

require user admin

<IfModule authnz_external_module>
AuthType Basic
AuthBasicProvider external
AuthExternal pwauth
</IfModule>

<IfModule !authnz_external_module>
LoadModule authnz_external_module /usr/lib/apache2/modules/mod_authnz_external.so
LoadModule auth_sys_group_module /usr/lib/apache2/modules/mod_auth_sys_group.so
AddExternalAuth pwauth /usr/bin/pwauth
SetExternalAuthMethod pwauth environment
</IfModule>

AuthName "PHPVboxMgr"
Message 5 of 12
sphardy1
Apprentice

Re: PHP VirtualBox Manager (Help)

Success!!

Message 6 of 12
alouch47
Guide

Re: PHP VirtualBox Manager (Help)

Congrats.

Working for me too. Though i've haven't enabled auth ATM
Message 7 of 12
sphardy1
Apprentice

Re: PHP VirtualBox Manager (Help)

FYI: Just got a Windows VM up and running through the manager - took less than 5 mins to set it up identically to the VM I'd been running on my mac. Very Nice!

Message 8 of 12
InTheShires
Tutor

Re: PHP VirtualBox Manager (Help)

Probably a stupid question, and a simple solution to boot, but the the hey!

Are people using phpVirtualBoxManager to manage their VM's?

I've got VBox 4.18.xxx, (latest) installed, running, booting, and a quick test VM of Ubuntu that I can view and via a remote desktop. (Basic Windows one for the time being)

I've had phpvboxmgr work successfully just once. And when I say successful, I just mean I could see the VM.

After that, I've not been able to use the phpvboxmgr app. I get a constant stream of errors. (See end of post for some of the most repeated msgs.)

I've tried adjusting things here and there with tips posted here, and elsewhere. (WebAuth = Null, .htaccess file, user/pass. ETC, ETC.)

I'm using WhoCares? PHPVBoxMgr_0.4-readypro-0.1.1.bin addon. Same errors mostly.

So, I've grabbed the latest file via the official site. I've tried running that. which also gives me a headache and won't get me a working PHP Vbox Manager.

Ultra 2+.
Firmware 4.2.17
Stock RAM
WhoCares? PHP addon installed, which seems to be fine with SOAP accrding to the page, which I believe has been an issue in earlier releases.

I've spent 3 days and evenings on this, and I just cannot get it working. 😞

Errors! Enjoy!!!

Exception Object
(
[message:protected] => Could not connect to host
[string:Exception:private] =>
[code:protected] => 32
[file:protected] => /frontview/ui/resource/html/phpvboxmgr/lib/vboxconnector.php
[line:protected] => 111
[trace:Exception:private] => Array
(
[0] => Array
(
[file] => /frontview/ui/resource/html/phpvboxmgr/lib/vboxconnector.php
[line] => 1749
[function] => __vboxwebsrvConnect
[class] => vboxconnector
[type] => ->
[args] => Array
(
)

)

[1] => Array
(
[file] => /frontview/ui/resource/html/phpvboxmgr/lib/vboxconnector.php
[line] => 218
[function] => getVMsCached
[class] => vboxconnector
[type] => ->
[args] => Array
(
[0] => Array
(
[fn] => getVMs
)

[1] => Array
(
[data] =>
[errors] => Array
(
)

[persist] => Array
(
)

)

)

)

[2] => Array
(
[file] => /frontview/ui/resource/html/phpvboxmgr/lib/ajax.php
[line] => 93
[function] => __call
[class] => vboxconnector
[type] => ->
[args] => Array
(
[0] => getVMs
[1] => Array
(
[0] => Array
(
[fn] => getVMs
)

[1] => Array
(
[0] => Array
(
[data] =>
[errors] => Array
(
)

[persist] => Array
(
)

)

)

)

)

)

[3] => Array
(
[file] => /frontview/ui/resource/html/phpvboxmgr/lib/ajax.php
[line] => 93
[function] => getVMs
[class] => vboxconnector
[type] => ->
[args] => Array
(
[0] => Array
(
[fn] => getVMs
)

[1] => Array
(
[0] => Array
(
[data] =>
[errors] => Array
(
)

[persist] => Array
(
)

)

)

)

)

)

[previous:Exception:private] =>
)


Exception Object
(
[message:protected] => Could not connect to host
[string:Exception:private] =>
[code:protected] => 32
[file:protected] => /frontview/ui/resource/html/phpvboxmgr/lib/vboxconnector.php
[line:protected] => 111
[trace:Exception:private] => Array
(
[0] => Array
(
[file] => /frontview/ui/resource/html/phpvboxmgr/lib/vboxconnector.php
[line] => 1808
[function] => __vboxwebsrvConnect
[class] => vboxconnector
[type] => ->
[args] => Array
(
)

)

[1] => Array
(
[file] => /frontview/ui/resource/html/phpvboxmgr/lib/vboxconnector.php
[line] => 218
[function] => getMediumsCached
[class] => vboxconnector
[type] => ->
[args] => Array
(
[0] => Array
(
[fn] => getMediums
)

[1] => Array
(
[data] =>
[errors] => Array
(
)

[persist] => Array
(
)

)

)

)

[2] => Array
(
[file] => /frontview/ui/resource/html/phpvboxmgr/lib/ajax.php
[line] => 93
[function] => __call
[class] => vboxconnector
[type] => ->
[args] => Array
(
[0] => getMediums
[1] => Array
(
[0] => Array
(
[fn] => getMediums
)

[1] => Array
(
[0] => Array
(
[data] =>
[errors] => Array
(
)

[persist] => Array
(
)

)

)

)

)

)

[3] => Array
(
[file] => /frontview/ui/resource/html/phpvboxmgr/lib/ajax.php
[line] => 93
[function] => getMediums
[class] => vboxconnector
[type] => ->
[args] => Array
(
[0] => Array
(
[fn] => getMediums
)

[1] => Array
(
[0] => Array
(
[data] =>
[errors] => Array
(
)

[persist] => Array
(
)

)

)

)

)

)

[previous:Exception:private] =>
)


Exception Object
(
[message:protected] => Could not connect to host
[string:Exception:private] =>
[code:protected] => 32
[file:protected] => /frontview/ui/resource/html/phpvboxmgr/lib/vboxconnector.php
[line:protected] => 111
[trace:Exception:private] => Array
(
[0] => Array
(
[file] => /frontview/ui/resource/html/phpvboxmgr/lib/vboxconnector.php
[line] => 2622
[function] => __vboxwebsrvConnect
[class] => vboxconnector
[type] => ->
[args] => Array
(
)

)

[1] => Array
(
[file] => /frontview/ui/resource/html/phpvboxmgr/lib/vboxconnector.php
[line] => 218
[function] => getSystemPropertiesCached
[class] => vboxconnector
[type] => ->
[args] => Array
(
[0] => Array
(
[fn] => getSystemProperties
)

[1] => Array
(
[data] =>
[errors] => Array
(
)

[persist] => Array
(
)

)

)

)

[2] => Array
(
[file] => /frontview/ui/resource/html/phpvboxmgr/lib/ajax.php
[line] => 93
[function] => __call
[class] => vboxconnector
[type] => ->
[args] => Array
(
[0] => getSystemProperties
[1] => Array
(
[0] => Array
(
[fn] => getSystemProperties
)

[1] => Array
(
[0] => Array
(
[data] =>
[errors] => Array
(
)

[persist] => Array
(
)

)

)

)

)

)

[3] => Array
(
[file] => /frontview/ui/resource/html/phpvboxmgr/lib/ajax.php
[line] => 93
[function] => getSystemProperties
[class] => vboxconnector
[type] => ->
[args] => Array
(
[0] => Array
(
[fn] => getSystemProperties
)

[1] => Array
(
[0] => Array
(
[data] =>
[errors] => Array
(
)

[persist] => Array
(
)

)

)

)

)

)

[previous:Exception:private] =>
)


Any finally...

phpVirtualBox

Method 'ns1:ISystemProperties_getMaxVDISize' not implemented: method name or namespace not recognised

Details...
Message 9 of 12
j6harri
Aspirant

Re: PHP VirtualBox Manager (Help)

InTheShires,

Were you ever able to get this working. I am getting the exact same errors?

WhoCares,

Do you have any idea of some things to look at for this.
Message 10 of 12
InTheShires
Tutor

Re: PHP VirtualBox Manager (Help)

j6harri wrote:
InTheShires,

Were you ever able to get this working. I am getting the exact same errors?


I get it working in the end and it's still working now, I just need to upgrade the RAM on it, to optimise things a little.

That said, I can't remember exactly what I did. "jmalmlund" kindly PM'd me out the blue with some advice which, IIRC pointed me in the direction to get things moving again. Unfortunately I can't remember exactly what I did. I think I resorted to reinstalling VBox and the EXT pack, which solved much of my problems, although I tried so many things I lost track of what I did. Also, IIRC, I also had to call vboxwebsrvr manually, and then created a script to start it at reboot. There were also some AUTH issues which I seem to recall struggling with, but jmalmlund's PM helped me with that.

I had no joy making any VBox stuff work on anything other than v4.2.17 firmware. Though I think some have succeeded with a beta of 4.2.20 Txx
Message 11 of 12
JamieSinn
Aspirant

Re: PHP VirtualBox Manager (Help)

Does anyone have the download for the .bin?
The place it was hosted seem to have dissapeared
Message 12 of 12
Discussion stats
  • 11 replies
  • 4342 views
  • 0 kudos
  • 6 in conversation
Announcements