From mboxrd@z Thu Jan 1 00:00:00 1970 From: "Thompson, David" Subject: Re: Guix "ops" Date: Thu, 28 May 2015 12:13:44 -0400 Message-ID: References: <87k2wx6t1e.fsf@fsf.org> <87vbgdy6x8.fsf@gnu.org> <87fv7h5zhk.fsf@fsf.org> <87mw1obbfq.fsf@gnu.org> <87bnhzrjf1.fsf@gnusosa.net> <87382oejz8.fsf@fsf.org> <87a8wwiokj.fsf@gnu.org> <87zj4wd1hz.fsf@fsf.org> <87mw0perku.fsf@gnu.org> Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:59924) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Yy0RN-00052G-W5 for guix-devel@gnu.org; Thu, 28 May 2015 12:13:57 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Yy0RF-0003zy-MU for guix-devel@gnu.org; Thu, 28 May 2015 12:13:53 -0400 Received: from na3sys009aog125.obsmtp.com ([74.125.149.153]:34816 helo=mail-pd0-f172.google.com) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Yy0RF-0003zf-FQ for guix-devel@gnu.org; Thu, 28 May 2015 12:13:45 -0400 Received: by pdbki1 with SMTP id ki1so45091993pdb.1 for ; Thu, 28 May 2015 09:13:44 -0700 (PDT) In-Reply-To: <87mw0perku.fsf@gnu.org> List-Id: "Development of GNU Guix and the GNU System distribution." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: guix-devel-bounces+gcggd-guix-devel=m.gmane.org@gnu.org Sender: guix-devel-bounces+gcggd-guix-devel=m.gmane.org@gnu.org To: =?UTF-8?Q?Ludovic_Court=C3=A8s?= Cc: guix-devel , Carlos Sosa On Wed, May 27, 2015 at 3:41 PM, Ludovic Court=C3=A8s wrote: > David Thompson skribis: > >> Ludovic Court=C3=A8s writes: >> >>> Perhaps one addition eventually would be to allow IPs to be >>> automatically allocated and have host name lookup DTRT in each VM. >> >> Do you have any idea how we could do that for local VMs? There's no >> daemon managing the provision of these resources, so I don't know what >> strategy can be used to automatically allocate static IPs. > > QEMU allows you to specify the guest=E2=80=99s IP, I think, and apparentl= y it > can create VLANs and connect several unprivileged QEMU instances > together via -net socket (info "(qemu-doc) sec_invocation"). > > Things like libvirt probably provide a higher-level interface to that. > (I don=E2=80=99t know if it justifies the extra dependency.) If libvirt's API was really useful, perhaps it could be an optional dependency for users that want to deploy QEMU VMs? >> The automagic hostname lookup part is particularly interesting to me. A >> more complete deployment configuration would have the web server >> dependent on the db server. I originally intended to handle this by >> delaying the creation of the web server until after the db server was >> made, and invoking a procedure that accepted the db server's state as >> input and output the correct configuration for the web server. > > I=E2=80=99ve seen that Docker can do that. ;-) IIRC it populates /etc/h= osts in > each container. That=E2=80=99s something we could do. Another possibili= ty > would be to rely on mDNS. If Docker can do it, so can we! :) >> Thinking out loud here: Maybe 'guix deploy' can kick off the >> provisioning for all machines first, and afterwards the OS configs can >> be altered to include the correct /etc/hosts file. > > The transform procedure could force the right /etc/hosts in each OS, I > suppose? Yes. Perhaps the extensibility I had in mind could be better achieved by allowing additional, user specified transformations in the machine declaration. Thanks for your input! - Dave