Merge pull request #479 from madpilot78/bhyveload_pass_vm_hostname

Pass the vm name to bhyveload guests as a variable.
This commit is contained in:
Matt Churchyard
2022-10-25 12:04:17 +01:00
committed by GitHub

View File

@@ -67,7 +67,7 @@ guest::load(){
case "${_loader}" in
bhyveload)
_command="bhyveload"
_args="${_args}${_args:+ }-m ${_memory} -e smbios.system.uuid=${_uuid} -e autoboot_delay=${_timeout}"
_args="${_args}${_args:+ }-m ${_memory} -e smbios.system.uuid=${_uuid} -e autoboot_delay=${_timeout} -e bhyve_vm_name=${_name}"
# look for custom bhyveload arguments
config::get "_custom_args" "bhyveload_args"