I'm trying to set up a Virtualbox host for personal/professional use on a cloud-hosted, dedicated server. I'm fighting with enabling vboxwebserver so I can remotely manage my VMs without needing any Xserver on the host OS. I intend to use Remotebox for that purpose and then set some headless VMs up.
I think I've managed to get the vboxwebserver to work. However, I cannot connect remotely (Remotebox, Curl, nor nc to IP:18083). I'm getting a "credential refused or server not reachable/not running" error message.
Code: Select all
curl: (7) Failed to connect to 213.246.39.4 port 18083: Connexion refusée
Code: Select all
curl result to localhost:18083
<?xml version="1.0" encoding="UTF-8"?>
<SOAP-ENV:Fault xmlns:...
I created a dedicated user to run the vboxwebserver service: "virtual". After some exploration, I learnt that the service is not using the /etc/default/virtualbox config file but that you have to edit the service main file. I did that and it seems to be OK since the vboxweb service is now run by "virtual". However, the problem is still there: I cannot connect remotely to my Vbox. Here is some info:
Code: Select all
/etc/passwd
virtual:x:1001:116::/home/virtual:
~# ps -aef | grep vbox
virtual 1212 1 0 18:06 ? 00:00:00 /usr/lib/virtualbox/vboxwebsrv --pidfile /home/virtual/vboxweb/vboxweb.pid --background
root 3627 3603 0 22:34 pts/0 00:00:00 grep --color=auto vbox
~# netstat -anp |grep vbox
tcp6 0 0 ::1:18083 :::* LISTEN 1212/vboxwebsrv
unix 2 [ ACC ] STREAM LISTENING 18808 1219/VBoxXPCOMIPCD /tmp/.vbox-virtual-ipc/ipcd
unix 3 [ ] STREAM CONNECTED 18809 1219/VBoxXPCOMIPCD /tmp/.vbox-virtual-ipc/ipcd
unix 3 [ ] STREAM CONNECTED 16330 1219/VBoxXPCOMIPCD /tmp/.vbox-virtual-ipc/ipcd
unix 3 [ ] STREAM CONNECTED 16327 1212/vboxwebsrv
~# iptables -S
-P INPUT ACCEPT
-P FORWARD ACCEPT
-P OUTPUT ACCEPT
I'm no expert so that might not even be a Vbox issue but more of a Ubuntu missing configuration. However, I'm struggling to find a comprehensive link (Remotebox how-to is not up-to-date).
If someone could help me there... Thanks in advance.