From owner-freebsd-net@FreeBSD.ORG Mon Jun 13 14:02:34 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 332BA16A41C for ; Mon, 13 Jun 2005 14:02:34 +0000 (GMT) (envelope-from milan.obuch@netlabplus.sk) Received: from bsd.dino.sk (bsd.dino.sk [213.215.72.60]) by mx1.FreeBSD.org (Postfix) with ESMTP id 9765543D1D for ; Mon, 13 Jun 2005 14:02:32 +0000 (GMT) (envelope-from milan.obuch@netlabplus.sk) Received: from [172.16.39.241] ([213.215.72.45]) by bsd.dino.sk with esmtp; Mon, 13 Jun 2005 16:03:47 +0200 id 0000012B.42AD9243.000176AE From: Milan Obuch To: freebsd-net@freebsd.org Date: Mon, 13 Jun 2005 16:02:57 +0200 User-Agent: KMail/1.7.2 References: <200505192159.j4JLxNhb060631@atalus.net> <42A9D7E7.1020504@elischer.org> <42AD7212.3090104@packetfront.com> In-Reply-To: <42AD7212.3090104@packetfront.com> MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit Content-Disposition: inline Message-Id: <200506131602.57229.milan.obuch@netlabplus.sk> 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: Mon, 13 Jun 2005 14:02:34 -0000 On Monday 13 June 2005 13:46, Ragnar Lonn wrote: > Julian Elischer wrote: > > 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. > > Actually, I don't chroot the vimages as of now. They see the same > filesystem all of them but writing to the syslogd unix domain socket didn't > work anyhow. > I'm both happy and frustrated at seeing how well separated vimages are > sometimes :-) > Are you talking about Marko Zec's network virtualisation patch? If yes, then you need one simple patch to allow AF_UNIX (named pipes) to work between images. I do not have it at hand now, but if you need it, I could search my archives... Regards, Milan