From owner-freebsd-virtualization@FreeBSD.ORG Sat Jun 4 13:36:06 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 5B58F106566C for ; Sat, 4 Jun 2011 13:36:06 +0000 (UTC) (envelope-from glz@hidden-powers.com) Received: from mail.hidden-powers.com (mail.hidden-powers.com [213.242.135.162]) by mx1.freebsd.org (Postfix) with ESMTP id 0B2558FC13 for ; Sat, 4 Jun 2011 13:36:05 +0000 (UTC) Received: from mail.hidden-powers.com (localhost [127.0.0.1]) by dkim.hidden-powers.com (Postfix) with ESMTP id 763656F066; Sat, 4 Jun 2011 15:19:30 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha1; c=relaxed; d=hidden-powers.com; h=date :from:to:cc:subject:message-id:mime-version:content-type: content-transfer-encoding; s=selector1; bh=0e/N+sX2pdhc4ojHrlnJw rYYWZw=; b=TLapKQzomPO8pfMZ0ylk5vvXLNWFKhcYA/LL6WWCW6u3Ag06xjo9u dp5gt9Mr0tIenuqeGzLzX9DehmpFsmf6r/3L3RNJJaElCi7IJfAGTKWpWXzrTaNY 6B5nPTj47r1wi0XgI3Mtk7WiUAdqqBnzK0McfL8tn8DC+F8V94lHao= Received: from [10.255.253.2] (unknown [10.255.253.2]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by mail.hidden-powers.com (Postfix) with ESMTPSA id 690F86F063; Sat, 4 Jun 2011 15:19:30 +0200 (CEST) Date: Sat, 04 Jun 2011 15:19:29 +0200 From: Goran Lowkrantz To: freebsd-virtualization@freebsd.org Message-ID: X-Mailer: Mulberry/4.0.8 (Win32) MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit Content-Disposition: inline Cc: "Bjoern A. Zeeb" Subject: Tests of NFS etc in VIMAGE enabled kernel. 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: Sat, 04 Jun 2011 13:36:06 -0000 While testing VNET jails, I came upon the problem that the nfsv4 client on an VIMAGE enabled kernel crashed the system. Rick and Bjoern worked out a patch and I have worked through this and tested the following on kernels without VIMAGE (straight GENERIC) and with VIMAGE and the curvnet2 patch: 1a: NFSv3 and NFSv4 server - OK on hosts, not tested in jails as too many needed rc-scripts are nojail. 1b: NFSv3 and NFSv4 client - OK on hosts, does not work in jails. 2: mount zfs jailed file systems in jail - works in all cases but VNET jail crashes the host on shutdown after host has unmounted the file system mounten in the jail, see below. Stuck task cleared by jail shutdown???? 3: umount zfs jailed file systems in jail - does not work in any jail. 4: cpusets work in all cases. Have not tested FIB, have never used it and really don't know how to use it. If you want me to test it, please point me to some usage examples so I have something to work from. Test case 1 was run on both physical and virtual machines, 2,3 and 4 only run on virtual. You can find all crash info for case 2 here: http://people.hidden-powers.com/~glz/info.2 http://people.hidden-powers.com/~glz/core.txt.2 http://people.hidden-powers.com/~glz/vmcore.2 NFS mount in jails does not work, in a VIMAGE kernel: jail1# mount /usr/ports [tcp] nfsserver.test.local:/usr/ports: RPCMNT: clnt_create: RPC: Program not registered mount_nfs: Cannot immediately mount nfsserver.test.local:/usr/ports, backgrounding In an GENERIC kernel, mount hangs: Not VIMAGE, NFSv3 jail1# mount /usr/ports load: 0.29 cmd: mount_nfs 2155 [kqread] 1.29r 0.00u 0.01s 0% 1116k Not VIMAGE, NFSv4 jail1# mount /usr/ports load: 0.26 cmd: mount_nfs 2158 [connec] 1.25r 0.00u 0.01s 0% 1056k umount fails everywhere: jail1# umount /usr/jail/ umount: unmount of [restricted] failed: Invalid argument /glz