Eu instalei o VirtualBox em um sistema strech da Debian e o pacote de extensão sem problemas. Eu também instalei o remotebox (RemoteBox-2.4) em um cliente separado para acessar as máquinas virtuais.
passos que fiz para instalar e configurar o virtualbox
#add repository to debian /etc/apt/sources.list
deb https://download.virtualbox.org/virtualbox/debian stretch contrib
to
/etc/apt/sources.list
download and add keys
wget -q https://www.virtualbox.org/download/oracle_vbox_2016.asc -O- | sudo apt-key add -
wget -q https://www.virtualbox.org/download/oracle_vbox.asc -O- | sudo apt-key add -
sudo apt-get update
sudo apt-get install virtualbox-5.2
#Download Virtualbox Extension Pack
wget https://download.virtualbox.org/virtualbox/5.2.8/Oracle_VM_VirtualBox_Extension_Pack-5.2.8.vbox-extpack
#Install Virtualbox Extension Pack
/usr/bin/vboxmanage extpack install Oracle_VM_VirtualBox_Extension_Pack-5.2.8.vbox-extpack
adduser virtual
usermod -aG sudo virtual
# optional add user sudo-list
visudo
usermod -aG vboxusers virtual
groups virtual
nano /etc/default/virtualbox
# add the following content
VBOXWEB_USER="virtual"
VBOXWEB_TIMEOUT=0
VBOXWEB_LOGFILE="/var/log/vboxwebservice.log"
VBOXWEB_HOST="172.12.1.11"
touch /var/log/vboxwebservice.log
chown virtual:vboxusers /var/log/vboxwebservice.log
#check, if the vboxweb-service is allready running
systemctl status vboxweb-service
# if the vboxweb-service is allready running, stop it
systemctl stop vboxweb-service
# remove the autostart entry if exists
systemctl disable vboxweb-service
# change /etc/default/virtualbox if needed
# enable vboxweb-service on startup
systemctl enable vboxweb-service
# start vboxweb-service.service
systemctl start vboxweb-service
# check the status of the vboxweb-service
systemctl status vboxweb-service
vboxweb-service.service
Loaded: loaded (/usr/lib/virtualbox/vboxweb-service.sh; enabled; vendor prese
Active: active (running) since Tue 2018-03-27 11:49:02 CEST; 15min ago
Process: 4891 ExecStart=/usr/lib/virtualbox/vboxweb-service.sh start (code=exi
Tasks: 18 (limit: 9830)
CGroup: /system.slice/vboxweb-service.service
├─4903 /usr/lib/virtualbox/vboxwebsrv --background -H 172.12.1.11 -t
├─4905 /usr/lib/virtualbox/VBoxXPCOMIPCD
└─4910 /usr/lib/virtualbox/VBoxSVC --auto-shutdown
# check which process is used from vboxweb-service
ps -aef | grep vboxwebsrv
# check, if the port 18083 is up
netstat -an |grep 18083
# connect with the remotebox-client
--> Works.
Reinicie após conexão bem-sucedida. Então, após a reinicialização, não consigo me conectar à porta 18083
systemctl status vboxweb-service
● vboxweb-service.service
Loaded: loaded (/usr/lib/virtualbox/vboxweb-service.sh; enabled; vendor prese
Active: active (running) since Tue 2018-03-27 13:38:34 CEST; 3min 4s ago
Process: 1041 ExecStart=/usr/lib/virtualbox/vboxweb-service.sh start (code=exi
Tasks: 16 (limit: 9830)
CGroup: /system.slice/vboxweb-service.service
├─1059 /usr/lib/virtualbox/vboxwebsrv --background -H 172.12.1.11 -t
├─1061 /usr/lib/virtualbox/VBoxXPCOMIPCD
└─1068 /usr/lib/virtualbox/VBoxSVC --auto-shutdown
ps -aef | grep vboxwebsrv
virtual 1059 1 0 13:38 ? 00:00:00 /usr/lib/virtualbox/vboxwebsrv --background -H 172.12.1.11 -t 0 -F /var/log/vboxwebservice.log
root 2208 1903 0 13:42 pts/0 00:00:00 grep vboxwebsrv
netstat -an |grep 18083
--> no results.
como eu resolvo o problema manualmente:
(as root)
systemctl stop vboxweb-service
systemctl start vboxweb-service
--> 18083 port available
Eu posso conectar e está tudo bem.
Error-Message in /var/log/vboxwebservice.log
VirtualBox web service 5.2.8 r121009 linux.amd64 (Feb 26 2018 18:07:51) release log
00:00:00.004608 main Log opened 2018-03-27T11:49:09.790416000Z
00:00:00.004609 main Build Type: release
00:00:00.004611 main OS Product: Linux
00:00:00.004612 main OS Release: 4.9.0-6-amd64
00:00:00.004614 main OS Version: #1 SMP Debian 4.9.82-1+deb9u3 (2018-03-02)
00:00:00.004633 main DMI Product Name: ProLiant DL380p Gen8
00:00:00.004642 main DMI Product Version:
00:00:00.004688 main Host RAM: 193416MB (188.8GB) total, 192768MB (188.2GB) available
00:00:00.004692 main Executable: /usr/lib/virtualbox/vboxwebsrv
00:00:00.004693 main Process ID: 1060
00:00:00.004694 main Package type: LINUX_64BITS_DEBIAN_9_0
00:00:00.025800 main IPC socket path: /tmp/.vbox-virtual-ipc/ipcd
00:00:00.223223 SQPmp #### SOAP FAULT: Cannot assign requested address [is internal]
Environment:
vboxmanage -v
5.2.8r121009
Linux labsystem 4.9.0-6-amd64 #1 SMP Debian 4.9.82-1+deb9u3 (2018-03-02) x86_64 GNU/Linux
lsb_release -a
No LSB modules are available.
Distributor ID: Debian
Description: Debian GNU/Linux 9.4 (stretch)
Release: 9.4
Codename: stretch
Eu usei estas instruções para configurar o serviço vboxweb: link
Eu não tenho ideia, o que está errado. Qualquer ajuda seria apreciada.
obrigado
Tags virtualbox debian-stretch