VirtualBox on a remote server (SOLVED)
lobo at bsd.com.br
Wed Nov 9 14:07:29 UTC 2016
On Wed, 9 Nov 2016 14:45:49 +0100
"Martin \"eto\" Misuth" <eto.freebsd at ethome.sk > wrote:
> On Wed, 9 Nov 2016 10:03:02 -0300
> Mario Lobo <lobo at bsd.com.br> wrote:
> > Hi Martin;
> > Thanks for replying.
> > Solved both errors!
> > The dbus error was solved by running:
> > dbus-uuidgen --ensure
> > To generate a machine-id, which was lacking.
> > The libGL error was solved by issuing:
> > export LIBGL_ALWAYS_INDIRECT=1
> > The reason for this is because on X-forwarded ssh sessions, the
> > Xserver tries to open the display of the client, which in this case
> > is running on an Intel i915 card.
> > It was trying to use direct rendering and it can't for
> > whatever reason.
> > Setting the above env var solves the problem and I now get the
> > QT GUI on my display.
> Glad you solved it!
> However I still advise you, to check out headless vbox operation. I
> did bit of researching after reading your mail, and it seems it is
> now much better integrated into FreeBSD even!
> So I am retracting my statement that it sucks. It seems it got much
> much better. rc.d wrapper seems to be provided now , so you don't
> have to write it yourself, and such.
> Here is most concise blog I found on the matter:
> Basically the operation consists from vboxwebsrv daemon and vms set
> to use VNC console for output.
> The vm "herding" is done by vboxwebsrv control process (usually
> running as vbox user) - it exposes control interfaces over HTTP/SOAP
> - usually bound to localhost. As it acts as standalone daemon, it is
> greatly unaffected by state of ssh connections and X forwardings and
> This daemon can then spawn and tear down virtual machines, through
> SOAP "RPC", "without" need to ssh even.
> You can still manage VMs manualy by VBoxManage, from ssh session,
> under condition, you run it under same user as vboxwebsrv (usually as
> vbox user) - for example through sudo. With proper sudo rules, you
> can script vms this way.
> Many people, including me back then, use phpvirtualbox interface
> paired with nginx to provide friendlier GUI which is almost identical
> to QT interface. This php interface converts your clicks into SOAP
> calls into vboxwebsrv.
> Overall this approach seems much more robust.
> freebsd-questions at freebsd.org mailing list
> To unsubscribe, send any mail to
> "freebsd-questions-unsubscribe at freebsd.org"
I'm glad you changed your mind about VBox. I have been using it for
I do have 4 headless VMs on this server and created my own rc.d scripts
to bring them up and down.
The GUI only makes it easier to crate new ones and make changes to the
FreeBSD since 2.2.8 [not Pro-Audio.... YET!!]
"UNIX was not designed to stop you from doing stupid things,
because that would also stop you from doing clever things."
More information about the freebsd-questions