Vboxweb-service not staying running

Discussions related to using VirtualBox on Linux hosts.
Post Reply
hroberts65616
Posts: 5
Joined: 1. Jul 2020, 05:14

Vboxweb-service not staying running

Post by hroberts65616 »

I am running Ubuntu 20.04.1 and Virtual box 6.1.14. I downloaded the deb file form virtualbox website, and installed it and the extension pack.

I configured the file /etc/default/virtualbox as below:

Code: Select all

VBOXWEB_USER=virtual
VBOXWEB_PASSWD=vbox6.1
VBOXWEB_TIMEOUT=0
VBOXWEB_LOGFILE=/var/log/vboxwebservice.log
VBOXWEB_HOST=192.168.2.187
I touched the log file, and assigned it to virtual:vboxusers and it never shows any data

I ran systemctl enable vboxweb-service
and i stopped and restarted the service.

Everytime I run a status it shows active exited.
rboximage3.png
rboximage3.png (22.27 KiB) Viewed 5001 times
Can someone please help me figure out what is going on. the system is not listening on port 18083 and I am really trying to get this to run. I have 3 servers all running the same everything, and none of them will start. I would like to get this up and running because I have tried to build VM's using the command line and they just don't work properly.

Thanks in advance for any assistance you can provide me.
hroberts65616
Posts: 5
Joined: 1. Jul 2020, 05:14

Re: Vboxweb-service not staying running

Post by hroberts65616 »

Does no one have any suggestions? I can provide additional logs if they are wanted. Just let me know.

Thanks
hroberts65616
Posts: 5
Joined: 1. Jul 2020, 05:14

Re: Vboxweb-service not staying running

Post by hroberts65616 »

Tonight I uninstalled virtual box. I reinstalled virtual box again. again using 6.1.14, because I can not get the kernel modules to load in 5.4.0-48 unless I use that version.

Still can not get vboxweb-service to stay active running longer than 2 seconds. and no data is being added to the vboxwebservice.log file in /var/log even with chmod set to 777.

Anyone?
scottgus1
Site Moderator
Posts: 20965
Joined: 30. Dec 2009, 20:14
Primary OS: MS Windows 10
VBox Version: PUEL
Guest OSses: Windows, Linux

Re: Vboxweb-service not staying running

Post by scottgus1 »

We're not ignoring this, it's just that someone who is experienced with the web service would have to come along. (and that ain't me... :lol: )

We're all fellow Virtualbox users, not Oracle emplyees.
Muel
Posts: 3
Joined: 28. Jun 2020, 11:03

Re: Vboxweb-service not staying running

Post by Muel »

Did you get anywhere with debugging this? I'm having the same issue on 6.1.32

I restart vbox web service, if I check the status it's running, then after 30 secs it's exited with nothing in the logs.
ediaz
Posts: 7
Joined: 4. Apr 2011, 19:23
Primary OS: Debian other
VBox Version: PUEL
Guest OSses: Windows

Re: Vboxweb-service not staying running

Post by ediaz »

Hi I can help with this.

Is a BUG on the script that start /usr/lib/virtualbox/vboxweb-service.sh

The start works ok, but some time depending of the load of the server the stop script don't have time to delete the pid file and the system thinks ruuning but really don't.

I ajust the file

/usr/lib/virtualbox/vboxweb-service.sh

Code: Select all

+ PATH=/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/bin:/sbin:/usr/sbin
+ SCRIPTNAME=vboxweb-service.sh
+ [ -f /etc/vbox/vbox.cfg ]
+ [ -n  ]
+ binary=/usr/lib/virtualbox/vboxwebsrv
+ vboxmanage=/usr/lib/virtualbox/VBoxManage
+ [ ! -f /etc/debian_release -o -x /usr/lib/virtualbox/vboxwebsrv ]
+ [ -r /etc/default/virtualbox ]
+ . /etc/default/virtualbox
+ VBOXWEB_USER=vbox
+ PIDFILE=/var/run/vboxweb-service.sh
+ which /usr/lib/virtualbox/vboxweb-service.sh
+ [ /usr/lib/virtualbox/vboxweb-service.sh = /sbin/rc ]
+ which start-stop-daemon
+ stop
+ test -f /var/run/vboxweb-service.sh
+ begin_msg Stopping VirtualBox web service console
+ test -n console
+ echo vboxweb-service.sh: Stopping VirtualBox web service.
vboxweb-service.sh: Stopping VirtualBox web service.
+ logger -t vboxweb-service.sh Stopping VirtualBox web service.
+ killproc /usr/lib/virtualbox/vboxwebsrv
+ start-stop-daemon --stop --exec /usr/lib/virtualbox/vboxwebsrv
+ RETVAL=0
+ sleep 2 (this value is 1)
+ pidof /usr/lib/virtualbox/vboxwebsrv
+ rm -f /var/run/vboxweb-service.sh
+ succ_msg VirtualBox web service stopped
+ logger -t vboxweb-service.sh VirtualBox web service stopped.
+ return 0
+ exit 0
to solve this issue go to the line 176 on the file

/usr/lib/virtualbox/vboxweb-service.sh

and change "sleep 1" to "sleep 2" of other value to acomodate give time to vboxwebservice to stop...

be sure dont have vboxweb service running...

delete the old pid file /var/run/vboxweb-service.sh


start and try :-D
BlueTie Inc
Posts: 1
Joined: 9. Feb 2023, 03:32

Re: Vboxweb-service not staying running

Post by BlueTie Inc »

I had a similar (perhaps the same) issue where after installing Virtualbox, I could not keep the vboxweb-service running. I finally figured out (using strace) that even though I had 777 permissions on /var/log/virtualbox, I needed to add the appropriate permissions on /var/log for the vbox user to write to the log. Once I did that, everything worked perfectly. Hope this helps others in this situation.

Sincerely,
Rob
Post Reply