Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 06 Feb 2016 17:14:43 -0800
From:      Paul Vixie <paul@redbarn.org>
To:        Rainer Duffner <rainer@ultra-secure.de>
Cc:        freebsd-virtualization@freebsd.org
Subject:   Re: Question about bhyve disk images
Message-ID:  <56B69A83.3080406@redbarn.org>
In-Reply-To: <E97C216F-6808-44F3-8AF6-0D1F51BEB9A5@ultra-secure.de>
References:  <E97C216F-6808-44F3-8AF6-0D1F51BEB9A5@ultra-secure.de>

next in thread | previous in thread | raw e-mail | index | archive | help


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



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?56B69A83.3080406>