From mboxrd@z Thu Jan 1 00:00:00 1970 From: ludo@gnu.org (Ludovic =?utf-8?Q?Court=C3=A8s?=) Subject: Re: Guix "ops" Date: Wed, 27 May 2015 21:41:21 +0200 Message-ID: <87mw0perku.fsf@gnu.org> 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> 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]:52702) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1YxhCg-0006tV-UN for guix-devel@gnu.org; Wed, 27 May 2015 15:41:28 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1YxhCf-0003C7-KF for guix-devel@gnu.org; Wed, 27 May 2015 15:41:26 -0400 Received: from fencepost.gnu.org ([208.118.235.10]:59425) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1YxhCf-0003C3-HE for guix-devel@gnu.org; Wed, 27 May 2015 15:41:25 -0400 In-Reply-To: <87zj4wd1hz.fsf@fsf.org> (David Thompson's message of "Fri, 22 May 2015 12:24:08 -0400") 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: David Thompson Cc: guix-devel@gnu.org, Carlos Sosa 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 apparently = 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.) > 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/hos= ts in each container. That=E2=80=99s something we could do. Another possibility would be to rely on mDNS. > 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? Thanks, Ludo=E2=80=99.