bhyve VM drive size limit?

Ruben mail at osfux.nl
Sun Sep 3 19:55:01 UTC 2017


Hi Allan/Jason,


I think Ill have a go at the "missing space" situation again after some
reading up. Since I went with the default block sizes (on both the zvol
and the ext4 fs) I probably have some reconfiguration to do..


Thank you very much for your feedback/directions!


Kind regards,

Ruben

On 03/09/17 06:01, Allan Jude wrote:
> On 2017-09-02 10:52, Ruben wrote:
>> Hi Jason,
>>
>>
>>> Make sure
>>> you adjust the zvol block size in the default config before creating your
>>> guest or you will wonder where your storage starts to disappear to.
>>>
>>> Cheers,
>>>
>>> Jason
>> Perhaps slightly off-topic, but might you have any recommendations
>> regarding those blocksizes?
>>
>> I'm not really that well versed in blocksizes / filesystems and am often
>> wondering where my 5TB zvol (bhyves into an ext4 volume for an ubuntu
>> guest) exactly disappears into :P
>>
>> Regards,
>>
>> Ruben
>>> On 2 Sep 2017 2:46 p.m., "Dylan Williams" <freebsd at host852.com> wrote:
>>>
>>> Dear all,
>>>
>>> Is there a limit with respect to the size of the virtual drive I can create
>>> for a VM using bhyve? Presumably not but I’m running into problems with a
>>> larger drive.
>>>
>>> I am trying to create a 4T Ubuntu machine on a FreeBSD11.1 server using
>>> iohyve. There’s plenty of drive space available so it’s not a drive space
>>> issue. I am able to create a 40G machine without any problems but exactly
>>> the same commands to create a 4000G machine results in a server that won’t
>>> boot past Grub. Is this an iohyve issue perhaps?
>>>
>>> Commands used that results in a working Ubuntu server:
>>>
>>> iohyve create ubu 40G
>>> iohyve set ubu loader=grub-bhyve os=debian ram=40G cpu=10
>>> iohyve install ubu ubuntu-16.04.3-server-amd64.iso <
>>> ftp://ftp.cuhk.edu.hk/pub/Linux/ubuntu-releases/16.04.3/
>>> ubuntu-16.04.3-server-amd64.iso>
>>>
>>> Commands used that results in a broken Ubuntu server:
>>>
>>> iohyve create ubu 4000G
>>> iohyve set ubu loader=grub-bhyve os=debian ram=40G cpu=10
>>> iohyve install ubu ubuntu-16.04.3-server-amd64.iso <
>>> ftp://ftp.cuhk.edu.hk/pub/Linux/ubuntu-releases/16.04.3/
>>> ubuntu-16.04.3-server-amd64.iso>
>>>
>>> The screen I get in the console when I boot (iohyve start ubu) the 4T
>>> machine is:
>>>
>>>                              GNU GRUB  version 2.00
>>>
>>>    Minimal BASH-like line editing is supported. For the first word, TAB
>>>    lists possible command completions. Anywhere else TAB lists possible
>>>    device or file completions.
>>>
>>>
>>> grub>
>>>
>>> Does anyone have any ideas? I’ve been at this for hours trying different
>>> configurations. LVM is not selected when installing either of the above
>>> machines as that seems to cause more problems.
>>>
>>> Many thanks,
>>> Dylan.
>>> _______________________________________________
>>> freebsd-virtualization at freebsd.org mailing list
>>> https://lists.freebsd.org/mailman/listinfo/freebsd-virtualization
>>> To unsubscribe, send any mail to "freebsd-virtualization-
>>> unsubscribe at freebsd.org"
>>> _______________________________________________
>>> freebsd-virtualization at freebsd.org mailing list
>>> https://lists.freebsd.org/mailman/listinfo/freebsd-virtualization
>>> To unsubscribe, send any mail to "freebsd-virtualization-unsubscribe at freebsd.org"
>> _______________________________________________
>> freebsd-virtualization at freebsd.org mailing list
>> https://lists.freebsd.org/mailman/listinfo/freebsd-virtualization
>> To unsubscribe, send any mail to "freebsd-virtualization-unsubscribe at freebsd.org"
>>
> To understand why space in a ZVOL goes missing, research 'raidz padding'.
>
> See here:
> https://www.delphix.com/blog/delphix-engineering/zfs-raidz-stripe-width-or-how-i-learned-stop-worrying-and-love-raidz
>
> For more detail, see Chapter 9 of "FreeBSD Mastery: Advanced ZFS" from
> http://www.zfsbook.com
>
>


More information about the freebsd-virtualization mailing list