From owner-freebsd-virtualization@freebsd.org Wed Jun 24 22:58:26 2015 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 9599C9160B6 for ; Wed, 24 Jun 2015 22:58:26 +0000 (UTC) (envelope-from allanjude@freebsd.org) Received: from mx1.scaleengine.net (mx1.scaleengine.net [209.51.186.6]) by mx1.freebsd.org (Postfix) with ESMTP id 6D53411E0 for ; Wed, 24 Jun 2015 22:58:25 +0000 (UTC) (envelope-from allanjude@freebsd.org) Received: from [192.168.1.10] (unknown [192.168.1.10]) (Authenticated sender: allanjude.freebsd@scaleengine.com) by mx1.scaleengine.net (Postfix) with ESMTPSA id 0FCFC9371 for ; Wed, 24 Jun 2015 22:58:19 +0000 (UTC) Message-ID: <558B3605.4070600@freebsd.org> Date: Wed, 24 Jun 2015 18:58:13 -0400 From: Allan Jude User-Agent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:31.0) Gecko/20100101 Thunderbird/31.7.0 MIME-Version: 1.0 To: freebsd-virtualization@freebsd.org Subject: Re: ZFS pool within FreeBSD bhyve guest References: In-Reply-To: Content-Type: text/plain; charset=windows-1252; format=flowed Content-Transfer-Encoding: 7bit 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: Wed, 24 Jun 2015 22:58:26 -0000 On 2015-06-24 18:49, javocado wrote: > Hi, > > I would like to create a zfs filesystem within my bhyve (FreeBSD 10.1 as > the guest and host) allowing users of the VM to run zfs send/receive > commands on the zfs filesystem within their bhyve VM. > > Is this possible and what is/are the methods and options for creating the > zfs filesystem (or volume) within the VM? If there is a way to do this, > would any of the proposed methods depend on whether the VM lives in a file > versus a zfs volume? My VM is file-based. > > Thanks! > _______________________________________________ > freebsd-virtualization@freebsd.org mailing list > http://lists.freebsd.org/mailman/listinfo/freebsd-virtualization > To unsubscribe, send any mail to "freebsd-virtualization-unsubscribe@freebsd.org" > It should just work. You create the zpool inside the VM the same as you would on a bare metal machine. bsdinstall inside the VM should be able to handle it without issue. If you are using a ZFS zvol, you'll want to make sure the 'volmode' is set to dev. For a file-backed VM, there should not be any special steps required. -- Allan Jude