Then, I started the VirtualBox web server on my physical Linux host with this command:
vboxwebsrv --host 192.168.1.11
When I logged in as admin/admin at http://phpvirtualbox/phpvb, I was greeted with this error: "This version of phpVirtualBox (5.2-1) is incompatible with VirtualBox 7.1.6".
I searched and searched forums until I found that someone had forked phpvirtualbox and got it working with VirtualBox 7.1. That GitHub repo is here. So, I tried that version of phpVirtualBox:
cd /var/www/html
sudo wget https://github.com/studnitskiy/phpvirtualbox/archive/main.zip
sudo mv phpvirtualbox-master phpvbgit
cp phpvb/config.php phpvbgit
Now, when I opened http://phpvirtualbox/phpvbgit, I can connect to and access VirtualBox in a web browser. I could not get console access to my VMs, no matter what I tried. This meant that I could not install new VMs. Oh, well.
So, RemoteBox is a lovely Perl program that is easy to install (on any OS that supports GTK+) and has an app version and a web version. RemoteBox also gave me a hard time with console access due to a cert issue I could not resolve. Here is how I installed RemoteBox in a Debian VM using these instructions:
sudo apt install libgtk3-perl libsoap-lite-perl freerdp2-x11 tigervnc-viewer
sudo apt install libregexp-common-perl
cd ~/Downloads
wget https://remotebox.knobgoblin.org.uk/downloads/RemoteBox-3.5.tar.bz2
bunzip2 RemoteBox-3.5.tar.bz2
tar xvf RemoteBox-3.5.tar
cd RemoteBox-3.1/
./remotebox
Nice. That wasn't so hard. Now let's try a console...
I spent some time searching and trying a few things, but could not get past this error. Oh, well.
A good hack that worked. I used ssh X11 redirection to run the VirtualBox program on the host, but have the display sent to my client. This worked better on Linux than on macOS XQuartz
ssh -Y [email protected]
export XAUTHORITY=$HOME/.Xauthority
/usr/lib/virtualbox/VirtualBox
Worked like a charm; even console access. Yay.
Thanks for reading this post. I hope this saves someone some time and aggravation. I welcome your comments.