From owner-freebsd-net@FreeBSD.ORG Fri Jun 10 18:11:52 2005 Return-Path: X-Original-To: freebsd-net@freebsd.org Delivered-To: freebsd-net@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id D3C2B16A41C for ; Fri, 10 Jun 2005 18:11:52 +0000 (GMT) (envelope-from julian@elischer.org) Received: from bigwoop.vicor-nb.com (bigwoop.vicor-nb.com [208.206.78.2]) by mx1.FreeBSD.org (Postfix) with ESMTP id A5DA043D1D for ; Fri, 10 Jun 2005 18:11:51 +0000 (GMT) (envelope-from julian@elischer.org) Received: from [208.206.78.97] (julian.vicor-nb.com [208.206.78.97]) by bigwoop.vicor-nb.com (Postfix) with ESMTP id 133667A424; Fri, 10 Jun 2005 11:11:51 -0700 (PDT) Message-ID: <42A9D7E7.1020504@elischer.org> Date: Fri, 10 Jun 2005 11:11:51 -0700 From: Julian Elischer User-Agent: Mozilla/5.0 (X11; U; FreeBSD i386; en-US; rv:1.7.7) Gecko/20050423 X-Accept-Language: en, hu MIME-Version: 1.0 To: Ragnar Lonn References: <200505192159.j4JLxNhb060631@atalus.net> <428DF2FF.3010408@oxygen.az> <42A961CA.5030706@packetfront.com> In-Reply-To: <42A961CA.5030706@packetfront.com> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Cc: freebsd-net@freebsd.org Subject: Re: IPC between vimage instances? X-BeenThere: freebsd-net@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Networking and TCP/IP with FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 10 Jun 2005 18:11:52 -0000 Ragnar Lonn wrote: > Hello, > > I've been using vimage on FreeBSD 4.11 along with Netgraph to setup a > system > that simulates many physical client machines for the purpose of > testing broadband > Internet access hardware. I have hundreds of vimages, each with its > own ngeth0 > network interface connected via Netgraph to a real physical interface. > It is working > very well indeed but now I'm trying to setup logging from the various > vimage > instances and have run into problems. Each vimage runs applications that > I want to log the output from in an orderly manner. I'd like to use > syslog but as > it turns out, the processes inside a vimage cannot communicate with > the syslogd > in the "default" vimage. I tried logging to the Unix domain socket > /var/run/log but > that didn't work from within a vimage (other than "default" of course). did you ask syslog to open sockets in all the chroots? I assume yes.. I hadn't realised that the vimage code separates unix domain sockets etc. but I guess that makes sense. As you mention, the usual answer is to get the syslog on each system to forward everything to one logging system. you could add a second interface to each vimage just for logging to keep it separate from the testing.. > > What ways are there to do IPC between applications in different vimages? > > I know I can connect them using Netgraph and virtual network > interfaces but > setting up more network interfaces means a lot of housekeeping as > those interfaces > can't be removed when I remove vimages from the system. I dont want to > send > actual traffic out onto the network either, as that might interfere > with the test > traffic to/from the machine. > > Any ideas? > > Regards, > > /Ragnar > _______________________________________________ > freebsd-net@freebsd.org mailing list > http://lists.freebsd.org/mailman/listinfo/freebsd-net > To unsubscribe, send any mail to "freebsd-net-unsubscribe@freebsd.org"