Doesn't seem to be doable. Trying to configure a new server to host a couple of VM's and I can't get this to work. I've install the missing php-soap module and other stuff, but still can't get logged in. It gives ...
xception Object
( [message:protected] => Could not connect to host (http://192.168.1.88:18083/) [string:Exception:private] => [code:protected] => 64 [file:protected] => /var/www/html/phpvirtualbox-5.2-0-rc1/endpoints/api.php [line:protected] => 134 [trace:Exception:private] => Array
(
)
[previous:Exception:private] =>
)
And it gives the same error if I leave the host a localhost...127.0.0.1.
Help, please.
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Can you tell us which release of phpvirtualbox you have installed? According to your error message, it seems to be the github 5.2-0-rc1 tag.
Are your web server and the Virtualbox vboxwebsrv procces running on the same server?
You should check that vboxwebsrv is running on your server by running the following command as root : ps aux | grep vboxwebsrv.
You should get something like : vbox 29932 0.1 0.0 1004240 28372 ? Sl déc.13 9:22 /usr/lib/virtualbox/vboxwebsrv -P /srv/vbox/vboxweb.pid -b
If not, vboxwebsrv is not running, start it.
Then, look for the vboxwebsrv listening IP address and port by running as root : lsof -i -n | grep vboxweb
You should get something like : vboxwebsr 29932 vbox 9u IPv4 89070 0t0 TCP 127.0.0.1:18083 (LISTEN)
In that output example, vboxwebsrv is listening on address 127.0.0.1 and port 18083 (which is default) and the correct phpvirtualbox configuration will be var $location = 'http://127.0.0.1:18083/';.
Finally, check your username and password in config.php (var $username and var $password). The output of the lsof or ps commands will tell you the name of the Linux user running vboxwebsrv and which is expected in config.php . In the previous examples, this user is named "vbox" . Note that you should have set the password of that user with the passwd command.
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Thank you Stuart and Thomas.
I have been trying and failing to get phpvirtulabox running on centos 7.4 and lately on Ubuntu, thinking it was a kernel issue that I could not fathom.
Now with ubunut 16.04, the same issue
Could not connect to host
Going through your steps above Thomas, I saw the results of 'lsof -i -n | grep vboxweb' on my box sr 2900 root 10u IPv6 57621 0t0 TCP [::1]:18083 (LISTEN)
I had a feeling that IPv6 was the culprit so I disabled IPv6 (instructions here)
After disableing IPv6, i ran 'lsof -i -n | grep vboxweb' and got this: sr 3109 root 10u IPv4 67354 0t0 TCP 127.0.0.1:18083 (LISTEN)
Note that it is now IPv4 and the TCP output has the local IP.
I restarted virtuabox and vboxweb and was able to log into phpvirtualbox - STELLAR
i hope this can be used to help others. -cheers.
Last edit: Estoban 2018-04-03
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Doesn't seem to be doable. Trying to configure a new server to host a couple of VM's and I can't get this to work. I've install the missing php-soap module and other stuff, but still can't get logged in. It gives ...
xception Object
(
[message:protected] => Could not connect to host (http://192.168.1.88:18083/)
[string:Exception:private] =>
[code:protected] => 64
[file:protected] => /var/www/html/phpvirtualbox-5.2-0-rc1/endpoints/api.php
[line:protected] => 134
[trace:Exception:private] => Array
(
)
)
And it gives the same error if I leave the host a localhost...127.0.0.1.
Help, please.
Hi,
Can you tell us which release of phpvirtualbox you have installed? According to your error message, it seems to be the github 5.2-0-rc1 tag.
Are your web server and the Virtualbox vboxwebsrv procces running on the same server?
You should check that vboxwebsrv is running on your server by running the following command as root :
ps aux | grep vboxwebsrv
.You should get something like :
vbox 29932 0.1 0.0 1004240 28372 ? Sl déc.13 9:22 /usr/lib/virtualbox/vboxwebsrv -P /srv/vbox/vboxweb.pid -b
If not, vboxwebsrv is not running, start it.
Then, look for the vboxwebsrv listening IP address and port by running as root :
lsof -i -n | grep vboxweb
You should get something like :
vboxwebsr 29932 vbox 9u IPv4 89070 0t0 TCP 127.0.0.1:18083 (LISTEN)
In that output example, vboxwebsrv is listening on address 127.0.0.1 and port 18083 (which is default) and the correct phpvirtualbox configuration will be
var $location = 'http://127.0.0.1:18083/';
.Finally, check your username and password in config.php (
var $username
andvar $password
). The output of the lsof or ps commands will tell you the name of the Linux user running vboxwebsrv and which is expected in config.php . In the previous examples, this user is named "vbox" . Note that you should have set the password of that user with thepasswd
command.I replied, but it seems to have diappeared.
It looks like I have some setup issues with systemd. I can't get vboxdrv or vboxweb-service to start/run.
Did you install the virtualbox package provided with Ubuntu or did you follow these instructions?
What do you get if you run the following commands as root?
Last edit: Thomas 2017-12-18
Thank you Stuart and Thomas.
I have been trying and failing to get phpvirtulabox running on centos 7.4 and lately on Ubuntu, thinking it was a kernel issue that I could not fathom.
Now with ubunut 16.04, the same issue
Could not connect to host
Going through your steps above Thomas, I saw the results of 'lsof -i -n | grep vboxweb' on my box
sr 2900 root 10u IPv6 57621 0t0 TCP [::1]:18083 (LISTEN)
I had a feeling that IPv6 was the culprit so I disabled IPv6 (instructions here)
After disableing IPv6, i ran 'lsof -i -n | grep vboxweb' and got this:
sr 3109 root 10u IPv4 67354 0t0 TCP 127.0.0.1:18083 (LISTEN)
Note that it is now IPv4 and the TCP output has the local IP.
I restarted virtuabox and vboxweb and was able to log into phpvirtualbox - STELLAR
i hope this can be used to help others. -cheers.
Last edit: Estoban 2018-04-03