From owner-freebsd-virtualization@FreeBSD.ORG Thu Dec 10 09:02:51 2009 Return-Path: Delivered-To: freebsd-virtualization@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 9B1A1106566C for ; Thu, 10 Dec 2009 09:02:50 +0000 (UTC) (envelope-from reinhard.haller@interactive-net.de) Received: from moutng.kundenserver.de (moutng.kundenserver.de [212.227.126.186]) by mx1.freebsd.org (Postfix) with ESMTP id E30E48FC32 for ; Thu, 10 Dec 2009 09:02:49 +0000 (UTC) Received: from interactive.dnsalias.net (ppp-88-217-3-93.dynamic.mnet-online.de [88.217.3.93]) by mrelayeu.kundenserver.de (node=mreu2) with ESMTP (Nemesis) id 0LpRtB-1NxTqY3jzp-00f8dz; Thu, 10 Dec 2009 10:02:44 +0100 Received: from scalix.interactive.de ([fd08:e8a3:4825:0:20c:29ff:feaa:3622]) by interactive.dnsalias.net with esmtp (Exim 4.70 (FreeBSD)) (envelope-from ) id 1NIev5-000MJG-3J; Thu, 10 Dec 2009 10:02:43 +0100 Received: from scalix.interactive.de (localhost.localdomain [127.0.0.1]) by scalix.interactive.de (8.13.8/8.13.8) with ESMTP id nBA92fUC010517; Thu, 10 Dec 2009 10:02:41 +0100 Received: from [127.0.0.1] (Core2Duo.interactive.de [192.168.0.196]) by scalix.interactive.de (Scalix SMTP Relay 11.4.5.13150) via ESMTP; Thu, 10 Dec 2009 10:02:41 +0100 (CET) Date: Thu, 10 Dec 2009 10:02:38 +0100 From: Reinhard Haller To: "Bjoern A. Zeeb" Message-ID: <4B20B92E.2070105@interactive-net.de> In-Reply-To: <20091209230225.L83957@maildrop.int.zabbadoz.net> References: <4B1FE20D.9000009@interactive-net.de> References: <20091209230225.L83957@maildrop.int.zabbadoz.net> x-scalix-Hops: 1 User-Agent: Thunderbird 2.0.0.23 (Windows/20090812) MIME-Version: 1.0 Content-Type: text/plain; charset="US-ASCII" Content-Disposition: inline X-ACL-rcpt: bzeeb-lists@lists.zabbadoz.net X-ACL-rcpt: freebsd-virtualization@freebsd.org X-ACL-Send: reinhard.haller@interactive-net.de X-Provags-ID: V01U2FsdGVkX18r0ZdKJHob9Mz8DydjIabQZY78IEl0ACzzg8y nzmMp/pzVRIcUsU5Mx6qWAa8W07KLBT6DSqbpmq/fm68bAxBAm Nai7yq2hnqOLXR2MLjUwmyboWzb7NqK471Kq7IxjAZZUULn9Oh qqg== Cc: FreeBSD virtualization mailing list Subject: Re: create a vnet jail in rc.conf X-BeenThere: freebsd-virtualization@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "Discussion of various virtualization techniques FreeBSD supports." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 10 Dec 2009 09:02:51 -0000 Bjoern A. Zeeb schrieb: > On Wed, 9 Dec 2009, Reinhard Haller wrote: > > Hi, > >> I'm searching for a way to create vnet jails in rc.conf. I tried it with >> jail_flags (-c vnet) with no success. >> >> The documentation is not very helpful, I'm missing the way to create the >> vnet jail and I suspect the specification of an ipv6 address to the >> epair in the jail is not working. >> >> Any suggestions? > > vnets are not yet supported by the legacy jail management framework > and will not. > The plan is to have something different for when vimages are no longer > "experimental" (tech preview, ... call it what you like to and what > sounds good;). Ideally for 8.2 but that's just a wild handwaving. > Wasting another year? > I have some uncommented old notes lying around here: > http://people.freebsd.org/~bz/jail-persist.txt > > The current ones are actually a lot more complex and no longer good > examples. Rather than using "persist" you can still give a command to > start a jail starting all the rc framework etc. in it. > > /bz > I tried it with the following, but suffered intermittent routing problems (route6d died and cannot be restarted): jail -c vnet name=d1 host.hostname=dns1.intern.de path=/jails/dns1 persist jail -c vnet name=d2 host.hostname=dns2.intern.de path=/jails/dns2 persist ifconfig bridge0 create ifconfig epair create ifconfig epair create ifconfig bridge0 addm epair0a addm epair1a up ifconfig epair0a inet6 fd08:e8a3:4825:10::1 ifconfig epair0b vnet 1 ifconfig epair1b vnet 2 jexec 1 csh ifconfig epair0b inet6 fd08:e8a3:4825:10::10 route -n add -inet6 default fd08:e8a3:4825:10::1 exit jexec 2 csh ifconfig epair1b inet6 fd08:e8a3:4825:10::11 route -n add -inet6 default fd08:e8a3:4825:10::1 exit Is this the way to get a stable vnet system? Thanks Reinhard