From owner-freebsd-virtualization@freebsd.org Mon Feb 1 02:28:09 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 C8708A754D0; Mon, 1 Feb 2016 02:28:09 +0000 (UTC) (envelope-from jceel@FreeBSD.org) Received: from mail1.uj.edu.pl (mail1.uj.edu.pl [149.156.89.193]) by mx1.freebsd.org (Postfix) with ESMTP id 8AC8119DC; Mon, 1 Feb 2016 02:28:06 +0000 (UTC) (envelope-from jceel@FreeBSD.org) MIME-version: 1.0 Content-transfer-encoding: 7BIT Content-type: text/plain; CHARSET=US-ASCII Received: from [192.168.0.2] ([89.79.116.100]) by mta.uoks.uj.edu.pl (Oracle Communications Messaging Server 7u4-27.01 (7.0.4.27.0) 64bit (built Aug 30 2012)) with ESMTPSA id <0O1U00BCXJYAWR10@mta.uoks.uj.edu.pl>; Mon, 01 Feb 2016 03:22:59 +0100 (CET) From: jceel@FreeBSD.org Subject: VirtFS support in bhyve Message-id: <0E724C32-17FB-489A-B6E0-119CE17470E6@FreeBSD.org> Date: Mon, 01 Feb 2016 03:22:58 +0100 To: freebsd-hackers@FreeBSD.org, freebsd-virtualization@FreeBSD.org X-Mailer: Apple Mail (2.3094) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.98.6 at clamav1 X-BeenThere: freebsd-virtualization@freebsd.org X-Mailman-Version: 2.1.20 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: Mon, 01 Feb 2016 02:28:09 -0000 Hello, I'm working on virtio-9p (so-called VirtFS) support in bhyve. Project consists of two parts: BSD-licensed lib9p library and actual virtio-9p driver. Right now it's able to do filesystem passthrough using 9P2000.u protocol to Linux guests. You can check it out here: https://github.com/jceel/freebsd/tree/virtfs Syntax: bhyve side: append `-s ,virtio-9p,sharename=/host/path` linux side: `mount -t 9p -o trans=virtio -o version=9p2000.u sharename /mnt/guest/path` Using 9p as root filesystem for Linux guests should work too. Plans: - Definitely in-kernel 9pfs filesystem support for FreeBSD guests using same lib9p library - 9P2000.L support (adds ACLs, extattrs, file locks, atomic reads/writes and so on) - Filesystem backend using AIO - Ability to export multiple trees for different "aname" values using one virtio-9p device (that's actually a low-hanging fruit) I'm looking forward to your feedback - keep in mind that's totally experimental/incomplete/nonworking code. Jakub.