From owner-freebsd-virtualization@freebsd.org Sun Feb 7 01:14:49 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 3F92FA9FE5C for ; Sun, 7 Feb 2016 01:14:49 +0000 (UTC) (envelope-from paul@redbarn.org) Received: from family.redbarn.org (family.redbarn.org [IPv6:2001:559:8000:cd::5]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id 317D012A8 for ; Sun, 7 Feb 2016 01:14:49 +0000 (UTC) (envelope-from paul@redbarn.org) Received: from [10.0.0.248] (unknown [195.76.173.162]) (using TLSv1 with cipher ECDHE-RSA-AES256-SHA (256/256 bits)) (Client did not present a certificate) by family.redbarn.org (Postfix) with ESMTPSA id E9FD313B60; Sun, 7 Feb 2016 01:14:46 +0000 (UTC) Message-ID: <56B69A83.3080406@redbarn.org> Date: Sat, 06 Feb 2016 17:14:43 -0800 From: Paul Vixie User-Agent: Postbox 4.0.8 (Windows/20151105) MIME-Version: 1.0 To: Rainer Duffner CC: freebsd-virtualization@freebsd.org Subject: Re: Question about bhyve disk images References: In-Reply-To: Content-Type: text/plain; charset=ISO-8859-1; 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: Sun, 07 Feb 2016 01:14:49 -0000 Rainer Duffner wrote: > Hi, > > is it possible to increase the size of these images (after creation, > and while the guest OS is running)? there is no driver-layer signal to tell the guest OS that a drive just got larger, so the guest OS would have to poll, or be told to sense. with freebsd 10 as the guest OS, i've been able to use growfs to make it expand the the hog (last) file system on a virtual drive. but i did it by shutting down the guest, growing the zvol, booting the guest, and running growfs inside the guest. i havn't tried avoiding the shutdown and reboot. > How large can they be? if you're using virtio_blk there should be no limit. > I may have a use-case where I would need to have images in the size > oftens of terabytes. > > Or is there a way to delegate a ZFS (or a pool) to a bhyve guest? this is sort of what zvol does, noting, the zfs code runs in the parent. -- P Vixie From owner-freebsd-virtualization@freebsd.org Sun Feb 7 03:48:55 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 8385FA9E615 for ; Sun, 7 Feb 2016 03:48:55 +0000 (UTC) (envelope-from mgrooms@shrew.net) Received: from mx1.shrew.net (mx1.shrew.net [38.97.5.131]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id 5C81F13A5 for ; Sun, 7 Feb 2016 03:48:54 +0000 (UTC) (envelope-from mgrooms@shrew.net) Received: from mail.shrew.net (mail.shrew.prv [10.24.10.20]) by mx1.shrew.net (8.14.7/8.14.7) with ESMTP id u173kAuZ095753 for ; Sat, 6 Feb 2016 21:46:10 -0600 (CST) (envelope-from mgrooms@shrew.net) Received: from [10.22.200.30] (cpe-72-179-24-154.austin.res.rr.com [72.179.24.154]) by mail.shrew.net (Postfix) with ESMTPSA id BE17E18BDCE for ; Sat, 6 Feb 2016 21:46:04 -0600 (CST) Subject: Re: Question about bhyve disk images To: freebsd-virtualization@freebsd.org References: <56B69A83.3080406@redbarn.org> From: Matthew Grooms Message-ID: <56B6BE95.5000507@shrew.net> Date: Sat, 6 Feb 2016 21:48:37 -0600 User-Agent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:38.0) Gecko/20100101 Thunderbird/38.5.1 MIME-Version: 1.0 In-Reply-To: <56B69A83.3080406@redbarn.org> Content-Type: text/plain; charset=windows-1252; format=flowed Content-Transfer-Encoding: 7bit X-Greylist: Sender IP whitelisted, not delayed by milter-greylist-4.4.3 (mx1.shrew.net [10.24.10.10]); Sat, 06 Feb 2016 21:46:10 -0600 (CST) 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: Sun, 07 Feb 2016 03:48:55 -0000 On 2/6/2016 7:14 PM, Paul Vixie wrote: > > Rainer Duffner wrote: >> Hi, >> >> is it possible to increase the size of these images (after creation, >> and while the guest OS is running)? > > there is no driver-layer signal to tell the guest OS that a drive just > got larger, so the guest OS would have to poll, or be told to sense. > > with freebsd 10 as the guest OS, i've been able to use growfs to make > it expand the the hog (last) file system on a virtual drive. but i did > it by shutting down the guest, growing the zvol, booting the guest, > and running growfs inside the guest. i havn't tried avoiding the > shutdown and reboot. > I'm not sure if bhyve reports the current backing file size as the virtual block device size after it's been increased. But if it does, this may be useful ... https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=204901 -Matthew From owner-freebsd-virtualization@freebsd.org Sun Feb 7 21:00:53 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 C85BBAA1DBA for ; Sun, 7 Feb 2016 21:00:53 +0000 (UTC) (envelope-from bugzilla-noreply@FreeBSD.org) Received: from kenobi.freebsd.org (kenobi.freebsd.org [IPv6:2001:1900:2254:206a::16:76]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id A898F210 for ; Sun, 7 Feb 2016 21:00:53 +0000 (UTC) (envelope-from bugzilla-noreply@FreeBSD.org) Received: from bugs.freebsd.org ([127.0.1.118]) by kenobi.freebsd.org (8.15.2/8.15.2) with ESMTP id u17L01Xw017702 for ; Sun, 7 Feb 2016 21:00:53 GMT (envelope-from bugzilla-noreply@FreeBSD.org) Message-Id: <201602072100.u17L01Xw017702@kenobi.freebsd.org> From: bugzilla-noreply@FreeBSD.org To: freebsd-virtualization@FreeBSD.org Subject: Problem reports for freebsd-virtualization@FreeBSD.org that need special attention Date: Sun, 07 Feb 2016 21:00:53 +0000 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: Sun, 07 Feb 2016 21:00:53 -0000 To view an individual PR, use: https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=(Bug Id). The following is a listing of current problems submitted by FreeBSD users, which need special attention. These represent problem reports covering all versions including experimental development code and obsolete releases. Status | Bug Id | Description ------------+-----------+--------------------------------------------------- In Progress | 202321 | [bhyve,patch] More verbose error reporting in bhy New | 202322 | [bhyve,patch] add option to have bhyve write its 2 problems total for which you should take action.