From owner-freebsd-stable@freebsd.org Wed Nov 2 01:55:55 2016 Return-Path: Delivered-To: freebsd-stable@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 63F86C2A8C6 for ; Wed, 2 Nov 2016 01:55:55 +0000 (UTC) (envelope-from asomers@gmail.com) Received: from mail-qt0-x242.google.com (mail-qt0-x242.google.com [IPv6:2607:f8b0:400d:c0d::242]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (Client CN "smtp.gmail.com", Issuer "Google Internet Authority G2" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id DF7F41B88 for ; Wed, 2 Nov 2016 01:55:54 +0000 (UTC) (envelope-from asomers@gmail.com) Received: by mail-qt0-x242.google.com with SMTP id n34so63408qtb.3 for ; Tue, 01 Nov 2016 18:55:54 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:sender:in-reply-to:references:from:date:message-id :subject:to:cc; bh=rafNk1afZQXNFMQ4DLr2eg/LIBWjV6ulZxSGY7kHu9M=; b=UGTGVHXdZzyK6itvg7jp+TlZhfCK+cQQm3n3AnXoHaQ47iafNMje15Jhs5lBpHBCuY JJjLxg/Hs33+zIOCCnDsqDdvVQCgpF4kjy3I1tK7v0Lc0sn+fPuaL2dU5uLptMILqECP EDu2MKW/jqCIsYAIadnboClBQCkuTN2kBGdGbi6FVAEwrq0mU+Mp9GIXFWmWddnQLzQ/ 4HB672QeMCvZven2e2/5VQ/nfj7Sa60sgSDQ3XOadGvweaEohSX1y87Pn0avZD/lOuev +9r43P4wMg/S+O7v5bftkqin+UCUW9BUwNpY2L2CCy/L4bQNOzkLXl+nHgC2yE+Euble irRA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:mime-version:sender:in-reply-to:references:from :date:message-id:subject:to:cc; bh=rafNk1afZQXNFMQ4DLr2eg/LIBWjV6ulZxSGY7kHu9M=; b=mDSrwclLRXYryq8iQL1j35co3jyoZxzxCGztBgGnkvYKaYJ5DTmYjkq+X8OpSAf9uH owVnjeS1buTEypRFzVD2Fxg34PPwTo0/LTwbqMBIei7b6Ax3r3T3i71Z5ozF1OGa37iQ Asg+JSyr/U0rPxrGME2oe7aJQpYRHGQix28/LKZCfGFNUq/mIgPD3hiFwlPIsZ+VPD8f U5jXKYj28FbIJEUgfV8KCU8a9dZ6SPGz6Cf3B5bO2aDUXvqSMy1mDKMK13qKno4Jpg7e bW4pJ5ZJa3JkKWvnFU/89n9fBesc4fR+e736DgMeRW1HZeFKVp6cqMCPyxUnqABwIjSX meag== X-Gm-Message-State: ABUngvcvoc1stWnFskXCldFg/VG8vn7xnqTMW3w6lz+Kn+tatdor2OlG4ROnit2/djwe/EMVKr+Ccg8lmHmRPg== X-Received: by 10.200.56.228 with SMTP id g33mr998901qtc.140.1478051754059; Tue, 01 Nov 2016 18:55:54 -0700 (PDT) MIME-Version: 1.0 Sender: asomers@gmail.com Received: by 10.12.168.154 with HTTP; Tue, 1 Nov 2016 18:55:51 -0700 (PDT) In-Reply-To: <425a02f7-035a-8c26-8ed2-7f32be6d3373@gmail.com> References: <425a02f7-035a-8c26-8ed2-7f32be6d3373@gmail.com> From: Alan Somers Date: Tue, 1 Nov 2016 19:55:51 -0600 X-Google-Sender-Auth: OmFh9zcZlzQ9LEowdWF9MiYY3aU Message-ID: Subject: Re: Problems with jail inside ZFS dataset To: eddyraz Cc: FreeBSD Content-Type: text/plain; charset=UTF-8 X-BeenThere: freebsd-stable@freebsd.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: Production branch of FreeBSD source code List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 02 Nov 2016 01:55:55 -0000 On Tue, Nov 1, 2016 at 5:05 PM, eddyraz wrote: > > > Good Afternoon., I have A VPS with FreeBSD in a dedicated server with OVH > Hosting. Last week I installed FreeBSD 11, Ran buildworld after that Crea\ > ted a VM within a jail in /local/jails/ ZFS dataset > > While trying to start the VM gave an error that said it could not mount > nullfs. > > I added this in /boot/loader.conf > > nullfs_mount=1 > > later the error changed to: > > Starting jails: cannot start jail "haproxy": > mount: .: Operation not supported by device > jail: haproxy: /sbin/mount -t fdescfs . /local/jails/haproxy/dev/fd: failed > > Following this post in Internet > > https://lists.freebsd.org/pipermail/freebsd-stable/2014-August/079700.html > > I ran the patch that they advised to. and I found in > > http://pastebin.com/5t9zEzkV > > > but while aplying the patch with > > patch /sys/fs/fdescfs/fdesc_vfsops.c sys_fs_fdescfs_fdesc_vfsop > > gives this error. > > ****************************************************************************************************** > Hmm... Looks like a unified diff to me... > The text leading up to this was: > > -------------------------- > |diff --git a/sys/fs/fdescfs/fdesc_vfsops.c b/sys/fs/fdescfs/fdesc_vfsops.c > |index cb5e3c0..7193809 100644 > |--- a/sys/fs/fdescfs/fdesc_vfsops.c > |+++ b/sys/fs/fdescfs/fdesc_vfsops.c > -------------------------- > Patching file /sys/fs/fdescfs/fdesc_vfsops.c using Plan A... > Reversed (or previously applied) patch detected! Assume -R? [y] y > Hunk #1 succeeded at 51 (offset 1 line). > Hunk #2 failed at 79. > No such line 241 in input file, ignoring > Hunk #3 succeeded at 229 (offset -8 lines). > 1 out of 3 hunks failed--saving rejects to > /sys/fs/fdescfs/fdesc_vfsops.c.rej > Hmm... The next patch looks like a unified diff to me... > The text leading up to this was: > -------------------------- > |diff --git a/sys/kern/kern_jail.c b/sys/kern/kern_jail.c > |index 2846eca..791723d 100644 > |--- a/sys/kern/kern_jail.c > |+++ b/sys/kern/kern_jail.c > -------------------------- > File to patch: /sys/kern/kern_jail.c > Patching file /sys/kern/kern_jail.c using Plan A... > Hunk #1 failed at 207. > Hunk #2 failed at 224. > Hunk #3 failed at 4247. > Hunk #4 failed at 4403. > 4 out of 4 hunks failed--saving rejects to /sys/kern/kern_jail.c.rej > Hmm... The next patch looks like a unified diff to me... > The text leading up to this was: > > |diff --git a/sys/sys/jail.h b/sys/sys/jail.h > |index a82a499..a01d665 100644 > |--- a/sys/sys/jail.h > |+++ b/sys/sys/jail.h > > -------------------------- > File to patch: /sys/sys/jail.h > Patching file /sys/sys/jail.h using Plan A... > Hunk #1 failed at 228. > 1 out of 1 hunks failed--saving rejects to /sys/sys/jail.h.rej > done > # > > ************************************************************************************************* > > I asked in serverfault.com but they make me notice that this was a patch for > 10.x and I was applying it to 11. but afterthat no further advance, Ple\ > ase could anyone help me on this. Thanks in advance. ZFS appears to be unrelated to your problem. It sounds like you're trying to mount fdescfs from within a jail. That's not allowed by default. Is your VPS itself a jail? If so, you'll have to ask your hosting provider to set allow.mount.fdescfs=1 in your jail config. Or are you trying to use nested jails? If so, set that same parameter in the config for your outer jail. -Alan