From owner-freebsd-virtualization@freebsd.org Thu Apr 7 22:28:37 2016 Return-Path: Delivered-To: freebsd-virtualization@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 6E42AB08EAA for ; Thu, 7 Apr 2016 22:28:37 +0000 (UTC) (envelope-from luislupe@gmail.com) Received: from mail-ig0-x22e.google.com (mail-ig0-x22e.google.com [IPv6:2607:f8b0:4001:c05::22e]) (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 3D4641356 for ; Thu, 7 Apr 2016 22:28:37 +0000 (UTC) (envelope-from luislupe@gmail.com) Received: by mail-ig0-x22e.google.com with SMTP id f1so551979igr.1 for ; Thu, 07 Apr 2016 15:28:37 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:date:message-id:subject:from:to; bh=2Ypns8eA5VFSktMbhIU9EdT8zPz0rdMeL2WR+Qvr1/Q=; b=fulnvxgA6rAteZV8Z4mbcYDuVkQeX0xWJpivkx9JiTEqh3jR8nt+r47bonL8dMtGW1 tIGx1Fs9cByYHiHx5/M7ez7RFcRYzDL3WvyupREKHJB+frOPyxWCSqvf3AgoJ/2IDfJS JHngsXOII2Va7HSFfuvptr/oIpUuynVOfmLLkBiK+Y9jxOGN2352TZibbS7L0iuvcOS/ 7p0LjspoPWJAjo6EA53W4L3GeBk6gvOz2n2sTEgxtg4V9xMODugXFYjM8xbcl9Gbswqd 2BzP2yyCb7lQAjWCK5HxHf9Tf2gKS/XStSu81imbf1KtIBYVuSsZ/DWJ2fkNst4iCDrr FBnw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:mime-version:date:message-id:subject:from:to; bh=2Ypns8eA5VFSktMbhIU9EdT8zPz0rdMeL2WR+Qvr1/Q=; b=GDcn9zgPQ8xBY5B0v+YapgNdiDmy6ENPWcapglpuaAiOcMJWoYM4g2YLPtUt9mw2rT DuupgKrOCkxABjR0IG3UCubOYbO2jzi1ay0uO68MbRJYdOgCPManA++KwqQWNvF94fEo mUsmM/6D1CL1R/KIPFH5/0+nCWRouXEPvwcI2SBg6qn6abCTqi8XL6s9Z+TAp0Y3UzCR 5N88KSQR6Eu9prU1vT62v7tuze/3ySv6K8VBPSdMRLm5iPwaPx3dwZKFX/YJV9UqLPhS 1tvu0sBDkS77CRa6p61jsh1dR0J+wLmvdhM3UlCscoMYlZEL+5xm5FqW0TwsIHr7bO8K coSQ== X-Gm-Message-State: AD7BkJI6pI1/1QoZVKr5aBzDnhtOcbLsTUtGWp5P0ZPT+coxB0ts/ZiROnaT9AcNVdXEHmHE6pt95Y0oDZileA== MIME-Version: 1.0 X-Received: by 10.50.8.101 with SMTP id q5mr133588iga.22.1460068116623; Thu, 07 Apr 2016 15:28:36 -0700 (PDT) Received: by 10.36.123.19 with HTTP; Thu, 7 Apr 2016 15:28:36 -0700 (PDT) Date: Thu, 7 Apr 2016 23:28:36 +0100 Message-ID: Subject: bhyve with Linuxes as guests - shared filesystem From: "Luis P. Mendes" To: freebsd-virtualization@freebsd.org Content-Type: text/plain; charset=UTF-8 X-BeenThere: freebsd-virtualization@freebsd.org X-Mailman-Version: 2.1.21 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, 07 Apr 2016 22:28:37 -0000 Hi, In a FreeBSD host, I'm running a Slackware Linux guest. I'd like to share a `zfs` filesystem between those two OSes and with one other Ubuntu Linux system to be installed. There are three options that I can think of: 1. Have a `virtio-blk` option to `bhyve` and loading `zfs` modules for the Linux OSes. 2. Share the filesystem through `nfs` 3. Share it through `samba` For `1.`, the disadvantages I see are: a. `zfs` would have to run in the two Linux OSes in user mode. b. it would consume much RAM to have three `zfs` managers running at the same time. For `2.`, I don't see any disadvantage. Regarding `3.`, as I don't use Windows, it doesn't seem to offer any advantage over `2.`. Hence my question: regarding the experience many of you have with shared file systems between FreeBSD and Linux systems, what do you have to say about reliability (locks, ...) and performance(1) of the options presented, or even of other ones. Luis PS (1). I know I should do performance tests myself but would like to hear from your experience.