Currently, bhyve does not remove deprecated configuration variables.
When a deprecated and a new option share the same prefix, e.g.
"monitor" and "monitor.enabled", it results in warnings like:
bhyve: Attempting to fetch value of node monitor
Moreover, using the old syntax, -o monitor=yes, fails completely with:
bhyve: Failed to create configuration node monitor
Additionally, both old and new variables are listed in the configuration
dump (-o config.dump=1).
Fix these issues by removing the old variable.
Add several tests for checking configuration handling:
- Validate that -M produces no warnings
- Ensure that in the configuration dump deprecated options are replaced with the actual ones
Fixes: ef821f9ba66a ("bhyve: Add an option to prevent automatic restart in monitor mode")
Sponsored by: The FreeBSD Foundation