Bumping VM_MAX_NAMELEN

Mateusz Kwiatkowski kwiat at panic.pl
Tue Dec 18 13:54:17 UTC 2018


> On 18 Dec 2018, at 10:32, Mateusz Kwiatkowski <kwiat at panic.pl> wrote:
> 
> Hello,
> 
> Currently VM_MAX_NAMELEN is set to 32 and thus the maximum length of virtual machine is 31 characters.
> We’re building product that uses bhyve to run virtual machines and we wanted to use UUIDs as names.
> UUID with hyphens has 36 characters and without it has 32 characters. Can this limit be increased to 33 and 
> ideally to 37 or more characters?
> For comparison qemu-kvm+libvirt allow for virtual machines with names that are over 240 chars.
> 

I’ve just tested bhyve with VM_MAX_NAMELEN set to 64 on FreeBSD 12.0-STABLE and everything works as expected.
I’ve created bug report for this: https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=234134

—
Regards,
Mateusz Kwiatkowski


More information about the freebsd-virtualization mailing list