From owner-freebsd-virtualization@FreeBSD.ORG Sun Jan 9 17:08:03 2011 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 632271065673 for ; Sun, 9 Jan 2011 17:08:03 +0000 (UTC) (envelope-from jamesbrandongooch@gmail.com) Received: from mail-wy0-f182.google.com (mail-wy0-f182.google.com [74.125.82.182]) by mx1.freebsd.org (Postfix) with ESMTP id 8192B8FC0C for ; Sun, 9 Jan 2011 17:08:02 +0000 (UTC) Received: by wyf19 with SMTP id 19so19086242wyf.13 for ; Sun, 09 Jan 2011 09:08:00 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:received:received:in-reply-to :references:date:message-id:subject:from:to:cc:content-type :content-transfer-encoding; bh=BFgXokITYaOxUsMi0ZDRmXvexagZC2h9joEI8DDRk4w=; b=TiaOCvAnJpxCAcBg7Rdlg64EZjDMS05fqzVIYYe/kGc3RYgRRF++ooa1gWP22XCNvG 0SF6RRMHuWUy69l1fXlPsZ+2a9pZmBWElVvdO4Hymqp4iB/eWhQu+7aO+qDg1ljtU9d+ SNK4kyQ/23ZUismYTy0wX0YV6+EuPdxV3y1jg= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :cc:content-type:content-transfer-encoding; b=tGHS0tSzKOArBHvFxXvKNWUGtXqBUz3l8Yx+q3mK3fRZGIHgLigWGrQZtWFSCVRneA Fv+/GVK5SGCxV18fyj6gHDOxNUgqOE/2YulX9lerOLdMybHQDcrLc8SdcZcXc5uOLExU Jay2EXusj7fCfnOdS6EHQolLrpdLkXqN5G6uQ= MIME-Version: 1.0 Received: by 10.216.28.8 with SMTP id f8mr14390195wea.48.1294589125974; Sun, 09 Jan 2011 08:05:25 -0800 (PST) Received: by 10.216.36.71 with HTTP; Sun, 9 Jan 2011 08:05:25 -0800 (PST) In-Reply-To: References: Date: Sun, 9 Jan 2011 10:05:25 -0600 Message-ID: From: Brandon Gooch To: Subbsd Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Cc: freebsd-virtualization@freebsd.org Subject: Re: way for determine VIMAGE feature 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: Sun, 09 Jan 2011 17:08:03 -0000 On Sun, Jan 9, 2011 at 9:17 AM, Subbsd wrote: > Hi > > is there any mechanism to find out from userland =A0is supports the > current kernel VIMAGE or not? something like 'sysctl > kern.features.vnet=3D1' ? > Thanks I've not been able to determine this either, but as it requires kernel re-configuration, I usually just know. In my scripts, I make sure and fail if the call to create a vnet jail fails: sh -c 'TEST=3D$(sudo jail -c vnet name=3Dtest host.hostname=3Dtest path=3D/= ) ; if [ $? =3D "1" ]; then echo "VIMAGE NOT AVAILABLE" ; exit 1 ; fi' ...or something like that. There may be a better way, or perhaps there should be. -Brandon