Date: Fri, 10 Jun 2005 11:11:51 -0700 From: Julian Elischer <julian@elischer.org> To: Ragnar Lonn <raglon@packetfront.com> Cc: freebsd-net@freebsd.org Subject: Re: IPC between vimage instances? Message-ID: <42A9D7E7.1020504@elischer.org> In-Reply-To: <42A961CA.5030706@packetfront.com> References: <200505192159.j4JLxNhb060631@atalus.net> <428DF2FF.3010408@oxygen.az> <42A961CA.5030706@packetfront.com>
next in thread | previous in thread | raw e-mail | index | archive | help
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"
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?42A9D7E7.1020504>