From owner-freebsd-stable@freebsd.org Tue Nov 1 23:09:10 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 75BBCC2A365 for ; Tue, 1 Nov 2016 23:09:10 +0000 (UTC) (envelope-from eddyraz.fl@gmail.com) Received: from mail-it0-x243.google.com (mail-it0-x243.google.com [IPv6:2607:f8b0:4001:c0b::243]) (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 09E491351 for ; Tue, 1 Nov 2016 23:09:10 +0000 (UTC) (envelope-from eddyraz.fl@gmail.com) Received: by mail-it0-x243.google.com with SMTP id f129so179661itc.2 for ; Tue, 01 Nov 2016 16:09:10 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=to:from:subject:message-id:date:user-agent:mime-version :content-transfer-encoding; bh=yVRfpmlUB2/uRn6Gt7KLChG0bgSnVrvYNeA1WfXUsXI=; b=Mpop4Dr2XqVpKGWWT0uHYKY5pANrVZo9Cprf4sXzlJ5EqYeUfdrvs5A3408Wj1xfMM 9NVW83vNq7o1t/U9qITkfsQhqrWrzxqwpeXwlDmrtUAABWSN0vDPmZyFkafkL0WTLRF/ t5aEXnjaOVsEuuzGDRkddcIu16cQRDtRCqn80Bw5nHlhnBUFLzmRiyo+CdRbDFR2mZZZ JM3ewFeDKV+TViBIkOR+S6kwN+BPoDfSOL3e8RSIl7AYdAa1R21hsmNi6GBBOlgqncpt DAlgILcrnkwqpQRYeqfLlbFJ8hNIJ5P9fGD4dZ66KLG4liDsVn7hJd5HHn1DTQMcBqNE 8Jpg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:to:from:subject:message-id:date:user-agent :mime-version:content-transfer-encoding; bh=yVRfpmlUB2/uRn6Gt7KLChG0bgSnVrvYNeA1WfXUsXI=; b=OaVph4iIx7ZGM5Q21RUwklGxRo8cz+wjqYa8miDWxAmDsW39TXesHmTcTVahxwJv9u WYq83h9Z3p4hqhmu/xfCIpbMnSS61zTHi949q2Hyepa1kLFMYIg7X7UTk8IRKa/rb2UA 0uLKS3lgQBBP5dYpIjcRF6broq7WHCKbl5jrulPXPvE2gQ33vkf4jVUGoQqUbhvSF89S azfj/JBziO5OdRr1lDqPln66RZpDr67I6ABRb/4KPxmIXO7Pq9jbG02znzjJ5Y09M5nI qOHiToZCx5ktP3b2W79a9lQp+Tkb3jNdonno8qZyIMzSXy4tlOr7Q2WXStQ6I5Mou6si jbKA== X-Gm-Message-State: ABUngve32fV+OKPS3ieIddKeBAi3OBEbhu5n/oZop+z8O2yY1Pb9jZ7+S75ep5DY9DevBw== X-Received: by 10.107.31.78 with SMTP id f75mr1129235iof.141.1478041749104; Tue, 01 Nov 2016 16:09:09 -0700 (PDT) Received: from [172.19.164.177] ([200.55.166.34]) by smtp.gmail.com with ESMTPSA id p196sm440760iod.16.2016.11.01.16.09.07 for (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Tue, 01 Nov 2016 16:09:08 -0700 (PDT) To: freebsd-stable@freebsd.org From: eddyraz Subject: Problems with jail inside ZFS dataset Message-ID: <425a02f7-035a-8c26-8ed2-7f32be6d3373@gmail.com> Date: Tue, 1 Nov 2016 19:05:21 -0400 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:45.0) Gecko/20100101 Thunderbird/45.4.0 MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 7bit 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: Tue, 01 Nov 2016 23:09:10 -0000 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.