Current Problem and Complexity
It is currently not possible to configure TPM 2.0 directly within the VM configuration file managed by vm-bhyve for Windows 11 guests.
This feature, which is technically supported by the underlying bhyve hypervisor, must be implemented through a manual, multi-step workaround:
- A separate, low-level
bhyve.conf file must be created to define the necessary TPM parameters:
tpm.type=swtpm
tpm.path=/path/to/the/created/swtpm.sock
tpm.version=2.0
- To instruct
bhyve to use this custom configuration file, the VM's main configuration file (<vmname>.conf in the datastore) must be manually updated to inject the external configuration into the bhyve command line:
bhyve_options= -k [path of configuration file for bhyve]
This process significantly increases the complexity of setting up and maintaining modern virtual machines.
Proposed Solution
It would be highly beneficial for the user experience and the adoption of vm-bhyve to natively support TPM configuration.
This could be achieved by allowing the user to set the parameters directly within the VM's main configuration file, allowing the utility to automatically manage the file creation and parameter injection.
Current Problem and Complexity
It is currently not possible to configure TPM 2.0 directly within the VM configuration file managed by
vm-bhyvefor Windows 11 guests.This feature, which is technically supported by the underlying
bhyvehypervisor, must be implemented through a manual, multi-step workaround:bhyve.conffile must be created to define the necessary TPM parameters:bhyveto use this custom configuration file, the VM's main configuration file (<vmname>.confin the datastore) must be manually updated to inject the external configuration into thebhyvecommand line:This process significantly increases the complexity of setting up and maintaining modern virtual machines.
Proposed Solution
It would be highly beneficial for the user experience and the adoption of
vm-bhyveto natively support TPM configuration.This could be achieved by allowing the user to set the parameters directly within the VM's main configuration file, allowing the utility to automatically manage the file creation and parameter injection.