Pass the vm name to bhyveload guests as a variable.

This commit is contained in:
Guido Falsi
2022-09-17 18:16:16 +02:00
parent 07f96108ea
commit 3b7925fd7e

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"