NETGEAR is aware of a growing number of phone and online scams. To learn how to stay safe click here.

Forum Discussion

michelefaccini's avatar
Feb 17, 2013

phpVirtualBox

Hi all, I successfully installed phpVirtualBox on my WAMP server and most of all it runs....Unfortunately I'm stucked with the same operation on my ReadyNas Ultra 2 Plus, getting no communication between my nas and my desktop (even if I did almost everything on trying to find a solution...for example : opening ports on my router, enabling programs on my Windows 7 Firewall,...) . I still have some doubts on what I'm doing....I read what it is explainded in http://www.readynas.com/forum/viewtopic.php?f=48&t=44145 but in the 'Important' note it's written ■ Have manually started the "/opt/VirtualBox/vboxwebsrv" utility.
With my putty shell, I opened the folder opt and I noticed that I do not have any VirtualBox folder. Does this means that I have to install VirtualBox on my nas too ? My intention was to have only phpVirtualBox on my nas and have VirtualBox on my desktop (I specified in the config file that my web server and vboxwebsrv were NOT on the same host. I checked in the php.ini file (the WAMP one and the NAS one) that SOAP parameters were the same.
To have my phpVirtualBox running on my WAMP, I had to type the following lines in the Vboxmanage interface : Vboxmanage setproperty websrvauthlibrary null and Vboxwebsrv.exe >null. I added to the above commands the following line trying to get my nas VirtualBox running too : Vboxwebsrv.exe -H ip.address.of.virtualbox.host where I put 192.168.0.2 for my ip.address.of.virtualbox.host[/i.

I get this error in my Vboxmanage interface : 00:00:04.305000 SQPmp #### SOAP FAULT: Requested address is not valid in its context.

Am I missing something......Any answer is welcomed....I start having some headache......Bye !!!!!!

PS: In my Windows 7 Firewall settings, VBoxHeadless is enabled for public and private. I opened the tcp port 18083 in my router....I also tried to change privileges over the VirtualBox installation folder ( default location in C:\program files\Oracle\Virtualbox\ ).
I also modified some phpvirtualbox config lines :
#var $noAuth = true; to var $noAuth = true; which effect is not to have an error on the ajax.php file but to have it on the vboxconnector.php (both files are in the lib folder).

Trying to force the use of local, web server based file browser instead of going through vboxwebsrv
changing line #var $browserLocal = true; to var $browserLocal = true;

5 Replies

Replies have been turned off for this discussion
  • OOpps....that's my fault.....what I had as MAC Address for my desktop ( router reserved ip setting ) was wrong. I changed so to the correct address...and now phpvirtualbox works on my nas too...
  • Now that my phpVirtualBox installation is ok, the next step for me would be to remotely execute on my desktop (with a php script) the following Vboxmanage commands : Vboxmanage setproperty websrvauthlibrary null and Vboxwebsrv.exe -H ip.address.of.virtualbox.host. I need so to execute a .bat file......is anyone out there already wrote something ?

    PS: I tried to start Vboxwebsrv as a windows 7's service but I don't know why if you set it up like this, you got an error if you start VirtualBox.
  • I found this http://forums.devshed.com/php-development-5/executing-a-batch-file-from-my-webpage-507362.html

    Where it's written : 'I assume you're using windows operating systems for your developments , if so, to be able to execute batch files from php, you should load the module mod_fcgid with php, you can download it from here
    download and place it in the modules folder of apache, then you should do the following modifications to your httpd.conf'


    The cgi module is already loaded ( see phpinfo() ) in Apache....do I have to install mod_fcgid too or it's enough to have mod_cgi loaded....

    Any help is appreciated because things are becoming too complicated for my knowledge.....Thanks
  • Have you installed VBox on the NAS, and then trying to run a VM via PHPVbox?

    The way I'm reading your OP is that VBox is installed on your Windows machine, and you're trying to make the PHPVBox addon talk to the Windows unit, which I'm not sure is possible in this instance?
  • As I wrote my installation works fine....that's means my users are able from the phpVirtualbox web interface to use virtual machines that are on my Desktop. What I want to do now, is to have the whole thing automatic : to start my dekstop with a Wake On Lan and after that execute a batch file ( which would open Vboxmanage interface and set authentication property to 'none'...see above about the command lines to execute ).

NETGEAR Academy

Boost your skills with the Netgear Academy - Get trained, certified and stay ahead with the latest Netgear technology! 

Join Us!

ProSupport for Business

Comprehensive support plans for maximum network uptime and business peace of mind.

 

Learn More