churchers / vm-bhyve

Shell based, minimal dependency bhyve manager
BSD 2-Clause "Simplified" License
825 stars 174 forks source link

custom bhyveload options #462

Closed avg-I closed 2 years ago

avg-I commented 2 years ago

I would like to set some loader variables using -e option. To be specific, I actually want to pass -e smbios.system.uuid=${uuid}. Is it possible to do that? If not, would it be a good extension?

churchers commented 2 years ago

You should be able to do this using the bhyveload_args config setting although there's no straight forward way of being able to use variables inside the config file.

bhyveload_args="-e smbios.system.uuid=xyz"
avg-I commented 2 years ago

Thank you for the suggestion. I used:

bhyveload_args="-e smbios.system.uuid=$uuid"

In my opinion, it would be nice to have that as the default behavior. But I am happy as long as there is a way to configure it.