From owner-freebsd-current@FreeBSD.ORG Sat Mar 1 09:51:19 2008 Return-Path: Delivered-To: current@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id A523B106566C for ; Sat, 1 Mar 2008 09:51:19 +0000 (UTC) (envelope-from outbackdingo@gmail.com) Received: from qb-out-0506.google.com (qb-out-0506.google.com [72.14.204.231]) by mx1.freebsd.org (Postfix) with ESMTP id 51F2B8FC19 for ; Sat, 1 Mar 2008 09:51:19 +0000 (UTC) (envelope-from outbackdingo@gmail.com) Received: by qb-out-0506.google.com with SMTP id a10so6216413qbd.7 for ; Sat, 01 Mar 2008 01:51:18 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:message-id:date:from:to:subject:cc:in-reply-to:mime-version:content-type:references; bh=jbQws6DIVNORTyCdHYce21uoHAvDppwWCFthszjIarg=; b=EdqBmVrDmZFjlQnlDeU76qaMGwbjTQy4KaDsZKVumo37Fd5/yJM1WbArZ2ju2Htu85tQFMLEi6MCB4HqEPTPyoQpPE2I1PKBTjiUkOhDvLXXO8jpzPcc315FU6vAHtqEj76HBJ1X/oh0kAJpKdxDH+eGFbz072/6+94MEZ7Bt9Y= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=message-id:date:from:to:subject:cc:in-reply-to:mime-version:content-type:references; b=BNBZDnV0+m+dwAE/DmqHBI2WXYA4ANDhyZc/ktww9G7vn825nGHvAo/qdZqBDPeKEveqtkd7GE2JIKundHFyxPxQoWFlhBcuyX/wB+84zGi8F4QvrmYE/mwbnpK4PqMl03s9FxMsJn541xBnXoTsqSdkiV82yrbbLhzNBb4deGA= Received: by 10.110.31.5 with SMTP id e5mr7218285tie.35.1204365077396; Sat, 01 Mar 2008 01:51:17 -0800 (PST) Received: by 10.110.5.3 with HTTP; Sat, 1 Mar 2008 01:51:17 -0800 (PST) Message-ID: <5635aa0d0803010151sa6f3a6fy70f3793df5425b1b@mail.gmail.com> Date: Sat, 1 Mar 2008 04:51:17 -0500 From: "Outback Dingo" To: "Julian Elischer" In-Reply-To: <47C8B448.7050005@elischer.org> MIME-Version: 1.0 References: <47C44420.6050009@elischer.org> <20080229152542.GD94339@obiwan.tataz.chchile.org> <47C8B448.7050005@elischer.org> Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Content-Disposition: inline X-Content-Filtered-By: Mailman/MimeDel 2.1.5 Cc: Jeremie Le Hen , FreeBSD Current Subject: Re: why vimage? X-BeenThere: freebsd-current@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Discussions about the use of FreeBSD-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 01 Mar 2008 09:51:19 -0000 I think there needs to be some decent howto or documentation established though, i compiled and installed a kernel and the binary read the man page... searched google... but cant for the life of me conceptualize how to get network interfaces up inside the vimage i see the standard rl0 interface in the main i can dhcp and address but dont see how one clones or creates an interface inside the other vimages i found a doc that read Virtual images in a simple bridged environment, written in 2002 and the command ifconfig create ve0.... doesnt work so i think, i for one and many others might appreciate vimages power a bit more if there was a fast howto quick and dirty on how to accomplish a working configuration and discover the power of this code.... I could see a use for it.. thats if i can foigure out how to get networking and chrooted images..... just my thoughts so far.... On Fri, Feb 29, 2008 at 8:41 PM, Julian Elischer wrote: > Jeremie Le Hen wrote: > > Hi Julian, > > > > On Tue, Feb 26, 2008 at 08:53:52AM -0800, Julian Elischer wrote: > >> I can give a very simple example of something you can do trivially on > >> vimage: > >> > >> Make three virtual machines on yhour laptop: > >> The base machine and two others. > >> Have the first 'other' machine be assigned an IP address on > >> your HOME LAN. > >> have the second virtual machine have an IP adddress on > >> your WORK LAN. > >> use the base machine to run encrypted tunnels from where-ever > >> you happen to be to your work and home.. when you put the laptop to > sleep > >> (assuming the tcp sessions are quiescent (no keepalives)) > >> then when you wake it up say an hour later.. as soon as the base > machine has > >> an IP address.. viola, your session on the virtual > >> machines are still alive. > > > > On this post [1], Marko states: > > > > % Each NICs is logically attached to one and only one network stack > > % instance at a time, and it receives data from upper layers and feeds > > % the upper layers with mbufs in exactly the same manner as it does on > > % the standard kernel. It is the link layer that demultiplexes the > > % incoming traffic to the appropriate stack instance... > > > > As I understand it, there is only one vimage per interface. I'm surely > > wrong or the setup you described wouldn't be possible. > > > > physical interfaces can be forked out to several virtual interfaces > which can be in different virtual machines.. > Or the virtual interfaces could be connected to tunnels. > > > Any explanation will be welcome :). > > Thanks, > > > > [1] > http://lists.freebsd.org/pipermail/freebsd-current/2008-February/083908.html > > > > Regards, > > _______________________________________________ > freebsd-current@freebsd.org mailing list > http://lists.freebsd.org/mailman/listinfo/freebsd-current > To unsubscribe, send any mail to "freebsd-current-unsubscribe@freebsd.org" >