bhyve and dynamic allocation

Shane Ambler FreeBSD at ShaneWare.Biz
Wed Sep 7 04:42:12 UTC 2016


On 07/09/2016 01:18, Peter Grehan wrote:
> Hi Grzegorz,
>
>> Is it possible / supported / planned to run a client OS without
>> specifying RAM/HDD up-front but with dynamically allocated resources?
>
>  The amount of RAM specified is just the maximum allowed, and by default
> is demand-paged without any pre-allocation.
>
>  For disk, the same effect can be achieved by using a sparse volume,
> e.g. 'truncate -s <disk-siz>' on UFS.
>

And if your using ZFS on the host you can create a sparse zvol with

zfs create -sV <disk-size> zpool/guestvol


-- 
FreeBSD - the place to B...Sharing Devices

Shane Ambler



More information about the freebsd-virtualization mailing list