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 for VMs.
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 tested hypervisor with VM_MAX_NAMELEN to 64 on stable/12 branch and didn't experience any issue.
A little bit of code work to change this into a dynamically allocated string and then raise the limit to pathmax is probably in order.
This constant was just a fast path to deployed code.
thank you for your answer. Are you going to work on this soon? If not can we have it just bumped to 64 for now?
I have bhyve work planned over the week between christmas and new years, I have also added virtualization to the CC: list, and am sending an email to have this issue added as a topic for the next bhyve conference call (early January).
That sounds great. Thanks!
Did you have a chance to take a look on this issue? Thanks!
(In reply to Mateusz Kwiatkowski from comment #5)
Some how I let this slide off the radar, this bug is now on the PR list for the bi-monthly bhyve developers call and shall be discussed at the next meeting on February 21, 2019. As long as there are no issues with doing this I'll create a phabricator review and get this enhancement moved forward.