I see a somewhat strange vm-bhyve configuration issue (the version is 1.4.2).
The point is that I tried to enable VNC. Per 'vm' man all I had to do is to set 'graphics="yes"' in the VM configuration file.
This is what I had done and VNC was not enabled. I run bhyve manually and VNC started.
I looked at vm-run code and see that 'graphics' parameter processed in 'uefi' mode and this mode requires that _uefi variable is set.
The variable '_uefi' set either if 'loader' is 'uefi' or if 'uefi' configuration parameter is set to "yes", because of the code
config::get "_uefi" "uefi"
I have 'loader="bhyveload"' that is set for freebsd template.
I added 'uefi="yes"' to my configuration file and VNC started to work.
But this configuration parameter neither was described nor even mentioned in the VM man.
I am somewhat confused.
The big part of templates do not have 'loader="uefi"' configuration parameter. They will not have VNC support and I do not see this fact reflected somewhere in the spec.
On the other hand the existing parameter 'uefi' is not reflected in the spec but allows VNC but it can also have some side effect.
Can somebody explain this configuration issue?
The point is that I tried to enable VNC. Per 'vm' man all I had to do is to set 'graphics="yes"' in the VM configuration file.
This is what I had done and VNC was not enabled. I run bhyve manually and VNC started.
I looked at vm-run code and see that 'graphics' parameter processed in 'uefi' mode and this mode requires that _uefi variable is set.
The variable '_uefi' set either if 'loader' is 'uefi' or if 'uefi' configuration parameter is set to "yes", because of the code
config::get "_uefi" "uefi"
I have 'loader="bhyveload"' that is set for freebsd template.
I added 'uefi="yes"' to my configuration file and VNC started to work.
But this configuration parameter neither was described nor even mentioned in the VM man.
I am somewhat confused.
The big part of templates do not have 'loader="uefi"' configuration parameter. They will not have VNC support and I do not see this fact reflected somewhere in the spec.
On the other hand the existing parameter 'uefi' is not reflected in the spec but allows VNC but it can also have some side effect.
Can somebody explain this configuration issue?