From owner-freebsd-questions@freebsd.org Wed Nov 9 14:07:29 2016 Return-Path: Delivered-To: freebsd-questions@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 4F451C38750 for ; Wed, 9 Nov 2016 14:07:29 +0000 (UTC) (envelope-from lobo@bsd.com.br) Received: from mail-qk0-x242.google.com (mail-qk0-x242.google.com [IPv6:2607:f8b0:400d:c09::242]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (Client CN "smtp.gmail.com", Issuer "Google Internet Authority G2" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 08E7A187 for ; Wed, 9 Nov 2016 14:07:29 +0000 (UTC) (envelope-from lobo@bsd.com.br) Received: by mail-qk0-x242.google.com with SMTP id 124so11266654qkh.1 for ; Wed, 09 Nov 2016 06:07:28 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=bsd.com.br; s=capeta; h=date:from:to:subject:message-id:in-reply-to:references:organization :mime-version:content-transfer-encoding; bh=afDCUpimW8J0g118GpcEurYWgocwAh0r/b153504+C8=; b=KHbN38btfIiU9hjLcoR9ReQkVg1OjpDGRnI8IZlMQWV+xkaIC4xahSIO5fhLBTb4iv afNwCm6h5T3Xn+S/9mM6KFr95ZkPNn3vahCG23xfCGaxDHIQL0VlrjD9ei8OLbcu+pY6 ddaIkP7MzVnv3HGJCK1yIIAmoRGceveWTdFLw= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:date:from:to:subject:message-id:in-reply-to :references:organization:mime-version:content-transfer-encoding; bh=afDCUpimW8J0g118GpcEurYWgocwAh0r/b153504+C8=; b=GXgytirXP1yEFp/NrQxhuNWIMV3ogQsQe/egTGlhdMldz0tRZ5Uq+1c7k34ywUXfrI OWvZrwVK7s5cCeIEFuVAJ6vs5jJd1qiaMW9oBcfqz90iuFSmVEd53i6vjHroeFn+WaPu RNW5nikt5VyudjESjlv2aDuP6cvnnohdmmtA/ze0uQL0iSVEzNu69wCIdhrZ+SwtQtEa NoNnLJOFoaGOa5BSfSoNnz6fctCg0tzp5wLD8/tXfXoSY/h1/BC3YtVO0Pl+ovOEGesO /Nltt9mvC53CD0/mXsYN9xVZcGCRwaTQ5YYmZFeRfxGBVQUZ7K4J3boBq373LCj6pM8E Ybeg== X-Gm-Message-State: ABUngvcBRFFuILqlRzThg/gPsMJIgIMnCFtlE8stYYiR4TEZyfhlGrc7XefvbW+WEYz8mQ== X-Received: by 10.55.24.214 with SMTP id 83mr17673779qky.237.1478700447989; Wed, 09 Nov 2016 06:07:27 -0800 (PST) Received: from Papi ([177.135.28.43]) by smtp.gmail.com with ESMTPSA id s41sm22403162qtc.39.2016.11.09.06.07.27 for (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Wed, 09 Nov 2016 06:07:27 -0800 (PST) Date: Wed, 9 Nov 2016 11:08:00 -0300 From: Mario Lobo To: freebsd-questions@freebsd.org Subject: Re: VirtualBox on a remote server (SOLVED) Message-ID: <20161109110800.00490740@Papi> In-Reply-To: <20161109144549.5f43f30c@eto-mona.office.smartweb.sk> References: <20161109111948.2ab0fd73@eto-mona.office.smartweb.sk> <20161109100302.66efe0dc@Papi> <20161109144549.5f43f30c@eto-mona.office.smartweb.sk> Organization: BSD X-Mailer: Claws Mail 3.13.2 (GTK+ 2.24.29; amd64-portbld-freebsd10.3) MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 09 Nov 2016 14:07:29 -0000 On Wed, 9 Nov 2016 14:45:49 +0100 "Martin \"eto\" Misuth" wrote: > On Wed, 9 Nov 2016 10:03:02 -0300 > Mario Lobo 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: > http://yuriystanchev.blogspot.com/2015/03/phpvirtualbox-on-freebsd.html > > 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 > such. > > 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. > > eto > _______________________________________________ > freebsd-questions@freebsd.org mailing list > https://lists.freebsd.org/mailman/listinfo/freebsd-questions > To unsubscribe, send any mail to > "freebsd-questions-unsubscribe@freebsd.org" I'm glad you changed your mind about VBox. I have been using it for years now. 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 existing ones. Regards, -- Mario Lobo http://www.mallavoodoo.com.br 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."